You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Myroslav Papirkovskyy (JIRA)" <ji...@apache.org> on 2015/03/01 13:25:04 UTC

[jira] [Created] (AMBARI-9857) Could not start NameNode

Myroslav Papirkovskyy created AMBARI-9857:
---------------------------------------------

             Summary: Could not start NameNode
                 Key: AMBARI-9857
                 URL: https://issues.apache.org/jira/browse/AMBARI-9857
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: 2.0.0
            Reporter: Myroslav Papirkovskyy
            Assignee: Myroslav Papirkovskyy
            Priority: Blocker
             Fix For: 2.0.0


STR:
- Deploy cluster
- try to start Namenode

{code}
2015-02-28 11:51:22,786 - u"Directory['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts/']" {'recursive': True}
2015-02-28 11:51:22,787 - u"File['/var/lib/ambari-agent/data/tmp/AMBARI-artifacts//UnlimitedJCEPolicyJDK7.zip']" {'content': DownloadSource('http://reishin-hdp20-test-final-1.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip')}
2015-02-28 11:51:22,788 - Not downloading the file from http://reishin-hdp20-test-final-1.cs1cloud.internal:8080/resources//UnlimitedJCEPolicyJDK7.zip, because /var/lib/ambari-agent/data/tmp/UnlimitedJCEPolicyJDK7.zip already exists
2015-02-28 11:51:22,854 - u"Group['hadoop']" {'ignore_failures': False}
2015-02-28 11:51:22,855 - Modifying group hadoop
2015-02-28 11:51:23,180 - u"Group['nobody']" {'ignore_failures': False}
2015-02-28 11:51:23,181 - Modifying group nobody
2015-02-28 11:51:23,385 - u"Group['users']" {'ignore_failures': False}
2015-02-28 11:51:23,385 - Modifying group users
2015-02-28 11:51:23,790 - u"Group['knox']" {'ignore_failures': False}
2015-02-28 11:51:23,790 - Modifying group knox
2015-02-28 11:51:24,195 - u"User['nobody']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'nobody']}
2015-02-28 11:51:24,195 - Modifying user nobody
2015-02-28 11:51:24,239 - u"User['hive']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,240 - Modifying user hive
2015-02-28 11:51:24,285 - u"User['oozie']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-02-28 11:51:24,286 - Modifying user oozie
2015-02-28 11:51:24,331 - u"User['ambari-qa']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-02-28 11:51:24,367 - Modifying user ambari-qa
2015-02-28 11:51:24,411 - u"User['flume']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,412 - Modifying user flume
2015-02-28 11:51:24,456 - u"User['hdfs']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,457 - Modifying user hdfs
2015-02-28 11:51:24,501 - u"User['knox']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,501 - Modifying user knox
2015-02-28 11:51:24,546 - u"User['storm']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,547 - Modifying user storm
2015-02-28 11:51:24,595 - u"User['mapred']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,596 - Modifying user mapred
2015-02-28 11:51:24,640 - u"User['hbase']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,641 - Modifying user hbase
2015-02-28 11:51:24,685 - u"User['tez']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'users']}
2015-02-28 11:51:24,685 - Modifying user tez
2015-02-28 11:51:24,730 - u"User['zookeeper']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,731 - Modifying user zookeeper
2015-02-28 11:51:24,777 - u"User['kafka']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,777 - Modifying user kafka
2015-02-28 11:51:24,828 - u"User['falcon']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,829 - Modifying user falcon
2015-02-28 11:51:24,878 - u"User['sqoop']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,878 - Modifying user sqoop
2015-02-28 11:51:24,923 - u"User['yarn']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:24,924 - Modifying user yarn
2015-02-28 11:51:25,532 - u"User['hcat']" {'gid': 'hadoop', 'ignore_failures': False, 'groups': [u'hadoop']}
2015-02-28 11:51:25,533 - Modifying user hcat
2015-02-28 11:51:25,578 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-02-28 11:51:25,667 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']" {'not_if': 'test $(id -u ambari-qa) -gt 1000'}
2015-02-28 11:51:25,712 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa']" due to not_if
2015-02-28 11:51:25,712 - u"Directory['/grid/0/hadoop/hbase']" {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'}
2015-02-28 11:51:25,888 - u"File['/var/lib/ambari-agent/data/tmp/changeUid.sh']" {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}
2015-02-28 11:51:26,020 - u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/grid/0/hadoop/hbase']" {'not_if': 'test $(id -u hbase) -gt 1000'}
2015-02-28 11:51:26,063 - Skipping u"Execute['/var/lib/ambari-agent/data/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/grid/0/hadoop/hbase']" due to not_if
2015-02-28 11:51:26,064 - u"Group['hdfs']" {'ignore_failures': False}
2015-02-28 11:51:26,065 - Modifying group hdfs
2015-02-28 11:51:26,188 - u"User['hdfs']" {'groups': [u'hadoop', 'hadoop', 'hdfs', u'hdfs']}
2015-02-28 11:51:26,189 - Modifying user hdfs
2015-02-28 11:51:26,234 - u"Directory['/etc/hadoop']" {'mode': 0755}
2015-02-28 11:51:26,235 - u"Directory['/etc/hadoop/conf.empty']" {'owner': 'hdfs', 'group': 'hadoop', 'recursive': True}
2015-02-28 11:51:26,235 - u"Link['/etc/hadoop/conf']" {'not_if': 'ls /etc/hadoop/conf', 'to': '/etc/hadoop/conf.empty'}
2015-02-28 11:51:26,282 - Skipping u"Link['/etc/hadoop/conf']" due to not_if
2015-02-28 11:51:26,302 - u"File['/etc/hadoop/conf/hadoop-env.sh']" {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}
2015-02-28 11:51:26,365 - u"Execute['('setenforce', '0')']" {'sudo': True, 'only_if': 'test -f /selinux/enforce'}
2015-02-28 11:51:26,434 - Skipping u"Execute['('setenforce', '0')']" due to only_if
2015-02-28 11:51:26,439 - u"Directory['/usr/hdp/current/hadoop-client/lib/native/Linux-i386-32']" {'recursive': True}
2015-02-28 11:51:26,441 - u"Directory['/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64']" {'recursive': True}
2015-02-28 11:51:26,442 - u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-i386-32/libsnappy.so']" {'to': '/usr/hdp/current/hadoop-client/lib/libsnappy.so'}
2015-02-28 11:51:26,444 - u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-i386-32/libsnappy.so']" replacing old symlink to /grid/0/hdp/2.2.2.0-2422/hadoop/lib/libsnappy.so
2015-02-28 11:51:26,490 - Warning: linking to nonexistent location /usr/hdp/current/hadoop-client/lib/libsnappy.so
2015-02-28 11:51:26,491 - Creating symbolic u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-i386-32/libsnappy.so']"
2015-02-28 11:51:26,537 - u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64/libsnappy.so']" {'to': '/usr/hdp/current/hadoop-client/lib64/libsnappy.so'}
2015-02-28 11:51:26,539 - u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64/libsnappy.so']" replacing old symlink to /grid/0/hdp/2.2.2.0-2422/hadoop/lib64/libsnappy.so
2015-02-28 11:51:26,584 - Warning: linking to nonexistent location /usr/hdp/current/hadoop-client/lib64/libsnappy.so
2015-02-28 11:51:26,584 - Creating symbolic u"Link['/usr/hdp/current/hadoop-client/lib/native/Linux-amd64-64/libsnappy.so']"
2015-02-28 11:51:26,630 - u"Directory['/var/log/hadoop']" {'owner': 'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'}
2015-02-28 11:51:26,765 - u"Directory['/var/run/hadoop']" {'owner': 'root', 'group': 'root', 'recursive': True, 'cd_access': 'a'}
2015-02-28 11:51:26,896 - u"Directory['/tmp/hadoop-hdfs']" {'owner': 'hdfs', 'recursive': True, 'cd_access': 'a'}
2015-02-28 11:51:26,990 - u"File['/etc/hadoop/conf/commons-logging.properties']" {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}
2015-02-28 11:51:27,040 - u"File['/etc/hadoop/conf/health_check']" {'content': Template('health_check-v2.j2'), 'owner': 'hdfs'}
2015-02-28 11:51:27,086 - u"File['/etc/hadoop/conf/log4j.properties']" {'content': '...', 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}
2015-02-28 11:51:27,144 - u"File['/etc/hadoop/conf/hadoop-metrics2.properties']" {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs'}
2015-02-28 11:51:27,190 - u"File['/etc/hadoop/conf/task-log4j.properties']" {'content': StaticFile('task-log4j.properties'), 'mode': 0755}
2015-02-28 11:51:27,488 - u"Directory['/etc/security/limits.d']" {'owner': 'root', 'group': 'root', 'recursive': True}
2015-02-28 11:51:27,495 - u"File['/etc/security/limits.d/hdfs.conf']" {'content': Template('hdfs.conf.j2'), 'owner': 'root', 'group': 'root', 'mode': 0644}
2015-02-28 11:51:27,563 - u"XmlConfig['hadoop-policy.xml']" {'owner': 'hdfs', 'group': 'hadoop', 'conf_dir': '/etc/hadoop/conf', 'configuration_attributes': {}, 'configurations': ...}
2015-02-28 11:51:27,583 - Generating config: /etc/hadoop/conf/hadoop-policy.xml
2015-02-28 11:51:27,584 - u"File['/etc/hadoop/conf/hadoop-policy.xml']" {'owner': 'hdfs', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'}
2015-02-28 11:51:27,644 - Writing u"File['/etc/hadoop/conf/hadoop-policy.xml']" because contents don't match
2015-02-28 11:51:27,736 - u"XmlConfig['hdfs-site.xml']" {'owner': 'hdfs', 'group': 'hadoop', 'conf_dir': '/etc/hadoop/conf', 'configuration_attributes': {}, 'configurations': ...}
2015-02-28 11:51:27,755 - Generating config: /etc/hadoop/conf/hdfs-site.xml
2015-02-28 11:51:27,755 - u"File['/etc/hadoop/conf/hdfs-site.xml']" {'owner': 'hdfs', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'}
2015-02-28 11:51:27,851 - Writing u"File['/etc/hadoop/conf/hdfs-site.xml']" because contents don't match
2015-02-28 11:51:27,943 - u"XmlConfig['core-site.xml']" {'group': 'hadoop', 'conf_dir': '/etc/hadoop/conf', 'mode': 0644, 'configuration_attributes': {}, 'owner': 'hdfs', 'configurations': ...}
2015-02-28 11:51:27,962 - Generating config: /etc/hadoop/conf/core-site.xml
2015-02-28 11:51:27,962 - u"File['/etc/hadoop/conf/core-site.xml']" {'owner': 'hdfs', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0644, 'encoding': 'UTF-8'}
2015-02-28 11:51:28,034 - Writing u"File['/etc/hadoop/conf/core-site.xml']" because contents don't match
2015-02-28 11:51:28,134 - u"File['/etc/hadoop/conf/slaves']" {'content': Template('slaves.j2'), 'owner': 'hdfs'}
2015-02-28 11:51:28,181 - u"Directory['/grid/0/hadoop/hdfs/namenode']" {'owner': 'hdfs', 'cd_access': 'a', 'group': 'hadoop', 'recursive': True, 'mode': 0755}
2015-02-28 11:51:28,408 - u"Directory['/grid/1/hadoop/hdfs/namenode']" {'owner': 'hdfs', 'recursive': True, 'group': 'hadoop', 'mode': 0755, 'cd_access': 'a'}
2015-02-28 11:51:28,635 - Ranger admin not installed
2015-02-28 11:51:28,637 - u"Execute['cp']" {'sudo': True}
2015-02-28 11:51:28,642 - Error while executing command 'start':
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 208, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", line 74, in start
    namenode(action="start", rolling_restart=rolling_restart, env=env)
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 36, in namenode
    format_namenode()
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 169, in format_namenode
    if not is_namenode_formatted(params):
  File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py", line 217, in is_namenode_formatted
    sudo = True
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 107, in __new__
    cls(name.pop(0), env, provider, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in __init__
    self.env.run()
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
    provider_action()
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 276, in action_run
    raise ex
Fail: String command 'cp' cannot be run as sudo. Please supply the command as a tuple of arguments
2015-02-28 11:51:28,688 - Command: /usr/bin/hdp-select status hadoop-hdfs-namenode > /tmp/tmp5CLFNh
Output: hadoop-hdfs-namenode - 2.2.2.0-2422
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)