Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

returned 12. useradd: cannot create directory

$
0
0

I have a machine that I have sudo privledges on and I’d like to create run ambari I’ve gotten ambari installed by building a local repository

I now want to install hdp however I run into the following issue

2015-02-09 16:17:54,546 – Group[‘hadoop’] {‘ignore_failures': False}
2015-02-09 16:17:54,548 – Modifying group hadoop
2015-02-09 16:17:54,656 – Group[‘users’] {‘ignore_failures': False}
2015-02-09 16:17:54,656 – Modifying group users
2015-02-09 16:17:54,770 – User[‘mapred’] {‘gid': ‘hadoop’, ‘ignore_failures': False, ‘groups': [u’hadoop’]}
2015-02-09 16:17:54,770 – Modifying user mapred
2015-02-09 16:17:54,873 – User[‘ambari-qa’] {‘gid': ‘hadoop’, ‘ignore_failures': False, ‘groups': [u’users’]}
2015-02-09 16:17:54,874 – Modifying user ambari-qa
2015-02-09 16:17:54,977 – User[‘zookeeper’] {‘gid': ‘hadoop’, ‘ignore_failures': False, ‘groups': [u’hadoop’]}
2015-02-09 16:17:54,978 – Modifying user zookeeper
2015-02-09 16:17:55,081 – User[‘hdfs’] {‘gid': ‘hadoop’, ‘ignore_failures': False, ‘groups': [u’hadoop’]}
2015-02-09 16:17:55,081 – Modifying user hdfs
2015-02-09 16:17:55,185 – User[‘yarn’] {‘gid': ‘hadoop’, ‘ignore_failures': False, ‘groups': [u’hadoop’]}
2015-02-09 16:17:55,190 – Adding user User[‘yarn’]
2015-02-09 16:17:55,379 – Error while executing command ‘any':
Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py”, line 123, in execute
method(env)
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py”, line 30, in hook
setup_users()
File “/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/shared_initialization.py”, line 75, in setup_users
ignore_failures = params.ignore_groupsusers_create
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 149, in run
self.run_action(resource, action)
File “/usr/lib/python2.6/site-packages/resource_management/core/environment.py”, line 115, in run_action
provider_action()
File “/usr/lib/python2.6/site-packages/resource_management/core/providers/accounts.py”, line 63, in action_create
shell.checked_call(command)
File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 36, in checked_call
return _call(command, logoutput, True, cwd, env, preexec_fn, user, wait_for_finish, timeout, path)
File “/usr/lib/python2.6/site-packages/resource_management/core/shell.py”, line 102, in _call
raise Fail(err_msg)
Fail: Execution of ‘useradd -m -G hadoop -g hadoop yarn’ returned 12. useradd: cannot create directory /home/yarn
Error: Error: Unable to run the custom hook script [‘/usr/bin/python2.6′, ‘/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py’, ‘ANY’, ‘/var/lib/ambari-agent/data/command-121.json’, ‘/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY’, ‘/var/lib/ambari-agent/data/structured-out-121.json’, ‘INFO’, ‘/var/lib/ambari-agent/data/tmp’]


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>