Skip to content

Instantly share code, notes, and snippets.

View nfarah86's full-sized avatar

nadine farah nfarah86

View GitHub Profile
hudi-> connect -–path TABLE_PATH
export SPARK_HOME=<spark-home-folder>
export CLI_BUNDLE_JAR=<cli-bundle-jar-to-use>
export SPARK_BUNDLE_JAR=<spark-bundle-jar-to-use>
./hudi-cli-with-bundle.sh
cp $HUDI_REPO_ROOT/packaging/hudi-cli-bundle/hudi-cli-with-bundle.sh cli-staging/
mkdir cli-staging/conf
cp $HUDI_REPO_ROOT/packaging/hudi-cli-bundle/conf/* cli-staging/conf/
cp $HUDI_REPO_ROOT/packaging/hudi-spark-bundle/target/hudi-spark3.2-bundle_2.12-0.13.0.jar cli-staging/
cp $HUDI_REPO_ROOT/packaging/hudi-cli-bundle/target/hudi-cli-bundle_2.12-0.13.0.jar cli-staging/
cp $HUDI_REPO_ROOT/packaging/hudi-cli-bundle/hudi-cli-with-bundle.sh cli-staging/
mkdir cli-staging/
mvn -T 2C clean package -DskipTests -Dspark[YourVersion] -Dscala-[YourVersion]
cd ../
export SPARK_HOME=<spark-home-folder>
export CLI_BUNDLE_JAR=<cli-bundle-jar-to-use>
export SPARK_BUNDLE_JAR=<spark-bundle-jar-to-use>
./hudi-cli-with-bundle.sh
mkdir conf/
cd conf/
$ curl https://raw.githubusercontent.com/apache/hudi/release-0.13.0/packaging/hudi-cli-bundle/conf/hudi-env.sh -o hudi-env.sh
$ curl https://raw.githubusercontent.com/apache/hudi/release-0.13.0/packaging/hudi-cli-bundle/conf/log4j2.properties -o log4j2.properties
$ curl https://repo1.maven.org/maven2/org/apache/hudi/hudi-cli-bundle_2.12/0.13.0/hudi-cli-bundle_2.12-0.13.0.jar -o hudi-cli-bundle_2.12-0.13.0.jar
$ curl https://repo1.maven.org/maven2/org/apache/hudi/hudi-spark3.2-bundle_2.12/0.13.0/hudi-spark3.2-bundle_2.12-0.13.0.jar -o hudi-spark3.2-bundle_2.12-0.13.0.jar
$ curl https://raw.githubusercontent.com/apache/hudi/release-0.13.0/packaging/hudi-cli-bundle/hudi-cli-with-bundle.sh -o hudi-cli-with-bundle.sh
mkdir cli-staging/
cd cli-staging/