Hi Anchal,
> Thanks for your reply.I have attached the trace log.Please have a look.
Thank you. Looking at your trace:
> + '[' 0 -eq 0 ']'
> + case "$OSTYPE" in
> + /bin/echo -n 5832806
> + '[' 0 -eq 0 ']'
> + sleep 1
> ++ cat /tmp/anchalivt/zookeeper/zookeeper_server.pid
> + pid='-n 5832806'
> + ps -p '-n 5832806'
> + echo FAILED TO START
> FAILED TO START
> + exit 1
The issue is that on AIX, 'echo -n 5832806' prints '-n 5832806', instead
of handling '-n' as a flag as it does on GNU/Linux. The result is later
passed to 'ps', which cannot parse '-n 5832806' as a valid PID.
Could you try again after replacing the following line in
'bin/zkServer.sh'?
echo -n $! > "$ZOOPIDFILE"
with:
printf '%s' "$!" > "$ZOOPIDFILE"
Note that the JVMs created by your previous attempts may still be
around; you may want to kill these processes first.
HTH, -D
P.-S. — In any case, would you mind opening a ticket?
https://issues.apache.org/jira/projects/ZOOKEEPER/issues/
> ________________________________
> From: Damien Diederen <[email protected]>
> Sent: 07 January 2021 16:05:59
> To: Anchal Sharma2 - [email protected]
> Cc: [email protected]
> Subject: [EXTERNAL] Re: Problem starting zookeeper 3.5.8 on AIX machine
>
>
> Hi Anchal,
>
> "Anchal Sharma2 - [email protected]" <[email protected]> writes:
>> We are using zookeeper version 3.5.8 on linux environments .And
>> recently wanted to install same on an AIX machine.
>
> Okay. As far as I can tell, ZooKeeper releases are not being tested on
> AIX nowadays. Your assistance in this matter would be very welcome!
>
>> But on starting the zookeper ,we get this message on terminal and no
>> error is shown in log (despite enabling debug).
>
> It may have failed before starting the JVM. Or while trying to
> determine the PID.
>
>> JVMFLAGS="-Dzookeeper.root.logger=DEBUG,CONSOLE,ROLLINGFILE
>> -Dzookeeper.console.threshold=DEBUG" bin/zkServer.sh start
>> ZooKeeper JMX enabled by default
>> Using config:
>> /opt/epricer-solr-v8/apache-zookeeper-3.5.8-bin/bin/../conf/zoo.cfg
>> Starting zookeeper ... FAILED TO START
>>
>>
>> Could someone please suggest ?Any help would be much appreciated.
>
> Could you try again with Bash tracing enabled:
>
> bash -x bin/zkServer.sh start 2>&1 | tee trace.log
>
> and attach the resulting 'trace.log'?
>
> Best, -D
--
http://crosstwine.com
tel: +49 89 2302 9288
cell: +49 174 3489 428
“Strong Opinions, Weakly Held”
— Paul Saffo