Toroidals commented on issue #10779:
URL: https://github.com/apache/hudi/issues/10779#issuecomment-1972593297
> What catalog did you use then, the `Hudi` catalog in `hms` mode is
expected to be used here instead of the Flink Hive catalog.
The default catalog used for writing to Hudi in Flink, with database: hudi,
TABLE_NAME: hudi_table_01, is synchronized to the Hive database: ods, table
name: ods_hive_table_01. When querying the "ro" table ods.ods_hive_table_01 in
Hive, this error occurs.
HoodiePipeline.Builder builder = HoodiePipeline.builder("hudi_table_01");
builder.pk(hudiPrimaryKeys);
Map<String, String> options = new HashMap<>();
options.put(FlinkOptions.TABLE_TYPE.key(),
HoodieTableType.MERGE_ON_READ.name());
options.put(FlinkOptions.DATABASE_NAME.key(), "hudi");
options.put(FlinkOptions.TABLE_NAME.key(), "hudi_table_01");
options.put(FlinkOptions.PRE_COMBINE.key(), "true");
options.put(FlinkOptions.PRECOMBINE_FIELD.key(), "ts_ms");
options.put(FlinkOptions.HIVE_SYNC_MODE.key(), "hms");
options.put(FlinkOptions.HIVE_SYNC_DB.key(), "ods");
options.put(FlinkOptions.HIVE_SYNC_TABLE.key(), "ods_hive_table_01");
...
builder.options(options);
return builder;
> What catalog did you use then, the `Hudi` catalog in `hms` mode is
expected to be used here instead of the Flink Hive catalog.
--
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]