You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "David Tucker (JIRA)" <ji...@apache.org> on 2017/11/21 20:22:00 UTC

[jira] [Created] (AMBARI-22492) A bad WebHDFS request is issued when starting Hive Metastore

David Tucker created AMBARI-22492:
-------------------------------------

             Summary: A bad WebHDFS request is issued when starting Hive Metastore
                 Key: AMBARI-22492
                 URL: https://issues.apache.org/jira/browse/AMBARI-22492
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 2.6.0
            Reporter: David Tucker


When deploying a cluster with Hive (1.2.1000, in this case), Ambari issues an incorrect WebHDFS request:
{code}
2017-11-20 20:21:21,839 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://dtucker-rjy277d.west.isilon.com:8082/webhdfs/v1?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpzipnFe 2>/tmp/tmpbGajx_''] {'logoutput': None, 'quiet': False}
{code}
That command should be:
{code}
curl -sS -L -w '%{http_code}' -X GET 'http://dtucker-rjy277d.west.isilon.com:8082/webhdfs/v1/?op=GETFILESTATUS&user.name=hdfs'
{code}
(Note the / after v1.)

On Apache, this results in a FileNotFoundException (404); however, this causes problems with OneFS which returns an IllegalArgumentException (400) and prevents the Metastore from starting.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)