Skip to content

Commit

Permalink
[BitSail] Add java opts env for bitsail shell (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
humengyu2012 authored Sep 12, 2023
1 parent 28c41a2 commit ff07ab0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bitsail-dist/src/main/resources/bin/bitsail
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ BITSAIL_CLIENT_CLASSPATH=${BITSAIL_HOME}/libs/clients
if [ -n "$HADOOP_HOME" ]; then
export HADOOP_CLASSPATH=$($HADOOP_HOME/bin/hadoop classpath)
fi

if [ -z "$BITSAIL_JAVA_OPTS" ]; then
export BITSAIL_JAVA_OPTS="-Xmx128M"
fi

export BITSAIL_HOME=${BITSAIL_HOME}

exec java -cp ${BITSAIL_CLIENT_CLASSPATH}/*:${HADOOP_CLASSPATH}:${BITSAIL_CONF_DIR}/* com.bytedance.bitsail.client.entry.Entry ${args}
exec java ${BITSAIL_JAVA_OPTS} -cp ${BITSAIL_CLIENT_CLASSPATH}/*:${HADOOP_CLASSPATH}:${BITSAIL_CONF_DIR}/* com.bytedance.bitsail.client.entry.Entry ${args}

0 comments on commit ff07ab0

Please sign in to comment.