Reply
New Contributor
Posts: 2
Registered: ‎06-02-2016

How to start namenode from console when CDH is installed using Cloudera Manager?

[ Edited ]

When I start a namenode using CM web UI it starts /usr/lib64/cmf/service/hdfs/hdfs.sh, but when I run the same script from console it is not able to find various env variables. Can you please help me out with this? There is not documentation regarding this, one doc I found was starting namenode when CDH is installed standalone. Thanks!


edit#1

I guess I would be able to use cm api but I would rather just run the script that cm manager runs under the hood ;)

Highlighted
New Contributor
Posts: 2
Registered: ‎06-02-2016

Re: How to start namenode from console when CDH is installed using Cloudera Manager?

when I run sudo /usr/lib64/cmf/service/hdfs/hdfs.sh this is what I get:

 

Fri Jun 3 10:51:05 EDT 2016
Fri Jun 3 10:51:05 EDT 2016
+ source_parcel_environment
+ '[' '!' -z '' ']'
+ locate_cdh_java_home
+ '[' -z '' ']'
+ '[' -z '' ']'
+ echo 'JSVC_HOME is unset. Cannot find CDH'\''s bigtop-detect-javahome and JAVA_HOME is not set.'
JSVC_HOME is unset. Cannot find CDH's bigtop-detect-javahome and JAVA_HOME is not set.
+ exit 1

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.