07-10-2018 05:43 AM
I'm currently facing a problem during the last step of setup and configuration of Cloudera manager on Ubuntu machine.
All the services failed during the deployment process.
From my side I have followed all the suggestions for single user mode here:
I have set:
cloudera-scm ALL=(ALL) NOPASSWD: ALL
And I have make writable these directories:
But it still get the same deployment error...
Someone could exaplain me why I cannot complete the configuration?
I upload below the /var/log/cloudera-scm-agent/cloudera-scm-agent.log file:
07-10-2018 10:07 AM
In the log you shared, we see that the single user does not have the access required via sudo:
[10/Jul/2018 13:11:24 +0000] 27280 MainThread tmpfs WARNING Failed to sudo tmpfs at /run/cloudera-scm-agent/process, rc: 1 stderr: sudo: no tty present and no askpass program specified
[10/Jul/2018 13:11:31 +0000] 27280 MainThread throttling_logger WARNING Command failure: ['sudo', '/usr/sbin/update-alternatives', '--admindir', '/var/lib/dpkg/alternatives', '--altdir', '/etc/alternatives', '--display', 'sqoop2-conf'], sudo: no tty present and no askpass program specified
OSError: [Errno 13] Permission denied: '/var/log/zookeeper/stacks'
It seems that sudo and permissions on the host from which the cloudera-scm-agent.log was obtained doesn't have sudo set up to grant the agent the access it needs to OS resources.
Correcting that is a good place to start.
07-11-2018 01:18 AM - edited 07-11-2018 01:39 AM
Thanks for your reply @bgooley,
the problem is that I have already set in visudo the sudo permission to cloudera-scm user.. and the same sudo privileges were setted also for the user that I have choose during the cloudera manager installation step.
As you can see the "cluster" user and the "cloudera-scm" user have the right sudo permission that are the same of the "root" user.
07-11-2018 07:22 AM
If the agent is running as cloudera-scm, then the errors indicate that sudo is not set up to allow the necessary access. I would try testing with the cloudera-scm user and see if it can creat directories, run alternatives and other commands.