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

UGI checks in testcases are broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • security, test
    • None
    • Reviewed
    • Fixed JobTracker to use it's own credentials instead of the job's credentials for accessing mapred.system.dir. Also added APIs in the JobTracker to get the FileSystem objects as per the JobTracker's configuration.

    Description

      While running TestMiniMRWithDFSWithDistinctUsers, I used this patch to test the ugi checks

      Index: src/hdfs/org/apache/hadoop/hdfs/server/namenode/PermissionChecker.java
      ===================================================================
      --- src/hdfs/org/apache/hadoop/hdfs/server/namenode/PermissionChecker.java	(revision 768189)
      +++ src/hdfs/org/apache/hadoop/hdfs/server/namenode/PermissionChecker.java	(working copy)
      @@ -40,6 +40,7 @@
           if (LOG.isDebugEnabled()) {
             LOG.debug("ugi=" + ugi);
           }
      +    LOG.info("ugi=" + ugi);
       
           if (ugi != null) {
             user = ugi.getUserName();
      

      While initializing a job, the ugi information should point to jobtracker as jobtracker does a dfs read. But today we will see that the log shows pi as the caller instead of the jobtracker.

      Attachments

        1. HADOOP-5737-v1.3.patch
          4 kB
          Amar Kamat
        2. HADOOP-5737-v1.5.patch
          10 kB
          Amar Kamat
        3. HADOOP-5737-v1.7.patch
          19 kB
          Amar Kamat
        4. HADOOP-5737-y20.patch
          10 kB
          Hemanth Yamijala

        Issue Links

          Activity

            People

              amar_kamat Amar Kamat
              amar_kamat Amar Kamat
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: