Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Namenode Access Error


Namenode Access Error

New Contributor

I am facing an issue i.e. Namenode can't be accessed from other nodes while starting services after installing cluster. Connnection refused error coming.
If i set "dfs.namenode.http-bind-host" property to in HDFS, I can access the namenode from other hosts but i am getting "Failed to find datanode, suggest to check cluster health. excludeDatanodes=null" error.

I have configured the domains properly. Verified reverse proxy also. I can ping all nodes from each other.

Apache Ambari -
nodes - n1(, n2 (, n3(
OS - Ubuntu 18
Server - n1
hosts - n1, n2,n3

Issue 1: Name node connection refused
resource_management.core.exceptions.ExecutionFailed: Execution of 'curl -sS -L -w '%{http_code}' -X GET -d '' -H 'Content-Length: 0' 'http://n2:50070/webhdfs/v1/user/spark?op=GETFILESTATUS&' 1>/tmp/tmp0b5K1T 2>/tmp/tmp_8RwfN' returned 7. curl: (7) Failed to connect to n2 port 50070: Connection refused

Issue 2: Failed to find datanode (after setting "dfs.namenode.http-bind-host" property to in HDFS)
resource_management.libraries.providers.hdfs_resource.WebHDFSCallException: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/tmp/spark2/spark2-hdp-yarn-archive.tar.gz -H 'Content-Type: application/octet-stream' 'http://n2:50070/webhdfs/v1/hdp/apps/'' returned status_code=403.
"RemoteException": {
"exception": "IOException",
"javaClassName": "",
"message": "Failed to find datanode, suggest to check cluster health. excludeDatanodes=null"


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