Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

New Contributor

I am unable to start service cloudera-scm-server owing to permission denied error. I am trying to set up Spark 2.0 in cloudera quickstart vm. After java 8 update , I am trying to start the server , but below error occurs. Any help will be

much appreciated.

 

Capture.PNG

7 REPLIES 7

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

Expert Contributor

Please restart the service with root privileges e.g. 

# sudo service cloudera-scm-server restart

Note that force_start has a different purpose than helping over permissions issues.

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

New Contributor

sorry this did not work with restart, start, force_start anything. Same error I am getting.

Highlighted

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

Community Manager

Hi @Abhipreyo ,

 

Did you try with root user or sudo suggested by @gzigldrum? What is the CM version?

 

Thanks,

Li 

Li Wang, Technical Resolution Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

New Contributor

I tried with sudo.Nevertheless, issue is resolved now. 

 

After doing three four time reboot, it was solved.

 

But once I am trying to achieve my end goal which is to set up spark2 in cloudera. After every configuration I am trying to add service for Spark2. During First Run I am getting an error as givne below

 

5:28:57.606 PM FATAL DataNode

Exception in secureMain
java.lang.RuntimeException: Cannot start datanode because the configured max locked memory size (dfs.datanode.max.locked.memory) is greater than zero and native code is not available.
at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:1275)
at org.apache.hadoop.hdfs.server.datanode.DataNode.<init>(DataNode.java:464)
at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:2583)
at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:2470)
at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:2517)
at org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:2699)
at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:2723)

 

spark2error.PNG

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

New Contributor

Can anyone help me here?

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

Expert Contributor

Can you please copy the output of the following commands to here, to clarify the permissions problem:

 

# namei -l /var/log/cloudera-scm-server/cloudera-scm-server.out
# namei -l /var/run/cloudera-scm-server.pid

Re: Can't start service cloudera-scm-server | Permission denied /etc/init.d/cloudera-scm-server

New Contributor

Here it goes. This issue is resolved now. But I cant reach the lvel where i can start using Spark2 in cludera. isuue description is guven in this thread. 

sp2.PNG