Uploaded image for project: 'ActiveMQ OpenWire'
  1. ActiveMQ OpenWire
  2. OPENWIRE-15

Ambari Incorrectly Warns about tez.tez-ui.history-url.base

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • None
    • None
    • OS: RHEL-6 (64 Bit)
      Ambari: 2.5.2.0
      Tez: 0.7.0

    Description

      In the ambari cluster where SSL in enabled, and ambari port is 8443, it wrongly displays the warning as below:
      ***
      tez.tez-ui.history-url.base:
      It is recommended to set value https://<hostname>:<port>/#/main/view/TEZ/tez_cluster_instance for property tez.tez-ui.history-url.base
      ***
      Before enabling SSL, Ambari was running on port 8765, and looks like "tez.tez-ui.history-url.base" is still looking for older port.
      Though we were able to connect Tez UI using: https://172.26.125.137:8443/#/main/view/TEZ/tez_cluster_instance
      Hence, here ambari is providing a wrong warning.

      Code snippet that is causing this issue is
      https://github.com/apache/ambari/blob/release-2.5.1/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py
      In below code we are always checking client.api.port for port - if https is enabled that it should check the port at "client.api.ssl.port" instead of "client.api.port"

      
      

      if serverProperties:
      if 'client.api.port' in serverProperties:
      server_port = serverProperties['client.api.port']
      if 'views.dir' in serverProperties:
      views_dir = serverProperties['views.dir']
      if 'api.ssl' in serverProperties:
      if serverProperties['api.ssl'].lower() == 'true':
      server_protocol = 'https'

      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            tselvan Tamil Selvan Kandasamy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: