Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
3.7.0, 3.6.2, 3.7.1
-
None
-
None
Description
Information logs in zkServer.sh script being redirected to stderr (2) stream
/opt/apache-zookeeper-3.7.0-bin/bin bash-4.4$ cat zkServer.sh | grep "&2" echo "ZooKeeper JMX enabled by default" >&2 echo "ZooKeeper remote JMX Port set to $JMXPORT" >&2 echo "ZooKeeper remote JMX authenticate set to $JMXAUTH" >&2 echo "ZooKeeper remote JMX ssl set to $JMXSSL" >&2 echo "ZooKeeper remote JMX log4j set to $JMXLOG4J" >&2 echo "ZooKeeper remote JMX Hostname set to $JMXHOSTNAME" >&2 echo "JMX disabled by user request" >&2 echo "Using config: $ZOOCFG" >&2 echo "Usage: $0 [--config <conf-dir>] {start|start-foreground|stop|version|restart|status|print-cmd}" >&2 bash-4.4$
and in container logs we could see these logs are coming as stderr
2023-01-10T08:16:34.393866602+01:00 stderr F ZooKeeper JMX enabled by default 2023-01-10T08:16:34.395496162+01:00 stderr F Using config: /var/lib/zookeeper/config-dynamic/zoo.cfg
Expectation:
Information logs should coming in stdout.