figo10203 opened a new issue #791: java.lang.RuntimeException: Metastore 
operation failed error reason
URL: https://github.com/apache/incubator-iceberg/issues/791
 
 
   Hi guys, I'm new to apache iceberg.
   When I want to create a table with hive like below. 
   
   val catalog = new HiveCatalog(spark.sessionState.newHadoopConf())
   
     val name = TableIdentifier.of("default", "logs")
     val schema = new Schema(
       NestedField.required(1, "level", StringType.get()),
       NestedField.required(2, "event_time", DateType.get()),
       NestedField.required(3, "message", StringType.get()))
   
   
     val table = catalog.createTable(name, schema)
   
   then an error happen, could you please help me out for this issue, I didn't
   set any hive transaction conf.  Thanks a lot!
   
   java.lang.RuntimeException: Metastore operation failed for default.logs1
     at 
org.apache.iceberg.hive.HiveTableOperations.doCommit(HiveTableOperations.java:186)
     at 
org.apache.iceberg.BaseMetastoreTableOperations.commit(BaseMetastoreTableOperations.java:102)
     at 
org.apache.iceberg.BaseMetastoreCatalog.createTable(BaseMetastoreCatalog.java:67)
     at org.apache.iceberg.hive.HiveCatalog.createTable(HiveCatalog.java:60)
     at org.apache.iceberg.catalog.Catalog.createTable(Catalog.java:84)
     ... 49 elided
   Caused by: org.apache.thrift.TApplicationException: Internal error 
processing lock
     at 
org.apache.thrift.TApplicationException.read(TApplicationException.java:111)
     at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:79)
     at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_lock(ThriftHiveMetastore.java:3906)
     at 
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.lock(ThriftHiveMetastore.java:3893)
     at 
org.apache.hadoop.hive.metastore.HiveMetaStoreClient.lock(HiveMetaStoreClient.java:1863)
     at 
org.apache.iceberg.hive.HiveTableOperations.lambda$acquireLock$5(HiveTableOperations.java:243)
     at org.apache.iceberg.hive.ClientPool.run(ClientPool.java:56)
     at 
org.apache.iceberg.hive.HiveTableOperations.acquireLock(HiveTableOperations.java:243)
     at 
org.apache.iceberg.hive.HiveTableOperations.doCommit(HiveTableOperations.java:131)
     ... 53 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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to