Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5842

Cannot create hftp filesystem when using a proxy user ugi and a doAs on a secure cluster

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • security
    • None
    • Reviewed

    Description

      Noticed this while debugging issues in another application. We saw an error when trying to do a FileSystem.get using an hftp file system on a secure cluster using a proxy user ugi.

      This is a small snippet used

       FileSystem testFS = ugi.doAs(new PrivilegedExceptionAction<FileSystem>() {
                  @Override
                  public FileSystem run() throws IOException {
                      return FileSystem.get(hadoopConf);
                  }
              });
      

      The same code worked for hdfs and webhdfs but not for hftp when the ugi used was UserGroupInformation.createProxyUser

      Attachments

        1. HADOOP-10215.000.patch
          1 kB
          Jing Zhao
        2. HADOOP-10215.001.patch
          4 kB
          Jing Zhao
        3. HADOOP-10215.002.patch
          7 kB
          Jing Zhao
        4. HADOOP-10215.002.patch
          7 kB
          Jing Zhao

        Activity

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

          People

            jingzhao Jing Zhao
            arpitgupta Arpit Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment