Skip to content

Commit

Permalink
[INLONG-10125][Script] Fix the agent can not start successfully (#10175)
Browse files Browse the repository at this point in the history
  • Loading branch information
dockerzhang authored May 10, 2024
1 parent bc7a2d9 commit 4da8c8e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions bin/init-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ init_inlong_agent() {
echo "Init agent configuration parameters"
cd $INLONG_HOME/inlong-agent/conf
$SED_COMMAND 's/agent.local.ip=.*/'''agent.local.ip=${local_ip}'''/g' agent.properties
$SED_COMMAND 's/agent.http.port=.*/'''agent.http.port=${agent_port}'''/g' agent.properties
$SED_COMMAND 's/agent.manager.addr=.*/'''agent.manager.addr=http://${manager_server_hostname}:${manager_server_port}'''/g' agent.properties
$SED_COMMAND 's/agent.manager.addr=.*/'''agent.manager.addr=${manager_server_hostname}:${manager_server_port}'''/g' agent.properties
$SED_COMMAND "s/audit.enable=.*$/audit.enable=true/g" agent.properties
$SED_COMMAND 's/audit.proxys=.*/'''audit.proxys=${audit_proxy_ip}:${audit_proxy_port}'''/g' agent.properties
}
Expand Down
2 changes: 0 additions & 2 deletions bin/inlong-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ start_inlong_agent() {
echo "start agent"
cd $INLONG_HOME/inlong-agent
bash +x ./bin/agent.sh start
# wait to start
wait_port_to_listen agent ${agent_port}
}

# start inlong
Expand Down
3 changes: 0 additions & 3 deletions conf/inlong.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ flink_rest_port=8081
############## DataProxy Configuration ##############
dataproxy_port=46801

############## Agent Configuration ##############
agent_port=8008

############## Audit Configuration ##############
# audit service IP
audit_service_ip=127.0.0.1
Expand Down

0 comments on commit 4da8c8e

Please sign in to comment.