Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-15123

KDiag tries to load krb5.conf from KRB5CCNAME instead of KRB5_CONFIG

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.8.0, 2.9.0, 3.0.0
    • 3.1.0, 2.10.0, 3.0.1
    • security
    • None

    Description

      If Kerberos credential cache file location is overridden in environment, then KDiag tries to read its value for Kerberos configuration. For example,

      # export KRB5CCNAME=/tmp/krb5cc_1001
      # hadoop org.apache.hadoop.security.KDiag
      ...
      ...
      == Locating Kerberos configuration file ==
      
      Setting kerberos path from environment variable KRB5CCNAME: "/tmp/krb5cc_1001"
      Kerberos configuration file = /tmp/krb5cc_1001
      17/12/16 04:06:19 ERROR security.KDiag: java.util.UnknownFormatConversionException: Conversion = '�'
      java.util.UnknownFormatConversionException: Conversion = '�'
      

      Expected Behavior:
      1. Kerberos configuration file location should be read from KRB5_CONFIG env. variable instead of KRB5CCNAME. Source: MIT KRB5 doc

      Attachments

        1. HADOOP-15123.0001.patch
          2 kB
          Vipin Rathor
        2. HADOOP-15123.0002.patch
          2 kB
          Vipin Rathor

        Issue Links

        Activity

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

          People

            vrathor-hw Vipin Rathor
            vrathor-hw Vipin Rathor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment