Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-2945

Need to check if RANGER_LOGIN_PASSWORD exists in HadoopConfigHolder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0, 3.0.0
    • plugins
    • None

    Description

      Since Presto service allows not to set password, when constructing HadoopConfigHolder, we need to check whether RANGER_LOGIN_PASSWORD is set. If it is not set, we need to set it to null in connectionProperties in order to make the password in dataSource2HadoopConfigHolder be updated. Otherwise, when we set the password in the Presto service, the static variable dataSource2HadoopConfigHolder will store the password. If we change the password in the Presto service to empty, if we do not check the RANGER_LOGIN_PASSWORD, the old password stored in dataSource2HadoopConfigHolder will never be updated, causing the presto client connection to fail.

      Attachments

        1. 0001-RANGER-2945.patch
          2 kB
          Jiayi Liu
        2. 0002-RANGER-2945.patch
          2 kB
          Jiayi Liu

        Issue Links

          Activity

            People

              liujiayi771 Jiayi Liu
              liujiayi771 Jiayi Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: