You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2022/07/07 12:17:01 UTC
[incubator-linkis] branch dev-1.1.3 updated: install.sh adjust wds.linkis.keytab.enable (#2421)
This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch dev-1.1.3
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.1.3 by this push:
new 4df834959 install.sh adjust wds.linkis.keytab.enable (#2421)
4df834959 is described below
commit 4df834959caaa969905a60c0e10b5b76ec805c6c
Author: Casion <ca...@gmail.com>
AuthorDate: Thu Jul 7 20:16:54 2022 +0800
install.sh adjust wds.linkis.keytab.enable (#2421)
---
assembly-combined-package/assembly-combined/conf/linkis.properties | 5 +++++
assembly-combined-package/bin/install.sh | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/assembly-combined-package/assembly-combined/conf/linkis.properties b/assembly-combined-package/assembly-combined/conf/linkis.properties
index 7f5305d33..7d78cb651 100644
--- a/assembly-combined-package/assembly-combined/conf/linkis.properties
+++ b/assembly-combined-package/assembly-combined/conf/linkis.properties
@@ -33,6 +33,11 @@ wds.linkis.mysql.is.encrypt=false
#hive.config.dir=
#spark.config.dir
+
+#wds.linkis.keytab.enable=true
+#wds.linkis.keytab.file=/appcom/keytab/
+
+
##file path
wds.linkis.filesystem.root.path=file:///tmp/linkis/
wds.linkis.filesystem.hdfs.root.path=hdfs:///tmp/linkis/
diff --git a/assembly-combined-package/bin/install.sh b/assembly-combined-package/bin/install.sh
index 3c8dede26..9392ec1df 100644
--- a/assembly-combined-package/bin/install.sh
+++ b/assembly-combined-package/bin/install.sh
@@ -308,8 +308,8 @@ sed -i ${txt} "s#\#spark.config.dir.*#spark.config.dir=$SPARK_CONF_DIR#g" $comm
if [ "true" == "$HADOOP_KERBEROS_ENABLE" ]
then
- sed -i ${txt} '$a \wds.linkis.keytab.enable=true' $LINKIS_HOME/conf/linkis.properties
- sed -i ${txt} '$a \wds.linkis.keytab.file=$HADOOP_KEYTAB_PATH' $LINKIS_HOME/conf/linkis.properties
+ sed -i ${txt} "s#\#wds.linkis.keytab.enable.*#wds.linkis.keytab.enable=true#g" $common_conf
+ sed -i ${txt} "s#\#wds.linkis.keytab.file.*#wds.linkis.keytab.file=$HADOOP_KEYTAB_PATH#g" $common_conf
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org