Instance
Use Spark to perform operations such as data insertion, query, update, incremental query, query at a specific time point, and data deletion on Hudi.
Run the following spark-submit command:
Scala:
spark-submit --jars /opt/huditest/example/hudi-examples-0.8.0.jar --class com.huawei.bigdata.hudi.examples.HoodieDataSourceExample /opt/huditest/example/* hdfs://hacluster/tmp/huditest/example/scala hoodie_rt_scala
Python:
spark-submit /opt/huditest/example/HudiPythonExample.py hdfs://hacluster/tmp/huditest/example/python hudi_trips_cow
Java:
spark-submit --jars /opt/huditest/example/hudi-examples-0.8.0.jar --class com.huawei.bigdata.hudi.examples.HoodieWriteClientExample /opt/huditest/example/* hdfs://hacluster/tmp/huditest/example/java hoodie_java
Last Article: Using Spark to Perform Basic Hudi Operations
Next Article: Scala Example Code
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.