infa-ibannatt opened a new issue, #7840:
URL: https://github.com/apache/iceberg/issues/7840

   Hi folks,
   I have standalone hadoop 3.3.5 cluster, and hive 3.1.3 installed and copied 
iceberg-hive-runtime.1.3.0.jar in the hive lib folder.
   launched hive session and added the hive-runtime-jar in hive session 
   /bin/hive
   add jar hdfs:///tmp/jars/iceberg-hive-runtime-1.3.0.jar;
   added below env in hive session
   SET iceberg.catalog.another_hive.type=hive;
   SET iceberg.catalog.another_hive.uri=thrift://localhost:9083;
   SET iceberg.catalog.another_hive.clients=10;
   SET 
iceberg.catalog.another_hive.warehouse=hdfs://localhost:9000/user/hive/warehouse;
   SET iceberg.engine.hive.enabled=true;
   
   CREATE TABLE test_ic (id INT, name STRING) STORED BY 
'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler';
   OK
   Time taken: 1.979 seconds
   
   hive> insert into test_ic values(1,'test');
   Query ID = hadoop_20230614224133_3b760621-ac21-4d9f-9b0d-046fd85196a7
   Total jobs = 1
   Launching Job 1 out of 1
   Number of reduce tasks is set to 0 since there's no reduce operator
   Starting Job = job_1686759816002_0006, Tracking URL = 
http://asvganivm04:8088/proxy/application_1686759816002_0006/
   Kill Command = /export/home/hadoop/hadoop/bin/mapred job  -kill 
job_1686759816002_0006
   Hadoop job information for Stage-2: number of mappers: 1; number of 
reducers: 0
   2023-06-14 22:41:42,395 Stage-2 map = 0%,  reduce = 0%
   2023-06-14 22:41:48,681 Stage-2 map = 100%,  reduce = 0%, Cumulative CPU 
7.82 sec
   MapReduce Total cumulative CPU time: 7 seconds 820 msec
   Ended Job = job_1686759816002_0006 with errors
   Error during job, obtaining debugging information...
   Examining task ID: task_1686759816002_0006_m_000000 (and more) from job 
job_1686759816002_0006
   FAILED: Execution Error, return code 2 from 
org.apache.hadoop.hive.ql.exec.mr.MapRedTask
   MapReduce Jobs Launched:
   Stage-Stage-2: Map: 1   Cumulative CPU: 7.82 sec   HDFS Read: 188220 HDFS 
Write: 2971 FAIL
   Total MapReduce CPU Time Spent: 7 seconds 820 msec
   
   error in application log
   Job commit failed: org.apache.iceberg.hive.RuntimeMetaException: Failed to 
connect to Hive Metastore
   at org.apache.iceberg.hive.HiveClientPool.newClient(HiveClientPool.java:84)
   at org.apache.iceberg.hive.HiveClientPool.newClient(HiveClientPool.java:34)
   at org.apache.iceberg.ClientPoolImpl.get(ClientPoolImpl.java:125)
   at org.apache.iceberg.ClientPoolImpl.run(ClientPoolImpl.java:56)
   at org.apache.iceberg.ClientPoolImpl.run(ClientPoolImpl.java:51)
   at org.apache.iceberg.hive.CachedClientPool.run(CachedClientPool.java:122)
   at 
org.apache.iceberg.hive.HiveTableOperations.doRefresh(HiveTableOperations.java:158)
   at 
org.apache.iceberg.BaseMetastoreTableOperations.refresh(BaseMetastoreTableOperations.java:97)
   at 
org.apache.iceberg.BaseMetastoreTableOperations.current(BaseMetastoreTableOperations.java:80)
   at 
org.apache.iceberg.BaseMetastoreCatalog.loadTable(BaseMetastoreCatalog.java:47)
   at org.apache.iceberg.mr.Catalogs.loadTable(Catalogs.java:124)
   at org.apache.iceberg.mr.Catalogs.loadTable(Catalogs.java:111)
   at 
org.apache.iceberg.mr.hive.HiveIcebergOutputCommitter.commitTable(HiveIcebergOutputCommitter.java:320)
   at 
org.apache.iceberg.mr.hive.HiveIcebergOutputCommitter.lambda$commitJob$2(HiveIcebergOutputCommitter.java:214)
   at org.apache.iceberg.util.Tasks$Builder.runTaskWithRetry(Tasks.java:413)
   at org.apache.iceberg.util.Tasks$Builder.runSingleThreaded(Tasks.java:219)
   at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:203)
   at org.apache.iceberg.util.Tasks$Builder.run(Tasks.java:196)
   at 
org.apache.iceberg.mr.hive.HiveIcebergOutputCommitter.commitJob(HiveIcebergOutputCommitter.java:207)
   at 
org.apache.hadoop.mapred.OutputCommitter.commitJob(OutputCommitter.java:291)
   at 
org.apache.hadoop.mapreduce.v2.app.commit.CommitterEventHandler$EventProcessor.handleJobCommit(CommitterEventHandler.java:286)
   at 
org.apache.hadoop.mapreduce.v2.app.commit.CommitterEventHandler$EventProcessor.run(CommitterEventHandler.java:238)
   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:750)
   Caused by: java.lang.NoClassDefFoundError: 
com/facebook/fb303/FacebookService$Iface
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at 
org.apache.hadoop.hive.metastore.utils.JavaUtils.getClass(JavaUtils.java:52)
   at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:146)
   at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:119)
   at 
org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.getProxy(RetryingMetaStoreClient.java:112)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at 
org.apache.iceberg.common.DynMethods$UnboundMethod.invokeChecked(DynMethods.java:60)
   at 
org.apache.iceberg.common.DynMethods$UnboundMethod.invoke(DynMethods.java:72)
   at 
org.apache.iceberg.common.DynMethods$StaticMethod.invoke(DynMethods.java:185)
   at org.apache.iceberg.hive.HiveClientPool.newClient(HiveClientPool.java:63)
   ... 24 more
   Caused by: java.lang.ClassNotFoundException: 
com.facebook.fb303.FacebookService$Iface
   at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
   ... 50 more
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to