2

select * の種類のクエリを実行できますが、select col1....type のクエリは実行できません。次の例外をスローします

   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 に答える