2

我能够触发 select * 类型的查询,但不能触发 select col1.... 类型的查询。它抛出以下异常

   Error during job, obtaining debugging information...
        Examining task ID: task_201305021530_0007_m_000002 (and more) from job job_201305021530_0007
        Exception in thread "Thread-90" java.lang.RuntimeException: Error while reading from task log url
            at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:240)
            at org.apache.hadoop.hive.ql.exec.JobDebugger.showJobFailDebugInfo(JobDebugger.java:227)
            at org.apache.hadoop.hive.ql.exec.JobDebugger.run(JobDebugger.java:92)
            at java.lang.Thread.run(Thread.java:722)
        Caused by: java.net.UnknownHostException: avishkar-VB
            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
            at java.net.Socket.connect(Socket.java:579)
            at java.net.Socket.connect(Socket.java:528)
            at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
            at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
            at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
            at sun.net.www.http.HttpClient.New(HttpClient.java:290)
            at sun.net.www.http.HttpClient.New(HttpClient.java:306)
            at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
            at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
            at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
            at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
            at java.net.URL.openStream(URL.java:1037)
            at org.apache.hadoop.hive.ql.exec.errors.TaskLogProcessor.getStackTraces(TaskLogProcessor.java:192)
            ... 3 more
        FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
        MapReduce Jobs Launched: 
4

1 回答 1

2

@Ankur 我找到了解决这个问题的方法。您需要添加 hive-contrib- 的路径.*.jar 在类路径中。或者您可以在触发任何这样的查询之前在 hive CLI 中添加此路径:

添加jar /home/hadoop/hive/lib/hive-contrib-0.8.1.jar;(注意蜂巢的版本)

于 2013-05-22T05:41:29.520 回答