Created on 03-31-2017 09:56 AM - edited 09-16-2022 04:23 AM
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:
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!
Created 04-13-2017 02:10 PM
me too. Help please.
Created 05-09-2017 11:11 PM
Created 05-10-2017 04:04 AM
Could you please let us know the
hardware , cdh version ,os details.
are you using cloudera manager to setup zookeeper.
Created on 05-12-2017 06:43 AM - edited 05-12-2017 06:45 AM
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
Created 05-15-2017 03:58 AM
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
Created 05-25-2017 12:17 AM
Created 05-25-2017 12:22 AM
Created on 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
Created 05-26-2017 04:44 AM
Created on 05-26-2017 04:54 AM - edited 05-26-2017 04:54 AM
if i understant correctly you are trying to add service - zookeeper in your cluster using cloudera manager web ui ?
correct me if i am wrong
does your local account has full administrative rights under cm ?
Created 05-26-2017 05:11 AM
So, what I'm trying to do is to deploy a new cluster from the Manager. And when it gets to the zookeeper, I'm getting those errors.
Yes, the account I'm using is part of root and sudo groups and I've enabled sudo passwordless execution for it.
My question is, why is the setup looking for the ZooKeeper acocunt? I haven't found anything stated in the documentation about this.
thanks,
Radu
Created 06-14-2017 06:43 PM
Hi Radu,
Did you find the solution for it. I am also facing the same problem.
This problem has persisted for more than two months now, but still has no solution.
Regards,
Satish
Created 06-14-2017 10:09 PM
Created 07-13-2017 09:22 AM
"My question is, why is the setup looking for the ZooKeeper acocunt? I haven't found anything stated in the documentation about this. "
Obviously you would have choose that parcels to be deployed during your installation.
Now give us some logs like Cloudera-scm-server , cloudera-scm-agent to help you .
Created 07-14-2017 08:20 AM
Hello,
Thanks for your reply. There is a limitation for 50000 characters per insert code - is there a way to upload the log files as attachments?
Thanks,
Radu
Created 07-14-2017 10:49 PM
Would you be able to perform a tail -f command and post the logs
also this post is simliar to your issue i dont know if that is going to help you meantime .
they there is a internal jira . Not sure if they fixed it .
I usually dont choose single user mode when i go for Path A installation for POC or testing .
Created 06-26-2017 09:59 AM
Hi,
I have same problem. I'm using the cloudera manager to install CDH 5.7.2 and I'm finishing the installation
but I have this error during the "first run command" step
I added the zookeeper user and group to test into sudoers file.. but I did't have success with this error.
I'm using single user mode during the installation and RedHat 7
I did the ps and I have this services running with supervisor
I have no idea.. how to solve.
Thank you a lot
Created 06-26-2017 07:03 PM
Your screenshots are not visible.
Created 07-13-2017 05:44 AM
Please, are there any solution for this issue? I have the same problem with CDH 5.11. thanks.
Created on 07-13-2017 09:24 AM - edited 07-13-2017 09:24 AM
@fsolive post the full log in the " insert code tag "