【发布时间】:2014-11-05 19:24:41
【问题描述】:
我在运行 hive 选择查询时遇到问题。 我在 hive 中创建了 DB(mydb),只要我在 mydb 表上运行查询,就会出现以下错误。
Failed with exception java.io.IOException:java.net.ConnectException: Call From oodles- Latitude-3540/127.0.1.1 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
我的 hadoop core-site.xml 文件的配置如下所示
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/app/hadoop/tmp</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://192.168.0.114:9000</value>
<description>The name of the default file system. A URI whose
scheme and authority determine the FileSystem implementation.
</description>
</property>
</configuration>
我的 mapred-site.xml.template 文件的配置是
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>192.168.0.114:8021</value>
<description>The host and port that the MapReduce job tracker runsat.</description>
</property>
</configuration>
如果我将两个文件中的主机名从 192.168.0.114 更改为 localhost,则配置单元查询工作正常,但不适用于 192.168.0.114
为什么 hive 总是指向 localhost:9000 ,我们不能将其更改为指向我的首选位置(192.168.0.114:9000)吗? 如何修复配置单元选择查询以向我显示上述 hadoop conf 文件配置的结果? 希望各位朋友清楚我的问题!
【问题讨论】:
-
错误信息包括wiki.apache.org/hadoop/ConnectionRefused的一些提示。你通读了吗?
-
是的,我已经解决了,但我找不到解决方案