Support Questions

Find answers, ask questions, and share your expertise

Deploy client configuration has failed on CDH 5.13 single user mode

New Contributor



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:


  • /var/log/cloudera-scm-agent/
  • /var/lib/cloudera-scm-agent/
  • /opt/cloudera


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:



Super Guru



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.

New Contributor

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.

Super Guru



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.