Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6372

HdfsDirectoryFactory should use supplied Configuration for communicating with secure kerberos

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.4, 6.0
    • 4.10, 6.0
    • None
    • None

    Description

      When setting the UserGroupInformation's Configuration, HdfsDirectorFactory creates a new Configuration, see here:
      https://github.com/apache/lucene-solr/blob/44f0dd7599901ba4d3625b5da8b998858e198d67/solr/core/src/java/org/apache/solr/core/HdfsDirectoryFactory.java#L306

      The issue with this is when it's used to set the UserGroupInformation configuration, it can overwrite any existing configuration, which may have other (server) settings like kerberos rules. Ideally there would be separate client/servers interfaces so this wouldn't be an issue. But lacking that, using the passed in Configuration allows the user to always specify all necessary settings.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            markrmiller@gmail.com Mark Miller
            gchanan Gregory Chanan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment