hive总是在本地模式下运行

v440hwme  于 2021-05-30  发布在  Hadoop
关注(0)|答案(1)|浏览(424)

我有hadoop集群(3个节点)所有节点运行正常。但是hive总是以本地模式运行查询。我坐在mapred.job.tracker的跟踪器主机,仍然没有工作。

bgibtngc

bgibtngc1#

我发现问题出在一些hadoop配置中。似乎hive无法检测群集配置。
因为我使用的是hadoop2.6.0,所以我已经根据版本更改了mapred-site.xml,请参见下面的mapred-site.xml文件

<property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
<property>
  <name>mapreduce.jobtracker.address</name>
  <value>hadoopMaster:54311</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

<property>
  <name>mapreduce.jobtracker.http.address</name>
  <value>hadoopMaster:50030</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

这是apache hadoop中mapred-site.xml的默认值。
https://hadoop.apache.org/docs/r2.6.0/hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml

相关问题