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.

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

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

Explorer

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 ;)

1 REPLY 1

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

Explorer

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

Don't have an account?
Coming from Hortonworks? Activate your account here