You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "alberttwong (via GitHub)" <gi...@apache.org> on 2024/02/20 04:33:12 UTC

[I] [SUPPORT] Using Hudi 0.11 and getting org.apache.hudi.hive.ddl.HMSDDLExecutor [hudi]

alberttwong opened a new issue, #10707:
URL: https://github.com/apache/hudi/issues/10707

   Running
   ```
   import org.apache.hudi.QuickstartUtils._
   import scala.collection.JavaConversions._
   import org.apache.spark.sql.SaveMode._
   import org.apache.hudi.DataSourceReadOptions._
   import org.apache.hudi.DataSourceWriteOptions._
   import org.apache.hudi.config.HoodieWriteConfig._
   import org.apache.hudi.common.model.HoodieRecord
   val tableName = "hudi_trips_cow"
   val basePath = "s3a://hudi/hudi_trips_cow"
   val dataGen = new DataGenerator
   val inserts = convertToStringList(dataGen.generateInserts(10))
   val df = spark.read.json(spark.sparkContext.parallelize(inserts, 2))
   df.write.format("hudi").
   options(getQuickstartWriteConfigs).
   option(PRECOMBINE_FIELD_OPT_KEY, "ts").
   option(RECORDKEY_FIELD_OPT_KEY, "uuid").
   option(PARTITIONPATH_FIELD_OPT_KEY, "partitionpath").
   option(TABLE_NAME, tableName).
     option("hoodie.datasource.hive_sync.enable", "true").
     option("hoodie.datasource.hive_sync.mode", "hms").
     option("hoodie.datasource.hive_sync.database", "hudi_sample").
     option("hoodie.datasource.hive_sync.table", tableName).
     option("hoodie.datasource.hive_sync.metastore.uris", "thrift://hive-metastore:9083").
   mode(Overwrite).
   save(basePath)
   ```
   
   Getting error
   ```
   167882 [main] ERROR org.apache.hudi.hive.ddl.HMSDDLExecutor  - hudi_sample.hudi_trips_cow add partition failed
   MetaException(message:Invalid partition key & values; keys [partitionpath, ], values [americas, brazil, sao_paulo, ])
           at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$add_partitions_req_result$add_partitions_req_resultStandardScheme.read(ThriftHiveMetastore.java)
           at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$add_partitions_req_result$add_partitions_req_resultStandardScheme.read(ThriftHiveMetastore.java)
           at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$add_partitions_req_result.read(ThriftHiveMetastore.java)
           at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:88)
           at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_add_partitions_req(ThriftHiveMetastore.java:1911)
           at org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.add_partitions_req(ThriftHiveMetastore.java:1898)
           at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.add_partitions(HiveMetaStoreClient.java:625)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   ```


-- 
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: commits-unsubscribe@hudi.apache.org.apache.org

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


Re: [I] [SUPPORT] Using Hudi 0.11 and getting org.apache.hudi.hive.ddl.HMSDDLExecutor [hudi]

Posted by "alberttwong (via GitHub)" <gi...@apache.org>.
alberttwong closed issue #10707: [SUPPORT] Using Hudi 0.11 and getting org.apache.hudi.hive.ddl.HMSDDLExecutor
URL: https://github.com/apache/hudi/issues/10707


-- 
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: commits-unsubscribe@hudi.apache.org

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


Re: [I] [SUPPORT] Using Hudi 0.11 and getting org.apache.hudi.hive.ddl.HMSDDLExecutor [hudi]

Posted by "alberttwong (via GitHub)" <gi...@apache.org>.
alberttwong commented on issue #10707:
URL: https://github.com/apache/hudi/issues/10707#issuecomment-1953473223

   upgraded to Hudi 0.14.1 and it fixed it. 


-- 
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: commits-unsubscribe@hudi.apache.org

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