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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: security
    • Labels:
      None
    • Hadoop Flags:
      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

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jing Zhao
            Reporter:
            Arpit Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development