Reputation: 81
I've set up my cdh cluster(5.14.0) successfully, which includes 4 nodes,and installed services including hdfs, yarn, zookeeper and impala. The cloudera manager web page works fine.
But when I open a terminal and try to run any hadoop command, like hadoop, impala or anything, the shell prompt "command not found".
I installed CM with user hadoop, and run all service in singer user mode with default user cloudera-scm. I know that CM should set enviroment variable for me, but seems it did not.
Really appreciate for any help!
Upvotes: 1
Views: 1078
Reputation: 561
Ensure CDH and other add on service parcels are downloaded and distributed to the hosts from cloudera manager server.
Add gateway roles to the host where you are running hadoop commands.
Do not forget to deploy client configuration. Select your cluster and click deploy client configuration option.
You can do this directly from cloudera manager web ui.
Or you can use cloudera manager REST API to refresh client configuration.
"/api/v16/clusters/{clusterName}/commands/deployClientConfig"
POST http://admin.scmserver.com:7180/api/v16/clusters/mycluster/commands/deployClientConfig
Select the supported API Version.
Upvotes: 0