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

Provide a way to specifiy login out side an RPC

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.16.0
    • 0.16.1
    • None
    • None

    Description

      Requirements AFIK :

      It is required in some special cases (benchmarks etc) to invoke NameNode functionality without an RPC. For this users should be able to set user information that is otherwise available only an RPC.

      Patch for HADOOP-1298 includes a change to Server.java so that Server.getUserInfo() does not need to in an RPC. This probably will be replaced by patch here.

      Please include any other Jira's that depend on this.

      Proposed fix:

      • UserGroupInformation becomes an abstract class
      • public static UserGroupInformation.getUserInfo() is added. which usually just returns Server.getUserInfo();
      • public static UserGroupInformation.setUserInfo(UserGroupInformation) sets a thread local that will returned if Server.getUserInfo() returns null.
      • all invocations of Server.getUserInfo() will be replaced by UserGroupInformation.getUserInfo().

      Attachments

        1. 2683_20080211.patch
          9 kB
          Tsz-wo Sze
        2. 2683_20080211b.patch
          5 kB
          Tsz-wo Sze
        3. 2683_20080212.patch
          5 kB
          Tsz-wo Sze
        4. 2683_20080213.patch
          11 kB
          Tsz-wo Sze
        5. 2683_20080213b.patch
          11 kB
          Tsz-wo Sze

        Activity

          People

            szetszwo Tsz-wo Sze
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: