add hoodie delta streamer mock source example and dfs source and kafka source examples Signed-off-by: dengziming <dengziming1993@gmail.com> add defaultSparkConf utils method change version of hudi-examples to 0.5.2-SNAPSHOT change the artifcatId of hudi-spark and hudi-utilities alter some code to adapt kafka2.0 Update scritps Add license
2.0 KiB
2.0 KiB
This directory contains examples code that uses hudi.
To run the demo:
- Configure your
SPARK_MASTERenv variable, yarn-cluster mode by default. - For hudi write client demo and hudi data source demo, just use spark-submit as common spark app
- For hudi delta streamer demo of custom source, run
bin/custom-delta-streamer-example.sh - For hudi delta streamer demo of dfs source:
4.1 Prepare dfs data, we have provided
src/main/resources/delta-streamer-config/dfs/source-file.jsonfor test 4.2 Runbin/dfs-delta-streamer-example.sh - For hudi delta streamer demo of dfs source:
5.1 Start Kafka server
5.2 Configure your Kafka properties, we have provided
src/main/resources/delta-streamer-config/kafka/kafka-source.propertiesfor test 5.3 Runbin/kafka-delta-streamer-example.sh5.4 continuously write source data to the Kafka topic your configured withhoodie.deltastreamer.source.kafka.topicinkafka-source.properties - Some notes delta streamer demo: 6.1 The configuration files we provided is just the simplest demo, you can change it according to your specific needs. 6.2 You could also use Intellij to run the example directly by configuring parameters as "Program arguments"