ad1happy2go commented on issue #10815:
URL: https://github.com/apache/hudi/issues/10815#issuecomment-1978732557
@soumilshah1995 Looks like you missed to enable the record index.
I was able to run successfully below command by just adding `--hoodie-conf
"hoodie.metadata.record.index.enable=true" \` -
```
~/plain_spark/spark-3.2.4-bin-hadoop3.2/bin/spark-submit \
--class org.apache.hudi.utilities.HoodieIndexer \
--packages 'org.apache.hudi:hudi-spark3.2-bundle_2.12:0.14.1' \
--master 'local[*]' \
--executor-memory 1g \
~/jars/0.14.1/spark32/hudi-utilities-slim-bundle_2.12-0.14.1.jar \
--mode scheduleAndExecute \
--base-path file:///tmp/hudi_cow_read \
--table-name hudi_table \
--index-types RECORD_INDEX \
--hoodie-conf "hoodie.metadata.enable=true" \
--hoodie-conf
"hoodie.write.concurrency.mode=optimistic_concurrency_control" \
--hoodie-conf
"hoodie.write.lock.provider=org.apache.hudi.client.transaction.lock.InProcessLockProvider"
\
--hoodie-conf "hoodie.metadata.record.index.enable=true" \
--hoodie-conf "hoodie.metadata.index.async=true" \
--parallelism 2 \
--spark-memory 2g
```
<img width="1584" alt="image"
src="https://github.com/apache/hudi/assets/63430370/0f6dcbe3-cc9a-40a4-8644-c1329cd34903">
--
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]