Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.5.1
-
None
-
None
Description
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:
[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 ~]#
When Hive view 2.0.0 is used:
[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 ~]#
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:
[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 ~]#