<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212965#M78900</link>
    <description>&lt;P&gt;This is a fresh install of the cluster. Zookeeper server service fails to start. &lt;/P&gt;&lt;P&gt;Log when I start it via ambari :&lt;/P&gt;&lt;PRE&gt;stderr: 
None
 stdout:
2018-05-29 20:58:06,783 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2018-05-29 20:58:06,783 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2018-05-29 20:58:06,783 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:07,563 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:07,563 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:08,344 - checked_call returned (0, '')
2018-05-29 20:58:08,345 - Ensuring that hadoop has the correct symlink structure
2018-05-29 20:58:08,345 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-29 20:58:08,505 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2018-05-29 20:58:08,505 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2018-05-29 20:58:08,506 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:09,295 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:09,295 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:10,076 - checked_call returned (0, '')
2018-05-29 20:58:10,076 - Ensuring that hadoop has the correct symlink structure
2018-05-29 20:58:10,077 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-29 20:58:10,078 - Skipping creation of User and Group as host is sys prepped or ignore_groupsusers_create flag is on
2018-05-29 20:58:10,078 - FS Type: 
2018-05-29 20:58:10,078 - Directory['/etc/hadoop'] {'mode': 0755}
2018-05-29 20:58:10,098 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:10,132 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-05-29 20:58:10,185 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce &amp;amp;&amp;amp; getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2018-05-29 20:58:10,946 - Skipping Execute[('setenforce', '0')] due to not_if
2018-05-29 20:58:10,947 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2018-05-29 20:58:10,952 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2018-05-29 20:58:10,952 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2018-05-29 20:58:10,988 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2018-05-29 20:58:11,017 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2018-05-29 20:58:11,043 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2018-05-29 20:58:11,081 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:11,110 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2018-05-29 20:58:11,112 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:11,143 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2018-05-29 20:58:11,933 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2018-05-29 20:58:13,676 - Checking if need to create versioned conf dir /etc/zookeeper/2.5.3.0-37/0
2018-05-29 20:58:13,677 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:14,473 - call returned (1, '/etc/zookeeper/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:14,473 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:15,262 - checked_call returned (0, '')
2018-05-29 20:58:15,263 - Ensuring that zookeeper has the correct symlink structure
2018-05-29 20:58:15,264 - Execute[('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37')] {'sudo': True}
2018-05-29 20:58:16,057 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module status_params
2018-05-29 20:58:16,059 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params_linux
2018-05-29 20:58:16,060 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params
2018-05-29 20:58:16,060 - Directory['/usr/hdp/current/zookeeper-server/conf'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop'}
2018-05-29 20:58:16,071 - File['/usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh'] {'owner': 'zookeeper', 'content': InlineTemplate(...), 'group': 'hadoop'}
2018-05-29 20:58:16,072 - Writing File['/usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh'] because contents don't match
2018-05-29 20:58:16,077 - File['/usr/hdp/current/zookeeper-server/conf/zoo.cfg'] {'owner': 'zookeeper', 'content': Template('zoo.cfg.j2'), 'group': 'hadoop', 'mode': None}
2018-05-29 20:58:16,079 - File['/usr/hdp/current/zookeeper-server/conf/configuration.xsl'] {'owner': 'zookeeper', 'content': Template('configuration.xsl.j2'), 'group': 'hadoop', 'mode': None}
2018-05-29 20:58:16,080 - Directory['/var/run/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-05-29 20:58:16,080 - Directory['/var/log/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-05-29 20:58:16,081 - Directory['/scratch/hadoop/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2018-05-29 20:58:16,082 - File['/scratch/hadoop/zookeeper/myid'] {'content': '1', 'mode': 0644}
2018-05-29 20:58:16,082 - File['/usr/hdp/current/zookeeper-server/conf/log4j.properties'] {'content': ..., 'owner': 'zookeeper', 'group': 'hadoop', 'mode': 0644}
2018-05-29 20:58:16,083 - File['/usr/hdp/current/zookeeper-server/conf/zoo_sample.cfg'] {'owner': 'zookeeper', 'group': 'hadoop'}
2018-05-29 20:58:16,085 - Checking if need to create versioned conf dir /etc/zookeeper/2.5.3.0-37/0
2018-05-29 20:58:16,085 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:16,893 - call returned (1, '/etc/zookeeper/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:16,893 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:17,699 - checked_call returned (0, '')
2018-05-29 20:58:17,700 - Ensuring that zookeeper has the correct symlink structure
2018-05-29 20:58:17,701 - Execute[('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37')] {'sudo': True}
2018-05-29 20:58:18,496 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module status_params
2018-05-29 20:58:18,497 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params_linux
2018-05-29 20:58:18,499 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params
2018-05-29 20:58:18,499 - 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 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; ps -p `cat /var/run/zookeeper/zookeeper_server.pid` &amp;gt;/dev/null 2&amp;gt;&amp;amp;1', 'user': 'zookeeper'}


Command completed successfully!

&lt;/PRE&gt;&lt;P&gt;But within a second the service stops :&lt;/P&gt;&lt;P&gt;The error I see is :&lt;/P&gt;&lt;P&gt;When I try to start the zookeeper server manually, I see the below output . I do not have permissions to create /home/zookeeper. Can an alternate path be specified for zookeeper home directory? iptables is disabled, port 2181 is not in use, NTP synch is in place. &lt;/P&gt;&lt;P&gt; I tried following the advise from &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/92993/zookeeper-server-keeps-stopping-after-i-restart-wi.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/92993/zookeeper-server-keeps-stopping-after-i-restart-wi.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But the logs didn't get generated. Am not able to point my finger at the root cause.  Please help! &lt;/P&gt;&lt;PRE&gt;[root@slc15zcc hdp]# su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start"
su: warning: cannot change directory to /home/zookeeper: No such file or directory
thirdeye: No home directory for zookeeper. Skip configuring .pulse-cookie.
&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77435-zookeeper-error.jpg" style="width: 827px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16530iDF1193A6DEFB1F86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77435-zookeeper-error.jpg" alt="77435-zookeeper-error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77434-zookeeper-stopped.jpg" style="width: 622px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16531i0F5CD6106D1933E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77434-zookeeper-stopped.jpg" alt="77434-zookeeper-stopped.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 03:43:17 GMT</pubDate>
    <dc:creator>jyotsna_g</dc:creator>
    <dc:date>2019-08-18T03:43:17Z</dc:date>
    <item>
      <title>Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212965#M78900</link>
      <description>&lt;P&gt;This is a fresh install of the cluster. Zookeeper server service fails to start. &lt;/P&gt;&lt;P&gt;Log when I start it via ambari :&lt;/P&gt;&lt;PRE&gt;stderr: 
None
 stdout:
2018-05-29 20:58:06,783 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2018-05-29 20:58:06,783 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2018-05-29 20:58:06,783 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:07,563 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:07,563 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:08,344 - checked_call returned (0, '')
2018-05-29 20:58:08,345 - Ensuring that hadoop has the correct symlink structure
2018-05-29 20:58:08,345 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-29 20:58:08,505 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2018-05-29 20:58:08,505 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2018-05-29 20:58:08,506 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:09,295 - call returned (1, '/etc/hadoop/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:09,295 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:10,076 - checked_call returned (0, '')
2018-05-29 20:58:10,076 - Ensuring that hadoop has the correct symlink structure
2018-05-29 20:58:10,077 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
2018-05-29 20:58:10,078 - Skipping creation of User and Group as host is sys prepped or ignore_groupsusers_create flag is on
2018-05-29 20:58:10,078 - FS Type: 
2018-05-29 20:58:10,078 - Directory['/etc/hadoop'] {'mode': 0755}
2018-05-29 20:58:10,098 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:10,132 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}
2018-05-29 20:58:10,185 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce &amp;amp;&amp;amp; getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2018-05-29 20:58:10,946 - Skipping Execute[('setenforce', '0')] due to not_if
2018-05-29 20:58:10,947 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}
2018-05-29 20:58:10,952 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}
2018-05-29 20:58:10,952 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}
2018-05-29 20:58:10,988 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2018-05-29 20:58:11,017 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}
2018-05-29 20:58:11,043 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2018-05-29 20:58:11,081 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:11,110 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2018-05-29 20:58:11,112 - File['/usr/hdp/current/hadoop-client/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}
2018-05-29 20:58:11,143 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'}
2018-05-29 20:58:11,933 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}
2018-05-29 20:58:13,676 - Checking if need to create versioned conf dir /etc/zookeeper/2.5.3.0-37/0
2018-05-29 20:58:13,677 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:14,473 - call returned (1, '/etc/zookeeper/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:14,473 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:15,262 - checked_call returned (0, '')
2018-05-29 20:58:15,263 - Ensuring that zookeeper has the correct symlink structure
2018-05-29 20:58:15,264 - Execute[('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37')] {'sudo': True}
2018-05-29 20:58:16,057 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module status_params
2018-05-29 20:58:16,059 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params_linux
2018-05-29 20:58:16,060 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params
2018-05-29 20:58:16,060 - Directory['/usr/hdp/current/zookeeper-server/conf'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop'}
2018-05-29 20:58:16,071 - File['/usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh'] {'owner': 'zookeeper', 'content': InlineTemplate(...), 'group': 'hadoop'}
2018-05-29 20:58:16,072 - Writing File['/usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh'] because contents don't match
2018-05-29 20:58:16,077 - File['/usr/hdp/current/zookeeper-server/conf/zoo.cfg'] {'owner': 'zookeeper', 'content': Template('zoo.cfg.j2'), 'group': 'hadoop', 'mode': None}
2018-05-29 20:58:16,079 - File['/usr/hdp/current/zookeeper-server/conf/configuration.xsl'] {'owner': 'zookeeper', 'content': Template('configuration.xsl.j2'), 'group': 'hadoop', 'mode': None}
2018-05-29 20:58:16,080 - Directory['/var/run/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-05-29 20:58:16,080 - Directory['/var/log/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755}
2018-05-29 20:58:16,081 - Directory['/scratch/hadoop/zookeeper'] {'owner': 'zookeeper', 'create_parents': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2018-05-29 20:58:16,082 - File['/scratch/hadoop/zookeeper/myid'] {'content': '1', 'mode': 0644}
2018-05-29 20:58:16,082 - File['/usr/hdp/current/zookeeper-server/conf/log4j.properties'] {'content': ..., 'owner': 'zookeeper', 'group': 'hadoop', 'mode': 0644}
2018-05-29 20:58:16,083 - File['/usr/hdp/current/zookeeper-server/conf/zoo_sample.cfg'] {'owner': 'zookeeper', 'group': 'hadoop'}
2018-05-29 20:58:16,085 - Checking if need to create versioned conf dir /etc/zookeeper/2.5.3.0-37/0
2018-05-29 20:58:16,085 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2018-05-29 20:58:16,893 - call returned (1, '/etc/zookeeper/2.5.3.0-37/0 exist already', '')
2018-05-29 20:58:16,893 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'zookeeper', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
2018-05-29 20:58:17,699 - checked_call returned (0, '')
2018-05-29 20:58:17,700 - Ensuring that zookeeper has the correct symlink structure
2018-05-29 20:58:17,701 - Execute[('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37')] {'sudo': True}
2018-05-29 20:58:18,496 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module status_params
2018-05-29 20:58:18,497 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params_linux
2018-05-29 20:58:18,499 - After ('ambari-python-wrap', '/usr/bin/hdp-select', 'set', 'zookeeper-server', '2.5.3.0-37'), reloaded module params
2018-05-29 20:58:18,499 - 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 &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; ps -p `cat /var/run/zookeeper/zookeeper_server.pid` &amp;gt;/dev/null 2&amp;gt;&amp;amp;1', 'user': 'zookeeper'}


Command completed successfully!

&lt;/PRE&gt;&lt;P&gt;But within a second the service stops :&lt;/P&gt;&lt;P&gt;The error I see is :&lt;/P&gt;&lt;P&gt;When I try to start the zookeeper server manually, I see the below output . I do not have permissions to create /home/zookeeper. Can an alternate path be specified for zookeeper home directory? iptables is disabled, port 2181 is not in use, NTP synch is in place. &lt;/P&gt;&lt;P&gt; I tried following the advise from &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/92993/zookeeper-server-keeps-stopping-after-i-restart-wi.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.hortonworks.com/questions/92993/zookeeper-server-keeps-stopping-after-i-restart-wi.html&lt;/A&gt; &lt;/P&gt;&lt;P&gt;But the logs didn't get generated. Am not able to point my finger at the root cause.  Please help! &lt;/P&gt;&lt;PRE&gt;[root@slc15zcc hdp]# su - zookeeper -c "export ZOOCFGDIR=/usr/hdp/current/zookeeper-server/conf ; export ZOOCFG=zoo.cfg; source /usr/hdp/current/zookeeper-server/conf/zookeeper-env.sh ; /usr/hdp/current/zookeeper-server/bin/zkServer.sh start"
su: warning: cannot change directory to /home/zookeeper: No such file or directory
thirdeye: No home directory for zookeeper. Skip configuring .pulse-cookie.
&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77435-zookeeper-error.jpg" style="width: 827px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16530iDF1193A6DEFB1F86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77435-zookeeper-error.jpg" alt="77435-zookeeper-error.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77434-zookeeper-stopped.jpg" style="width: 622px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16531i0F5CD6106D1933E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77434-zookeeper-stopped.jpg" alt="77434-zookeeper-stopped.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:43:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212965#M78900</guid>
      <dc:creator>jyotsna_g</dc:creator>
      <dc:date>2019-08-18T03:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212966#M78901</link>
      <description>&lt;P&gt;&lt;A href="@Jyotsna Ganji"&gt;&lt;EM&gt;@Jyotsna Ganji&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The error "No home directory for zookeeper" tells you all&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you do the following&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# mkdir  -p /home/zookeeper&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Change  ownership &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# chown zookeeper  /home/zookeeper&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then retry &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 18:42:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212966#M78901</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-30T18:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212967#M78902</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/77436-zookeeper-home.jpg"&gt;zookeeper-home.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried that earlier &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; but I get a permission denied error. That's why I was looking to specify an alternate home directory for zookeeper. &lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 18:44:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212967#M78902</guid>
      <dc:creator>jyotsna_g</dc:creator>
      <dc:date>2018-05-30T18:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212968#M78903</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/195966/@Jyotsna%20Ganji"&gt;@Jyotsna Ganji&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;What OS version is that if RHEL/Centos7 can you try this &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# sudo mkdir -p /home/zookeeper&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Could you also check this &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# ll /home&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Please let me know &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 19:06:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212968#M78903</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-30T19:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212969#M78904</link>
      <description>&lt;P&gt;I tried the solution from this thread&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-create-folder-in-home-dir-as-root-user-940072/" target="_blank"&gt;https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-create-folder-in-home-dir-as-root-user-940072/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and am now able to create /home/zookeeper and zookeeper service started successfully. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; Thank you for your guidance. Appreciate it. Marking this thread as solved. &lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 19:12:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212969#M78904</guid>
      <dc:creator>jyotsna_g</dc:creator>
      <dc:date>2018-05-30T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fresh install HDp 2.5.3 - Zookeeper server process starts via Ambari but stops within seconds</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212970#M78905</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/195966/@Jyotsna%20Ganji"&gt;@Jyotsna Ganji&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Great it worked for you happy hadooping !!!!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 21:34:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Fresh-install-HDp-2-5-3-Zookeeper-server-process-starts-via/m-p/212970#M78905</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-30T21:34:03Z</dc:date>
    </item>
  </channel>
</rss>

