You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the bin/init-config.sh script in the MacOS environment, the following error will occur:
$ bin/init-config.sh
Init agent configuration parameters
sed: 1: "agent.properties": command a expects \ followed by text
sed: 1: "agent.properties": command a expects \ followed by text
sed: 1: "agent.properties": command a expects \ followed by text
sed: 1: "agent.properties": command a expects \ followed by text
sed: 1: "agent.properties": command a expects \ followed by text
Init audit configuration parameters
sed: 1: "application.properties": command a expects \ followed by text
sed: 1: "application.properties": command a expects \ followed by text
sed: 1: "application.properties": command a expects \ followed by text
sed: 1: "audit-proxy-pulsar.conf": command a expects \ followed by text
sed: 1: "application.properties": command a expects \ followed by text
Init dataproxy configuration parameters
sed: 1: "common.properties": command c expects \ followed by text
sed: 1: "common.properties": command c expects \ followed by text
sed: 1: "dataproxy-pulsar.conf": extra characters at the end of d command
Init inlong manager configuration
sed: 1: "application.properties": command a expects \ followed by text
sed: 1: "application.properties": command a expects \ followed by text
sed: 1: "application-dev.properties": command a expects \ followed by text
sed: 1: "application-dev.properties": command a expects \ followed by text
sed: 1: "application-dev.properties": command a expects \ followed by text
Init inlong manager flink plugin configuration
sed: 1: "flink-sort-plugin.prope ...": invalid command code f
sed: 1: "flink-sort-plugin.prope ...": invalid command code f
Because the syntax of the sed command in the MacOS environment is different from that in the GNU environment, it is not compatible.
sed -i -e ... # does not work on OS X as it creates -e backups
sed -i'' -e ... # does not work on OS X 10.6 but works on 10.9+
sed -i '' -e ... # not working on GNU
Use case
Therefore, when the init-config.sh script executes the sed command, it is necessary to first determine the current OS type and perform respective adaptations. The sed command is used for substitution in MacOS,
featzhang
changed the title
[Feature] The bin/init-config.sh compatible with MacOS
[Feature][Script] The bin/init-config.sh compatible with MacOS
Nov 30, 2022
healchow
changed the title
[Feature][Script] The bin/init-config.sh compatible with MacOS
[Bug][Script] The bin/init-config.sh compatible with MacOS
Nov 30, 2022
Description
When executing the bin/init-config.sh script in the MacOS environment, the following error will occur:
Because the syntax of the sed command in the MacOS environment is different from that in the GNU environment, it is not compatible.
Use case
Therefore, when the init-config.sh script executes the sed command, it is necessary to first determine the current OS type and perform respective adaptations. The
sed
command is used for substitution in MacOS,while GNU syntax can be used in Linux.
sed -i '' ...
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: