03-31-2017 09:56 AM
New to pretty much everything here, so please excuse my rookie-level explanation of my issue.
I've tried twice now to prepare a Cloudera instance using different sets of hardware for each attempt. Each time I attempt to complete the installation, I'm met with this zookeeper error (when it tries to run $> zookeeper/zk.sh ["init","--myid=1","ignoreExists"]:
Error found before invoking supervisord: 'getpwnam(): name not found: zookeeper'
As a result, nothing else starts.
The screen I'm working from is the "Cluster Setup - First Run Command" using Cloudera Manager. I've configured the "cloudera-scm" user as I don't run anything as root using this guide:
I'm following Install Path A using the guide here:
Near as I can tell, this is because the zookeeper user does not exist. I don't recall seeing a place to create this user during the install. I have saved all screenshots from my installation so I can reference those if you need them.
Any help is appreciated! Thanks!
05-12-2017 06:43 AM - edited 05-12-2017 06:45 AM
I'm having the very same issue.
Tried creating the account locally, but then the error message changes to Exception: Non-root agent cannot execute process as user 'zookeeper'.
The deployment is a test environment, using a Linux Ubuntu 14.04 LTS VM, and CDH 5.11.
Any help will be greatly appreciated.
05-15-2017 03:58 AM
if the user/group (zookeeper/zookeeper) exist, the lines of code throwing the exception are:
user = self.raw["user"]
group = self.raw["group"]
uid, _ = user_group_to_ids(user, group)
if os.getuid() != 0 and os.getuid() != uid:
raise Exception("Non-root agent cannot execute process as user '%s'" % user)
The sudoers file is updated for both user and group:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%zookeeper ALL=(ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
radu ALL=(ALL) NOPASSWD: ALL
cloudera-scm ALL=(ALL) NOPASSWD: ALL
zookeeper ALL=(ALL) NOPASSWD: ALL
What could be the casue?
05-25-2017 12:17 AM
05-26-2017 04:28 AM - edited 05-26-2017 04:34 AM
Since I dont know the exact steps that you followed I am going to throw my guess here see if that will solve the issue .
Did you check your firewall status .?
What user are you runining while firing the cloudera manager install . ?
sometimes the intial run by cloudera manager fails due to poor hardware / internet connectivity
05-26-2017 04:44 AM