hddong commented on a change in pull request #1042: [HUDI-359] Add hudi-env for
hudi-cli module
URL: https://github.com/apache/incubator-hudi/pull/1042#discussion_r350072902
##########
File path: hudi-cli/hudi-cli.sh
##########
@@ -20,15 +20,12 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
HOODIE_JAR=`ls $DIR/target/hudi-cli-*.jar | grep -v source | grep -v javadoc`
-if [ -z "$HADOOP_CONF_DIR" ]; then
- echo "setting hadoop conf dir"
- HADOOP_CONF_DIR="/etc/hadoop/conf"
-fi
-if [ -z "$SPARK_CONF_DIR" ]; then
- echo "setting spark conf dir"
- SPARK_CONF_DIR="/etc/spark/conf"
-fi
+
+. "${DIR}"/conf/hudi-env.sh
+
if [ -z "$CLIENT_JAR" ]; then
- echo "client jar location not set"
+ echo "Client jar location not set, please set it in conf/hudi-env.sh"
+ exit
Review comment:
@vinothchandar Found `exit` cause checks failed, have to delete it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services