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.

Run Servrice check Failed on HDFS, MapReduce2 & Hive with same error

Highlighted

Run Servrice check Failed on HDFS, MapReduce2 & Hive with same error

New Contributor

Run service check on HDFS, MapReduce2 and HIVE fails with almost similar error Message

HDFS Run Check failure

File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 199, in run_command

    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/etc/passwd -H 'Content-Type: application/octet-stream' 'http://{ACTIVE_NAME_NODE}:50070/webhdfs/v1/tmp/idd735ac17_date490417?op=CREATE&user.name=hdfs&overwrite=True'' returned status_code=404. 
<HTML><HEAD><TITLE>HTTP 404 File not found</TITLE></HEAD><BODY TEXT=BLACK BGCOLOR=WHITE>The requested file was not found</BODY></HTML>

MapReduce2

 File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 199, in run_command
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%{http_code}' -X PUT --data-binary @/etc/passwd -H 'Content-Type: application/octet-stream' 'http://mst-2.us590.corpintra.net:50070/webhdfs/v1/user/ambari-qa/mapredsmokeinput?op=CREATE&user.name=hdfs&overwrite=True'' returned status_code=404. 
<HTML><HEAD><TITLE>HTTP 404 File not found</TITLE></HEAD><BODY TEXT=BLACK BGCOLOR=WHITE>The requested file was not found</BODY></HTML>
1 REPLY 1

Re: Run Servrice check Failed on HDFS, MapReduce2 & Hive with same error

Master Collaborator

The error indicates that WebHDFS service (REST API for HDFS) is unavailable. Can you search for "webhdfs" in HDFS config and make sure that its enabled? Also restart your Namenode service and then try.

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