Reply
New Contributor
Posts: 5
Registered: ‎05-13-2019

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

[ Edited ]

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

Cloudera Employee
Posts: 227
Registered: ‎01-15-2015

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

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.

New Contributor
Posts: 5
Registered: ‎05-13-2019

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

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

Highlighted
Posts: 954
Kudos: 30
Solutions: 18
Registered: ‎05-27-2014

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

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

Cloudera Employee
Posts: 227
Registered: ‎01-15-2015

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

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
New Contributor
Posts: 5
Registered: ‎05-13-2019

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

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

New Contributor
Posts: 5
Registered: ‎05-13-2019

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

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

New Contributor
Posts: 5
Registered: ‎05-13-2019

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

Can anyone help me here?

Announcements

Our community is getting a little larger. And a lot better.


Learn More about the Cloudera and Hortonworks community merger planned for late July and early August.