mansipp commented on code in PR #12923:
URL: https://github.com/apache/hudi/pull/12923#discussion_r1988033231


##########
website/docs/cli.md:
##########
@@ -5,13 +5,15 @@ last_modified_at: 2021-08-18T15:59:57-04:00
 ---
 
 ### Local set up
-Once hudi has been built, the shell can be fired by via  `cd hudi-cli && 
./hudi-cli.sh`.
+Once hudi has been built, the shell can be fired by via  `cd 
packaging/hudi-cli-bundle && hudi-cli-with-bundle.sh` or 
`packaging/hudi-cli-bundle/hudi-cli-with-bundle.sh`.

Review Comment:
   Users can set these environment variables to the specific path where their 
JAR files are located. If not set, the CLI will default to the predefined path 
for local setup.
   
   ```
   if [ -z "$CLI_BUNDLE_JAR" ]; then
     echo "Inferring CLI_BUNDLE_JAR path assuming this script is under Hudi 
repo"
     CLI_BUNDLE_JAR=`ls $DIR/target/hudi-cli-bundle*.jar | grep -v source | 
grep -v javadoc`
   fi
   
   if [ -z "$SPARK_BUNDLE_JAR" ]; then
     echo "Inferring SPARK_BUNDLE_JAR path assuming this script is under Hudi 
repo"
     SPARK_BUNDLE_JAR=`ls 
$DIR/../hudi-spark-bundle/target/hudi-spark*-bundle*.jar | grep -v source | 
grep -v javadoc`
   fi
   
   if [ -z "$SPARK_HOME" ]; then
     echo "SPARK_HOME not set, setting to /usr/local/spark"
     export SPARK_HOME="/usr/local/spark"
   fi
   ```



-- 
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]

Reply via email to