Hive 安装出现的问题

Exception in thread "Thread-18" java.lang.IllegalArgumentException: Does not contain a valid host:port authority: local 
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:206) 
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:158) 
        at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:147) 
        at org.apache.hadoop.hive.ql.exec.JobTrackerURLResolver.getURL(JobTrackerURLResolver.java:42) 
        at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:209) 
        at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:92) 
        at java.lang.Thread.run(Thread.java:722) 

Execution failed with exit status: 2 


http://taoo.iteye.com/blog/1678993 这里给出了原因,参考:http://grokbase.com/p/cloudera/cdh-user/126wqvfwyt/hive-refuses-to-work-with-yarn 

这里摘要下:


链接中的解释很清楚

引用

There are actually two failures here:

1) The MR job that Hive launched on your cluster failed for some reason. I
can't determine why based on the information provided. I recommend trying
to locate the task logs for the failed tasks on the cluster.

2) When a job fails Hive attempts to automatically retrieve the task logs
from the JobTracker's TaskLogServlet. This service doesn't exist in MR2,
which is why Hive is throwing an exception (either because
mapred.job.tracker is undefined, or because it can't find the
TaskLogServlet service running on the machine that mapred.job.tracker
points to). This is a known issue and one that we plan to address in the
next release of CDH.


解决方法也很详细,就是在hive-site.xml中添加设置,
引用

In the meantime I recommend doing the following if you need to run Hive on
MR2:
* Keep Hive happy by setting mapred.job.tracker to a bogus value.
* Disable task log retrieval by setting
hive.exec.show.job.failure.debug.info=false 

So 我的解决方法:

添加到 hive-site.xml

<property>
<name>mapreduce.jobtracker.address</name>
<value>ignorethis</value>
</property>

并重启 hive-server.


你可能感兴趣的:(Hive 安装出现的问题)