Skip to content

Commit

Permalink
streamis-server - refactor conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexkun committed Jul 26, 2023
1 parent 6ba26fc commit 5c03c70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions streamis-server/bin/start-streamis-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cd `dirname $0`
cd ..
HOME=`pwd`
export STREAMIS_HOME=$HOME

export STREAMIS_CONF=${STREAMIS_CONF_DIR:-"${STREAMIS_HOME}/conf"}
export STREAMIS_PID=$HOME/bin/linkis.pid

if [[ -f "${STREAMIS_PID}" ]]; then
Expand All @@ -17,9 +17,9 @@ fi

export STREAMIS_LOG_PATH=$HOME/logs
export STREAMIS_HEAP_SIZE="1G"
export STREAMIS_JAVA_OPTS="-Xms$STREAMIS_HEAP_SIZE -Xmx$STREAMIS_HEAP_SIZE -XX:+UseG1GC -XX:MaxPermSize=500m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=11729"
export STREAMIS_JAVA_OPTS="-Xms$STREAMIS_HEAP_SIZE -Xmx$STREAMIS_HEAP_SIZE -XX:+UseG1GC -XX:MaxPermSize=500m -Xloggc:$STREAMIS_LOG_DIR/streamis-gc.log -XX:+PrintGCDateStamps "

nohup java $STREAMIS_JAVA_OPTS -cp $HOME/conf:$HOME/lib/* org.apache.linkis.DataWorkCloudApplication 2>&1 > $STREAMIS_LOG_PATH/streamis.out &
nohup java $STREAMIS_JAVA_OPTS -cp $STREAMIS_CONF:$HOME/lib/* org.apache.linkis.DataWorkCloudApplication 2>&1 > $STREAMIS_LOG_PATH/streamis.out &
pid=$!
if [[ -z "${pid}" ]]; then
echo "Streamis Server start failed!"
Expand Down

0 comments on commit 5c03c70

Please sign in to comment.