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

Fix jsvc startup command in hadoop-functions.sh due to jsvc >= 1.0.11 changed default current working directory

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.0, 3.1.2
    • Fix Version/s: None
    • Component/s: scripts
    • Labels:
      None
    • Target Version/s:

      Description

      In CDH6, when we bump jsvc from 1.0.10 to 1.1.0 we hit KerberosAuthException: failure to login / LoginException: Unable to obtain password from user due to DAEMON-264 and our
      dfs.nfs.keytab.file config uses a relative path. I will probably file another jira to issue a warning like hdfs.keytab not found before KerberosAuthException in this case.

      The solution is to add -cwd $(pwd) in function hadoop_start_secure_daemon in hadoop-functions.sh but I will have to consider the compatibility with older jsvc versions <= 1.0.10. Will post the patch after I tested it.

      Thanks Todd Lipcon for finding the root cause.

        Attachments

        1. HADOOP-16276.003.patch
          3 kB
          Siyao Meng
        2. HADOOP-16276.002.patch
          3 kB
          Siyao Meng
        3. HADOOP-16276.001.patch
          3 kB
          Siyao Meng

          Issue Links

            Activity

              People

              • Assignee:
                smeng Siyao Meng
                Reporter:
                smeng Siyao Meng
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: