shengchiqu commented on issue #7507:
URL: https://github.com/apache/hudi/issues/7507#issuecomment-1360897712

   > There is no need OCC here for offline compaction, all you need to do is 
the start the `HoodieFlinkCompactor` app.
   
   @danny0405 thanks, the flink sql set 'metadata.enabled' = 'true', but in 
flink offline compaction i can't find any metadata properties in 
org.apache.hudi.sink.compact.FlinkCompactionConfig
   if offline compaction not update metadata table , is the Index unavailable ?
   
   i try the spark offline compaction, it seems to be working fine, and find 
the zk lock node is created, and hdfs hudi table path .hoodie/metadata/files/ 
is update
   ```shell
   /opt/spark-2.4.5-bin-without-hadoop/bin/spark-submit \
   --master yarn \
   --deploy-mode client \
   --class org.apache.hudi.utilities.HoodieCompactor 
hudi-utilities-bundle_2.11-0.12.1.jar \
   -sm 2g \
   --mode execute \
   --base-path hdfs://ip:8020/hudi/customer \
   --table-name customer \
   --hoodie-conf hoodie.embed.timeline.server=false \
   --hoodie-conf hoodie.write.concurrency.mode=optimistic_concurrency_control \
   --hoodie-conf hoodie.cleaner.policy.failed.writes=LAZY \
   --hoodie-conf 
hoodie.write.lock.provider=org.apache.hudi.client.transaction.lock.ZookeeperBasedLockProvider
 \
   --hoodie-conf hoodie.write.lock.zookeeper.url=ip \
   --hoodie-conf hoodie.write.lock.zookeeper.port=port \
   --hoodie-conf hoodie.write.lock.zookeeper.lock_key=customer \
   --hoodie-conf hoodie.write.lock.zookeeper.base_path=/hudi \
   --hoodie-conf hoodie.metadata.index.bloom.filter.enable=true \
   --hoodie-conf hoodie.metadata.index.column.stats.enable=false \
   --hoodie-conf hoodie.enable.data.skipping=false
   ```


-- 
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-unsubscr...@hudi.apache.org

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

Reply via email to