Skip to content

Commit

Permalink
[0.9.4]New features, new CS and http dependency optimization (#405)
Browse files Browse the repository at this point in the history
* Branch 0.9.4 (#12)

* Shell engine remove useless gpg plugins
close #293

* metadatamanager server update

* Update start-all.sh

Repair bug that two ips are gotten.

* Update checkServices.sh

Repair the bug that two ips are gotten.

* Update stop-all.sh

Repair the bug that two ips are gotten instead of one.

* Update install.sh

Repair the bug that two ips are gotten instead of one.

* #299 add restful

* Provide a metadata management common module
close #302

* #299 Provide configuration service in module

* #299

* #Fixes #299

* fixed #297

* #Fixes #299

* Fixed #298

* Fixed #301

* add metadatamanager/hive

Co-authored-by: chaogefeng <[email protected]>
Co-authored-by: alexkun <[email protected]>
Co-authored-by: 5herhom <[email protected]>
Co-authored-by: liaoyt <[email protected]>
Co-authored-by: xj2jx <[email protected]>
Co-authored-by: Davidhua1996 <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: alexzyWu <[email protected]>
Co-authored-by: bleachzk <[email protected]>
Co-authored-by: dennyzhou-zdx <[email protected]>
Co-authored-by: kantlin <[email protected]>
Co-authored-by: zhengfan199525 <[email protected]>

* Modified public dependent lib is introduced through classPath closes #392

* to modify the queue of ListenerBus to ArrayBlockingQueue
closes #395

* Unify the configuration parameters of gatewayURL
closes #393

* Add license

* http dependency module optimization
closes #388

* To add support for CS cache function
closes #368

* UJES supports ContextService function
closes #390

* Optimize imports

* Update version to 0.9.4

* Modified public dependent lib is introduced through classPath closes #392

* Update version to 0.9.4

Co-authored-by: chaogefeng <[email protected]>
Co-authored-by: alexkun <[email protected]>
Co-authored-by: 5herhom <[email protected]>
Co-authored-by: liaoyt <[email protected]>
Co-authored-by: xj2jx <[email protected]>
Co-authored-by: Davidhua1996 <[email protected]>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: alexzyWu <[email protected]>
Co-authored-by: bleachzk <[email protected]>
Co-authored-by: dennyzhou-zdx <[email protected]>
Co-authored-by: kantlin <[email protected]>
Co-authored-by: zhengfan199525 <[email protected]>
Co-authored-by: cooperyang <[email protected]>
  • Loading branch information
14 people authored Jun 3, 2020
1 parent f855351 commit 05b392d
Show file tree
Hide file tree
Showing 115 changed files with 3,465 additions and 435 deletions.
3 changes: 3 additions & 0 deletions bin/checkServices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ MICRO_SERVICE_NAME=$1
MICRO_SERVICE_IP=$2
MICRO_SERVICE_PORT=$3


source ${workDir}/bin/common.sh
local_host="`hostname --fqdn`"

ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
Expand Down Expand Up @@ -58,6 +60,7 @@ function executeCMD(){

}


echo "Start to Check if your microservice:$MICRO_SERVICE_NAME is normal via telnet"
echo "--------------------------------------------------------------------------------------------------------------------------"
echo $MICRO_SERVICE_NAME
Expand Down
74 changes: 74 additions & 0 deletions bin/common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/bin/sh
#
# Copyright 2019 WeBank
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#Actively load user env
source ~/.bash_profile

local_host="`hostname --fqdn`"

ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}' | awk 'NR==1')

function isLocal(){
if [ "$1" == "127.0.0.1" ];then
return 0
elif [ "$1" == "" ]; then
return 0
elif [ "$1" == "localhost" ]; then
return 0
elif [ "$1" == $local_host ]; then
return 0
elif [ "$1" == $ipaddr ]; then
return 0
fi
return 1
}

function executeCMD(){
isLocal $1
flag=$?
if [ $flag == "0" ];then
echo "Is local execution:$2"
eval $2
else
echo "Is remote execution:$2"
ssh -p $SSH_PORT $1 $2
fi

}
function copyFile(){
isLocal $1
flag=$?
src=$2
dest=$3
if [ $flag == "0" ];then
echo "Is local cp "
cp -r "$src" "$dest"
else
echo "Is remote cp "
scp -r -P $SSH_PORT "$src" $1:"$dest"
fi

}

function isSuccess(){
if [ $? -ne 0 ]; then
echo "Failed to " + $1
exit 1
else
echo "Succeed to" + $1
fi
}
100 changes: 64 additions & 36 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,7 @@ else
exit 1
fi

function isSuccess(){
if [ $? -ne 0 ]; then
echo "Failed to " + $1
exit 1
else
echo "Succeed to" + $1
fi
}
source ${workDir}/bin/common.sh

function checkPythonAndJava(){
python --version
Expand Down Expand Up @@ -128,6 +121,7 @@ source ${LINKIS_DB_CONFIG_PATH}
source ${DISTRIBUTION}
isSuccess "load config"


local_host="`hostname --fqdn`"

ipaddr=$(ip addr | awk '/^[0-9]+: / {}; /inet.*global/ {print gensub(/(.*)\/(.*)/, "\\1", "g", $2)}'|awk 'NR==1')
Expand Down Expand Up @@ -156,24 +150,9 @@ function executeCMD(){
ssh -p $SSH_PORT $1 $2
fi

}
function copyFile(){
isLocal $1
flag=$?
src=$2
dest=$3
if [ $flag == "0" ];then
echo "Is local cp "
eval "cp -r $src $dest"
else
echo "Is remote cp "
scp -r -P $SSH_PORT $src $1:$dest
fi

}

##install mode choice

if [ "$INSTALL_MODE" == "" ];then
echo "Please enter the mode selection such as: 1"
echo " 1: Lite"
Expand Down Expand Up @@ -233,7 +212,6 @@ then
elif [[ $WORKSPACE_USER_ROOT_PATH == hdfs://* ]];then
localRootDir=${WORKSPACE_USER_ROOT_PATH#hdfs://}
hdfs dfs -mkdir -p $localRootDir/$deployUser
hdfs dfs -chmod -R 775 $localRootDir/$deployUser
else
echo "does not support $WORKSPACE_USER_ROOT_PATH filesystem types"
fi
Expand All @@ -251,7 +229,6 @@ then
elif [[ $HDFS_USER_ROOT_PATH == hdfs://* ]];then
localRootDir=${HDFS_USER_ROOT_PATH#hdfs://}
hdfs dfs -mkdir -p $localRootDir/$deployUser
hdfs dfs -chmod -R 775 $localRootDir/$deployUser
else
echo "does not support $HDFS_USER_ROOT_PATH filesystem types"
fi
Expand All @@ -269,7 +246,6 @@ then
elif [[ $RESULT_SET_ROOT_PATH == hdfs://* ]];then
localRootDir=${RESULT_SET_ROOT_PATH#hdfs://}
hdfs dfs -mkdir -p $localRootDir/$deployUser
hdfs dfs -chmod -R 775 $localRootDir/$deployUser
else
echo "does not support $RESULT_SET_ROOT_PATH filesystem types"
fi
Expand Down Expand Up @@ -335,20 +311,19 @@ if ! executeCMD $SERVER_IP "test -e $SERVER_HOME"; then
isSuccess "create the dir of $SERVER_NAME"
fi

if ! executeCMD $SERVER_IP "test -e $SERVER_HOME/module"; then
copyFile $SERVER_IP ${workDir}/share/linkis/module/module.zip $SERVER_HOME
isSuccess "cp module.zip"
executeCMD $SERVER_IP "cd $SERVER_HOME/;unzip -o module.zip > /dev/null;cd -"
isSuccess "unzip module.zip"
fi

echo "$SERVER_NAME-step2:copy install package"
copyFile $SERVER_IP ${workDir}/share/$PACKAGE_DIR/$SERVER_NAME.zip $SERVER_HOME
isSuccess "copy ${SERVER_NAME}.zip"
executeCMD $SERVER_IP "cd $SERVER_HOME/;rm -rf $SERVER_NAME-bak; mv -f $SERVER_NAME $SERVER_NAME-bak;cd -"
executeCMD $SERVER_IP "cd $SERVER_HOME/;unzip -o $SERVER_NAME.zip > /dev/null; cd -"
isSuccess "unzip ${SERVER_NAME}.zip"
if [ "$SERVER_NAME" != "linkis-gateway" ]
then
copyFile $SERVER_IP ${workDir}/share/linkis/module/module.zip $SERVER_HOME
isSuccess "cp module.zip"
executeCMD $SERVER_IP "cd $SERVER_HOME/;rm -rf modulebak;mv -f module modulebak;cd -"
executeCMD $SERVER_IP "cd $SERVER_HOME/;unzip -o module.zip > /dev/null;cp -f module/lib/* $SERVER_HOME/$SERVER_NAME/lib/;cd -"
isSuccess "unzip module.zip"
fi
echo "$SERVER_NAME-step3:subsitution conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/application.yml
executeCMD $SERVER_IP "sed -i ${txt} \"s#port:.*#port: $SERVER_PORT#g\" $SERVER_CONF_PATH"
Expand All @@ -358,12 +333,32 @@ isSuccess "subsitution conf of $SERVER_NAME"
}
##function end

##cp module to em lib
function emExtraInstallModule(){
executeCMD $SERVER_IP "cd $SERVER_HOME/;cp -f module/lib/* $SERVER_HOME/$SERVER_NAME/lib/;cd -"
isSuccess "copy module"
}
##replace conf 1. replace if it exists 2.not exists add
function replaceConf(){
option=$1
value=$2
file=$3
executeCMD $SERVER_IP "grep -q '^$option' $file && sed -i ${txt} 's/^$option.*/$option=$value/' $file || echo '$option=$value' >> $file"
isSuccess "copy module"
}


##GateWay Install
PACKAGE_DIR=springcloud/gateway
SERVER_NAME=linkis-gateway
SERVER_IP=$GATEWAY_INSTALL_IP
SERVER_PORT=$GATEWAY_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
if test -z "$SERVER_IP"
then
GATEWAY_INSTALL_IP=$local_host
fi

###install dir
installPackage
###update linkis.properties
Expand Down Expand Up @@ -393,8 +388,7 @@ executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.server.mybatis.datasource
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.workspace.filesystem.localuserrootpath.*#wds.linkis.workspace.filesystem.localuserrootpath=$WORKSPACE_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.workspace.filesystem.hdfsuserrootpath.prefix.*#wds.linkis.workspace.filesystem.hdfsuserrootpath.prefix=$HDFS_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.gateway.ip.*#wds.linkis.gateway.ip=$GATEWAY_INSTALL_IP#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.gateway.port.*#wds.linkis.gateway.port=$GATEWAY_PORT#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##publicservice end
Expand Down Expand Up @@ -428,12 +422,14 @@ SERVER_PORT=$PYTHON_EM_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
###install dir
installPackage
emExtraInstallModule
###update linkis.properties
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.enginemanager.sudo.script.*#wds.linkis.enginemanager.sudo.script=$SERVER_HOME/$SERVER_NAME/bin/rootScript.sh#g\" $SERVER_CONF_PATH"
SERVER_ENGINE_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis-engine.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_ENGINE_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"

Expand All @@ -450,6 +446,7 @@ SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.entrance.config.logPath.*#wds.linkis.entrance.config.logPath=$WORKSPACE_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.resultSet.store.path.*#wds.linkis.resultSet.store.path=$RESULT_SET_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##PythonEntrance install end
Expand Down Expand Up @@ -510,6 +507,24 @@ isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##metadata end

##linkis-cs-server install
PACKAGE_DIR=linkis/linkis-cs-server
SERVER_NAME=linkis-cs-server
SERVER_IP=$CS_INSTALL_IP
SERVER_PORT=$CS_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
###install dir
installPackage
###update linkis.properties
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.server.mybatis.datasource.url.*#wds.linkis.server.mybatis.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB}?characterEncoding=UTF-8#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.server.mybatis.datasource.username.*#wds.linkis.server.mybatis.datasource.username=$MYSQL_USER#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.server.mybatis.datasource.password.*#wds.linkis.server.mybatis.datasource.password=$MYSQL_PASSWORD#g\" $SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##cs end

##HiveEM install
PACKAGE_DIR=linkis/ujes/hive
SERVER_NAME=linkis-ujes-hive-enginemanager
Expand All @@ -518,6 +533,7 @@ SERVER_PORT=$HIVE_EM_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
###install dir
installPackage
emExtraInstallModule
###update linkis.properties
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
Expand All @@ -527,7 +543,9 @@ executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hive.config.dir.*#hive.config.dir=
SERVER_ENGINE_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis-engine.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hive.config.dir.*#hive.config.dir=$HIVE_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_ENGINE_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
executeCMD $SERVER_IP "rm $SERVER_HOME/$SERVER_NAME/lib/guava-25.1-jre.jar"
executeCMD $SERVER_IP "rm $SERVER_HOME/$SERVER_NAME/lib/servlet-api-2.5.jar"
echo "<----------------$SERVER_NAME:end------------------->"
##HiveEM install end
Expand All @@ -544,6 +562,7 @@ SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.entrance.config.logPath.*#wds.linkis.entrance.config.logPath=$WORKSPACE_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.resultSet.store.path.*#wds.linkis.resultSet.store.path=$RESULT_SET_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##HiveEntrance install end
Expand All @@ -566,6 +585,7 @@ SERVER_PORT=$SPARK_EM_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
###install dir
installPackage
emExtraInstallModule
###update linkis.properties
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
Expand All @@ -576,6 +596,7 @@ executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.spark.driver.conf.mainjar
SERVER_ENGINE_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis-engine.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#spark.config.dir.*#spark.config.dir=$SPARK_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_ENGINE_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##SparkEM install end
Expand All @@ -592,6 +613,7 @@ SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.entrance.config.logPath.*#wds.linkis.entrance.config.logPath=$WORKSPACE_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.resultSet.store.path.*#wds.linkis.resultSet.store.path=$HDFS_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##SparkEntrance install end
Expand All @@ -600,6 +622,7 @@ echo "<----------------$SERVER_NAME:end------------------->"
##JDBCEntrance install
PACKAGE_DIR=linkis/ujes/jdbc
SERVER_NAME=linkis-ujes-jdbc-entrance
SERVER_IP=$JDBC_INSTALL_IP
SERVER_PORT=$JDBC_ENTRANCE_PORT
###install dir
installPackage
Expand All @@ -609,6 +632,7 @@ SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.entrance.config.logPath.*#wds.linkis.entrance.config.logPath=$WORKSPACE_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.resultSet.store.path.*#wds.linkis.resultSet.store.path=$HDFS_USER_ROOT_PATH#g\" $SERVER_CONF_PATH"
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##JDBCEntrance install end
Expand All @@ -622,12 +646,14 @@ SERVER_PORT=$SHELL_EM_PORT
SERVER_HOME=$LINKIS_INSTALL_HOME
###install dir
installPackage
emExtraInstallModule
###update linkis.properties
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#wds.linkis.enginemanager.sudo.script.*#wds.linkis.enginemanager.sudo.script=$SERVER_HOME/$SERVER_NAME/bin/rootScript.sh#g\" $SERVER_CONF_PATH"
SERVER_ENGINE_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis-engine.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_ENGINE_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_ENGINE_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"

Expand All @@ -641,8 +667,10 @@ installPackage
echo "$SERVER_NAME-step4:update linkis conf"
SERVER_CONF_PATH=$SERVER_HOME/$SERVER_NAME/conf/linkis.properties
executeCMD $SERVER_IP "sed -i ${txt} \"s#\#hadoop.config.dir.*#hadoop.config.dir=$HADOOP_CONF_DIR#g\" $SERVER_CONF_PATH"
replaceConf "wds.linkis.gateway.url" "http://$GATEWAY_INSTALL_IP:$GATEWAY_PORT" "$SERVER_CONF_PATH"
isSuccess "subsitution linkis.properties of $SERVER_NAME"
echo "<----------------$SERVER_NAME:end------------------->"
##SHELLEntrance install end



Loading

0 comments on commit 05b392d

Please sign in to comment.