Simpson Yang
Simpson Yang

Reputation: 81

can't execute any hadoop command after installing cloudera manager

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.

enter image description here

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

Answers (1)

Radhakrishnan Rk
Radhakrishnan Rk

Reputation: 561

Ensure CDH and other add on service parcels are downloaded and distributed to the hosts from cloudera manager server.

enter image description here

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.

enter image description here

You can do this directly from cloudera manager web ui.

Or you can use cloudera manager REST API to refresh client configuration.

http://cloudera.github.io/cm_api/apidocs/v16/path__clusters_-clusterName-_commands_deployClientConfig.html

"/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

Related Questions