You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Jesus Alvarez (JIRA)" <ji...@apache.org> on 2018/05/06 03:10:00 UTC

[jira] [Created] (AMBARI-23774) Knox configs for webhdfs_service_urls do not get updated when WebHDFS HTTPS is enabled

Jesus Alvarez created AMBARI-23774:
--------------------------------------

             Summary: Knox configs for webhdfs_service_urls do not get updated when WebHDFS HTTPS is enabled
                 Key: AMBARI-23774
                 URL: https://issues.apache.org/jira/browse/AMBARI-23774
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 2.7.0
         Environment: Issue present in HDP 2.6.4.

Checked Trunk Ambari 2.7.0 code and same issue in params_linux.py
            Reporter: Jesus Alvarez


After enabling  *dfs.http.policy* to *HTTPS_ONLY*, knox's topology will still assume WebHDFS is on HTTP.

 

Knox's Advanced Topology resolves the webHDFS URLs as:

{{ <service>}}
{{ <role>WEBHDFS</role>}}
{{ \{{webhdfs_service_urls}}}}
{{ </service>}}

 

The issue is, in ambari's knox params_linux.py, the webhdfs_service_urls will always be prefaced with *"http"*

{{webhdfs_service_urls += buildUrlElement("*http*", host, namenode_port_map[host], "/webhdfs")}}
{{else:}}
{{ webhdfs_service_urls = buildUrlElement("*http*", namenode_host, namenode_http_port, "/webhdfs")}}

 

https://github.com/apache/ambari/blob/5a982c29311336380cc27c8a752820f4ad55ffb4/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py#L192

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)