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.

Namenode Access Error

Highlighted

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 0.0.0.0 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.

Environemnt:
Apache Ambari - 2.7.4.0
HDP - 3.1.4.0
nodes - n1(10.0.0.32), n2 (10.0.0.33), n3(10.0.0.33)
OS - Ubuntu 18
Server - n1
hosts - n1, n2,n3

Issue 1: Name node connection refused
Log:
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&user.name=hdfs' 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 0.0.0.0 in HDFS)
Log:
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/3.1.4.0-315/spark2/spark2-hdp-yarn-archive.tar.gz?op=CREATE&user.name=hdfs&overwrite=True&permission=444'' returned status_code=403.
{
"RemoteException": {
"exception": "IOException",
"javaClassName": "java.io.IOException",
"message": "Failed to find datanode, suggest to check cluster health. excludeDatanodes=null"
}
}

 

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