You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2022/01/24 13:38:25 UTC

[GitHub] [incubator-inlong] luchunliang commented on a change in pull request #2323: [INLONG-2301] add standalone deployment shell

luchunliang commented on a change in pull request #2323:
URL: https://github.com/apache/incubator-inlong/pull/2323#discussion_r790749137



##########
File path: initInlongConfig.sh
##########
@@ -0,0 +1,132 @@
+#!/bin/bash
+#初始化inlong 各组件的配置文件
+#当前项目的根路径
+
+#tubemqMaster默认端口
+tubemqMaster_port=8715
+#tubemq brokerId
+brokerId=0
+#inlong  manager 默认环境
+spring_profiles_active=dev
+#默认zk
+zkServerAddr=localhost:2181
+
+basePath=$(cd `dirname $0`; pwd)
+echo $basePath
+source $basePath/inlongConfig.properties
+
+echo  "1.替换agent配置参数"
+cd $basePath/inlong-agent/conf
+sed -i 's/agent.http.enable=.*/'''agent.http.enable=${agent_http_enable}'''/g' agent.properties
+sed -i 's/agent.local.ip=.*/'''agent.local.ip=${agent_local_ip}'''/g' agent.properties  
+sed -i 's/agent.manager.vip.http.host=.*/'''agent.manager.vip.http.host=${manager_server_hostname}'''/g' agent.properties 
+sed -i 's/agent.manager.vip.http.port=.*/'''agent.manager.vip.http.port=${manager_server_port}'''/g' agent.properties 
+
+echo "2.替换dataproxy配置参数"

Review comment:
       ditto

##########
File path: initInlongConfig.sh
##########
@@ -0,0 +1,132 @@
+#!/bin/bash
+#初始化inlong 各组件的配置文件

Review comment:
       Please change to English.

##########
File path: stopInlongCluster.sh
##########
@@ -0,0 +1,71 @@
+#!/bin/bash
+##一键stop启动脚本
+echo "1.stop agent ... "
+agent_thread=$($JAVA_HOME/bin/jps |grep AgentMain)
+if [ ! -n "$agent_thread" ]; then 
+   echo "系统没启动agent" 
+else
+   agent_pid=$(echo $agent_thread | tr -cd "[0-9]")
+   kill -9 $agent_pid
+ echo "agent stopped "
+fi
+
+echo "2.stop inlong_manager ... "
+inlong_manager_thread=$($JAVA_HOME/bin/jps |grep InLongWebApplication)
+if [ ! -n "$inlong_manager_thread" ]; then 
+   echo "系统没启动inlong manager" 
+else
+   inlong_manager_pid=$(echo $inlong_manager_thread | tr -cd "[0-9]")
+   kill -9 $inlong_manager_pid
+   echo "inlong_manager stopped "
+fi
+
+echo "3.stop dataproxy ... "
+dataproxy_thread=$($JAVA_HOME/bin/jps |grep Application)
+if [ ! -n "$dataproxy_thread" ]; then 
+   echo "系统没启动dataproxy" 
+else
+   dataproxy_pid=$(echo $dataproxy_thread | tr -cd "[0-9]")
+   kill -9 $dataproxy_pid
+ echo "dataproxy stopped "
+fi
+
+echo "4.stop tubemq_manager ... "
+tubemq_manager_thread=$($JAVA_HOME/bin/jps |grep TubeMQManager)
+if [ ! -n "$tubemq_manager_thread" ]; then 
+   echo "系统没启动tubemq_manager" 
+else
+   tubemq_manager_pid=$(echo $tubemq_manager_thread | tr -cd "[0-9]")
+   kill -9 $tubemq_manager_pid
+ echo "tubemq_manager stopped "
+fi
+
+echo "5.stop tubemq_broker ... "
+tubemq_broker_thread=$($JAVA_HOME/bin/jps |grep BrokerStartup)
+if [ ! -n "$tubemq_broker_thread" ]; then 
+   echo "系统没启动tubemq_broker" 
+else
+   tubemq_broker_pid=$(echo $tubemq_broker_thread | tr -cd "[0-9]")
+   kill -9 $tubemq_broker_pid
+ echo "tubemq_broker stopped "
+fi
+
+echo "6.stop tubemq_master... "
+tubemq_master_thread=$($JAVA_HOME/bin/jps |grep MasterStartup)
+if [ ! -n "$tubemq_master_thread" ]; then 
+   echo "系统没启动tubemq_master" 
+else
+   tubemq_master_pid=$(echo $tubemq_master_thread | tr -cd "[0-9]")
+   kill -9 $tubemq_master_pid
+ echo "tubemq_master stopped "
+fi
+
+echo "7.stop CliFrontend... "
+cli_frontend_thread=$($JAVA_HOME/bin/jps |grep CliFrontend)
+if [ ! -n "$cli_frontend_thread" ]; then 
+   echo "系统没启动cli_frontend" 

Review comment:
       ditto




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org