Reply
New Contributor
Posts: 1
Registered: ‎03-31-2017

zookeeper error during installation in Install Path A

Hello All,

 

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:

https://www.cloudera.com/documentation/enterprise/latest/topics/install_singleuser_reqts.html#xd_583...

 

I'm following Install Path A using the guide here:

https://www.cloudera.com/documentation/enterprise/latest/topics/cm_ig_install_path_a.html

 

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!

New Contributor
Posts: 1
Registered: ‎04-13-2017

Re: zookeeper error during installation in Install Path A

 me too. Help please.

New Contributor
Posts: 2
Registered: ‎11-10-2015

Re: zookeeper error during installation in Install Path A

I meet the same problem. Do you solve it?
Champion
Posts: 543
Registered: ‎05-16-2016

Re: zookeeper error during installation in Install Path A

Could you please let us know the

hardware , cdh version ,os details.

 

are you using cloudera manager to setup zookeeper.

Explorer
Posts: 8
Registered: ‎05-12-2017

Re: zookeeper error during installation in Install Path A

[ Edited ]

Greetings,

 

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.

 

Tahnks,

Radu

Explorer
Posts: 8
Registered: ‎05-12-2017

Re: zookeeper error during installation in Install Path A

Update:

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:

#includedir /etc/sudoers.d
radu ALL=(ALL) NOPASSWD: ALL
cloudera-scm ALL=(ALL) NOPASSWD: ALL
zookeeper ALL=(ALL) NOPASSWD: ALL

 

What could be the casue?

 

Thanks,

Radu

 

New Contributor
Posts: 3
Registered: ‎05-25-2017

Re: zookeeper error during installation in Install Path A

Hi Radu, Have you resolved the problem? I'm encountering the similar problem when using cloudera manager 5.11. I'm transferring form non-HA to HA, then it threw an exception that "Non-root agent cannot execute process as user 'hdfs'", and then the error "Journal Storage Directory /data/d1/dfs/jn/scorpio not formatted". Thanks, MH
Explorer
Posts: 8
Registered: ‎05-12-2017

Re: zookeeper error during installation in Install Path A

Nope, haven't been able to solve it. Didn't spend too much time on it
though, as I'm samped with something else at the moment.

Thanks,
Radu
Champion
Posts: 543
Registered: ‎05-16-2016

Re: zookeeper error during installation in Install Path A

[ Edited ]

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 

Explorer
Posts: 8
Registered: ‎05-12-2017

Re: zookeeper error during installation in Install Path A

Thanks for your reply. The firewall is disabled, and the manager is
installed using the root account. When deploying cdh, i'm using a local
accout, other than the zookeeper...

Thanks,
Radu
Announcements