ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amogh Patel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-21628) Hive view 2.0.0 uses wrong Knox URL when Ambari is accessed via Knox
Date Tue, 01 Aug 2017 23:18:00 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-21628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amogh Patel updated AMBARI-21628:
---------------------------------
    Attachment: HiveView2.0.0ErrorWithKnox.png

> Hive view 2.0.0 uses wrong Knox URL when Ambari is accessed via Knox
> --------------------------------------------------------------------
>
>                 Key: AMBARI-21628
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21628
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-views
>    Affects Versions: 2.5.1
>            Reporter: Amogh Patel
>            Priority: Minor
>         Attachments: HiveView2.0.0ErrorWithKnox.png
>
>
> Hive view 2.0.0 uses wrong Knox URL when Ambari is accessed via Knox. Request URL is
incorrect (missing gateway/default/ambari) in latest Hive view 2.0.0 whereas Hive view 1.5.0
is correct.
> When Hive view 1.5.0 is used:
> {code}
> [root@taco1 ~]# curl -u admin:admin https://taco3.example.com:8443/gateway/default/ambari/api/v1/views/HIVE/versions/1.5.0/instances/AUTO_HIVE_INSTANCE/resources/hive/service-check-policy?_=1501525886329
-k
> {"serviceCheckPolicy":{"checkHdfs":true,"checkHomeDirectory":true,"checkHive":true,"checkATS":true}}[root@taco1
~]#
> {code}
> When Hive view 2.0.0 is used:
> {code}
> [root@taco1 ~]# curl -u admin:admin https://taco3.example.com:8443/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/resources/system/service-check-policy?_=1501526211921
-k
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 404 </title>
> </head>
> <body>
> <h2>HTTP ERROR: 404</h2>
> <p>Problem accessing /api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/resources/system/service-check-policy.
Reason:
> <pre>    Not Found</pre></p>
> <hr /><i><small>Powered by Jetty://</small></i>
> </body>
> </html>
> [root@taco1 ~]#
> {code}
> Same can be seen in attached screenshot.
> Instead if I use the right URL for Hive view 2.0.0 then I get the expected response at
command line:
> {code}
> [root@taco1 ~]# curl -u admin:admin https://taco3.example.com:8443/gateway/default/ambari/api/v1/views/HIVE/versions/2.0.0/instances/AUTO_HIVE20_INSTANCE/resources/system/service-check-policy?_=1501526211921
-k
> {"serviceCheckPolicy":{"checkHdfs":true,"checkHomeDirectory":true,"checkHive":true,"checkATS":true}}[root@taco1
~]# 
> {code}



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

Mime
View raw message