You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2021/06/09 21:49:15 UTC

[GitHub] [iceberg] aimenglin removed a comment on issue #2686: Read Iceberg Table via Hive: Hadoop Tables Succeed. Hive Catalog Failed. Anyone met the errors before?

aimenglin removed a comment on issue #2686:
URL: https://github.com/apache/iceberg/issues/2686#issuecomment-858121018


   Update the queries and errors:
   ```
   $hive
   Hive Session ID = dbb0e1e7-041e-4664-bc7a-496e6c4bbf0c
   
   Logging initialized using configuration in file:/etc/hive/conf.dist/hive-log4j2.properties Async: true
   Hive Session ID = d3edbd13-c374-46ee-b392-290486cf07d0
   hive> add jar /home/shenme_google_com/iceberg-hive-runtime.jar;
   Added [/home/shenme_google_com/iceberg-hive-runtime.jar] to class path
   Added resources: [/home/shenme_google_com/iceberg-hive-runtime.jar]
   hive> set iceberg.engine.hive.enabled=true;
   hive> set engine.hive.enabled=true;
   hive> set iceberg.mr.catalog=hive;
   hive> set hive.vectorized.execution.enabled=false;
   hive> describe example3;
   OK
   id                      int                                         
   name                    string                                      
   major                   string                                      
   grade                   string                                      
   Time taken: 1.074 seconds, Fetched: 4 row(s)
   hive> select * from example3;
   Query ID = shenme_google_com_20210609213922_236d670a-a2eb-4772-947d-05c13a1ed13d
   Total jobs = 1
   Launching Job 1 out of 1
   ----------------------------------------------------------------------------------------------
           VERTICES      MODE        STATUS  TOTAL  COMPLETED  RUNNING  PENDING  FAILED  KILLED  
   ----------------------------------------------------------------------------------------------
   Map 1            container  INITIALIZING     -1          0        0       -1       0       0  
   ----------------------------------------------------------------------------------------------
   VERTICES: 00/01  [>>--------------------------] 0%    ELAPSED TIME: 0.68 s     
   ----------------------------------------------------------------------------------------------
   Status: Failed
   Vertex failed, vertexName=Map 1, vertexId=vertex_1622522135523_0068_1_00, diagnostics=[Vertex vertex_1622522135523_0068_1_00 [Map 1] killed/
   failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: example3 initializer failed, vertex=vertex_1622522135523_0068_1_00 [Map 1], java.io.IOE
   xception: Cannot create an instance of InputFormat class org.apache.hadoop.mapred.FileInputFormat as specified in mapredWork!
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getInputFormatFromCache(HiveInputFormat.java:366)
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:766)
           at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:243)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:279)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:270)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAs(Subject.java:422)
           at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1762)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:270)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:254)
           at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFu
   tureTask.java:125)
           at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
           at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.RuntimeException: java.lang.InstantiationException
           at org.apache.hive.common.util.ReflectionUtil.newInstance(ReflectionUtil.java:85)
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getInputFormatFromCache(HiveInputFormat.java:358)
           ... 15 more
   Caused by: java.lang.InstantiationException
           at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at org.apache.hive.common.util.ReflectionUtil.newInstance(ReflectionUtil.java:83)
           ... 16 more
   ]
   DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0
   FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_162
   2522135523_0068_1_00, diagnostics=[Vertex vertex_1622522135523_0068_1_00 [Map 1] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input:
    example3 initializer failed, vertex=vertex_1622522135523_0068_1_00 [Map 1], java.io.IOException: Cannot create an instance of InputFormat c
   lass org.apache.hadoop.mapred.FileInputFormat as specified in mapredWork!
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getInputFormatFromCache(HiveInputFormat.java:366)
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:766)
           at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:243)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:279)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:270)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAs(Subject.java:422)
           at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1762)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:270)
           at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:254)
           at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFu
   tureTask.java:125)
           at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69)
           at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.RuntimeException: java.lang.InstantiationException
           at org.apache.hive.common.util.ReflectionUtil.newInstance(ReflectionUtil.java:85)
           at org.apache.hadoop.hive.ql.io.HiveInputFormat.getInputFormatFromCache(HiveInputFormat.java:358)
           ... 15 more
   Caused by: java.lang.InstantiationException
           at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at org.apache.hive.common.util.ReflectionUtil.newInstance(ReflectionUtil.java:83)
           ... 16 more
   ]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org