Closed vkhoroshko closed 8 months ago
@vkhoroshko This is a table property and we can't change any of the table properties.
@vkhoroshko This is a table property and we can't change any of the table properties.
But docs state that this should be possible - https://hudi.apache.org/docs/configurations/#FLINK_SQL Also, running HiveSyncTool directly does accept --database option and it's working.
The correct option for Flink SQL is "hive-sync.db" and not "hive-sync.database".
Closing the ticket.
Describe the problem you faced
Using Flink SQL it's not possible to change Database Name for Hive Sync.
To Reproduce
Steps to reproduce the behavior:
Despite that both hoodie.database.name and hive_sync.database are set to 'testdb' - it still attempts to create default_database in Hive. Looking at the generated .hoodie/hoodie.properties I still see
hoodie.database.name=default_database
Expected behavior Hudi metadata is synced to Hive Metastore testdb database.
A clear and concise description of what you expected to happen.
Environment Description
Hudi version : 0.14.1
Spark version :
Hive version :
Hadoop version :
Storage (HDFS/S3/GCS..) :
Running on Docker? (yes/no) : yes
Using hudi-flink1.17-bundle-0.14.1.jar
Additional context
Whenever Hive Sync is configured in Flink SQL - it tries to create default_database and there is no way to change it,
Stacktrace