Installation error- issue with hostip and zk_hosts in config file

Not applicable

I am trying to install the 2 node topology.

Command:-

/opt/apigee/apigee-setup/bin/setup.sh -p sa -f /tmp/config2Node.txt

But getting the below error:-

Checking required variable ZK_HOSTS...Invalid Hostname

Checking required variable HOSTIP...Unknown

Checking required variable RUN_USER...OK

Checking required variable RUN_GROUP...OK

Error: setup.sh: /opt/apigee/apigee-service/bin/apigee-service exited with unexpected status 1

config2Node.txt is present and has the required permission level.

hostname -i yields the IP address.

config2Node.txt contains:-

IP1=<IP address>

HOSTIP=$(hostname -i)

ZK_HOSTS="$IP1"

ZK_CLIENT_HOSTS="$IP1"

Solved Solved
0 1 382
1 ACCEPTED SOLUTION

Not applicable

Found the issue. It was because i created the file in windows machine and copied it to linux server.

Solution:-

install dos2unix in your server

run: dos2unix <configFile>

View solution in original post

1 REPLY 1

Not applicable

Found the issue. It was because i created the file in windows machine and copied it to linux server.

Solution:-

install dos2unix in your server

run: dos2unix <configFile>