Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

zookeeper-server failed on 2.6.3.0-235

2018-04-12 09:48:46,200 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.3.0-235 -> 2.6.3.0-235

2018-04-12 09:48:46,343 - Stack Feature Version Info: Cluster Stack=2.6, Command Stack=None, Command Version=2.6.3.0-235 -> 2.6.3.0-235
2018-04-12 09:48:46,346 - Group['hadoop'] {}
2018-04-12 09:48:46,347 - User['logsearch'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,348 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,348 - User['infra-solr'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,349 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,349 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,350 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['users'], 'uid': None}
2018-04-12 09:48:46,351 - User['kafka'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': [u'hadoop'], 'uid': None}
2018-04-12 09:48:46,351 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2018-04-12 09:48:46,352 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}
2018-04-12 09:48:46,359 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if
2018-04-12 09:48:46,372 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2018-04-12 09:48:46,380 - Skipping Execute[('setenforce', '0')] due to not_if
2018-04-12 09:48:46,549 - Could not determine stack version for component zookeeper-server by calling '/usr/bin/hdp-select status zookeeper-server > /tmp/tmprh3sHz'. Return Code: 1, Output: .
2018-04-12 09:48:46,550 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-04-12 09:48:46,569 - call returned (0, '2.6.1.0-129\n2.6.3.0-235\n2.6.4.0-91')
2018-04-12 09:48:46,728 - Directory['/usr/hdp/current/zookeeper-server/conf'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop'}
2018-04-12 09:48:46,733 - File['/usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh'] {'owner': 'zookeeper', 'content': InlineTemplate(...), 'group': 'hadoop'}
2018-04-12 09:48:46,736 - File['/usr/hdp/current/zookeeper-server/conf/zoo.cfg'] {'owner': 'zookeeper', 'content': Template('zoo.cfg.j2'), 'group': 'hadoop', 'mode': None}
2018-04-12 09:48:46,737 - File['/usr/hdp/current/zookeeper-server/conf/configuration.xsl'] {'owner': 'zookeeper', 'content': Template('configuration.xsl.j2'), 'group': 'hadoop', 'mode': None}
2018-04-12 09:48:46,738 - Directory['/var/run/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-04-12 09:48:46,738 - Directory['/var/log/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-04-12 09:48:46,738 - Directory['/hadoop/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2018-04-12 09:48:46,739 - File['/hadoop/zookeeper/myid'] {'content': '1', 'mode': 0644}
2018-04-12 09:48:46,740 - File['/usr/hdp/current/zookeeper-server/conf/log4j.properties'] {'content': InlineTemplate(...), 'owner': 'zookeeper', 'group': 'hadoop', 'mode': 0644}
2018-04-12 09:48:46,741 - File['/usr/hdp/current/zookeeper-server/conf/zoo_sample.cfg'] {'owner': 'zookeeper', 'group': 'hadoop'}
2018-04-12 09:48:46,741 - Execute['source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; env ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ZOOCFG=zoo.cfg /usr/hdp/current/zookeeper-server/bin/zkServer.sh start'] {'not_if': 'ls /var/run/zookeeper/zookeeper_server.pid >/dev/null 2>&1 && ps -p `cat /var/run/zookeeper/zookeeper_server.pid` >/dev/null 2>&1', 'user': 'zookeeper'}
2018-04-12 09:48:46,816 - Execute['find /var/log/zookeeper -maxdepth 1 -type f -name '*' -exec echo '==> {} <==' \; -exec tail -n 40 {} \;'] {'logoutput': True, 'ignore_failures': True, 'user': 'zookeeper'}
2018-04-12 09:48:46,966 - Could not determine stack version for component zookeeper-server by calling '/usr/bin/hdp-select status zookeeper-server > /tmp/tmpk7suN2'. Return Code: 1, Output: .
2018-04-12 09:48:46,966 - call[('ambari-python-wrap', u'/usr/bin/hdp-select', 'versions')] {}
2018-04-12 09:48:46,986 - call returned (0, '2.6.1.0-129\n2.6.3.0-235\n2.6.4.0-91')
2018-04-12 09:48:46,986 - The 'zookeeper-server' component did not advertise a version. This may indicate a problem with the component packaging.
1 REPLY 1

Mentor

@sangameshwar swami

Have you recently upgraded your cluster? The Zookeeper version seems to be the problem! Make sure the version is 2.6.3.0-235.

See my example below my zoookeeper is version of my cluster 2.6.2.0-205

$ ll /usr/hdp/current
...
lrwxrwxrwx 1 root root 30 Apr 12 01:28 zookeeper-server -> /usr/hdp/2.6.2.0-205/zookeeper

Your version should match the current cluster version. If the symlink is pointing to any other version then correct that and retry

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.