Hadoop Common
  1. Hadoop Common
  2. HADOOP-2683

Provide a way to specifiy login out side an RPC

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.16.0
    • Fix Version/s: 0.16.1
    • Component/s: None
    • Labels:
      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().
      1. 2683_20080213b.patch
        11 kB
        Tsz Wo Nicholas Sze
      2. 2683_20080213.patch
        11 kB
        Tsz Wo Nicholas Sze
      3. 2683_20080212.patch
        5 kB
        Tsz Wo Nicholas Sze
      4. 2683_20080211b.patch
        5 kB
        Tsz Wo Nicholas Sze
      5. 2683_20080211.patch
        9 kB
        Tsz Wo Nicholas Sze

        Activity

        Owen O'Malley made changes -
        Component/s dfs [ 12310710 ]
        Nigel Daley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Konstantin Shvachko made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tsz Wo Nicholas Sze made changes -
        Attachment 2683_20080213b.patch [ 12375548 ]
        Tsz Wo Nicholas Sze made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tsz Wo Nicholas Sze made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tsz Wo Nicholas Sze made changes -
        Attachment 2683_20080213.patch [ 12375531 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tsz Wo Nicholas Sze made changes -
        Attachment 2683_20080212.patch [ 12375398 ]
        Tsz Wo Nicholas Sze made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tsz Wo Nicholas Sze made changes -
        Attachment 2683_20080211b.patch [ 12375257 ]
        Tsz Wo Nicholas Sze made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Tsz Wo Nicholas Sze made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Tsz Wo Nicholas Sze made changes -
        Attachment 2683_20080211.patch [ 12375247 ]
        Tsz Wo Nicholas Sze made changes -
        Fix Version/s 0.16.1 [ 12312927 ]
        Fix Version/s 0.17.0 [ 12312913 ]
        Tsz Wo Nicholas Sze made changes -
        Assignee Raghu Angadi [ rangadi ] Tsz Wo (Nicholas), SZE [ szetszwo ]
        Robert Chansler made changes -
        Assignee Raghu Angadi [ rangadi ]
        Nigel Daley made changes -
        Fix Version/s 0.16.0 [ 12312740 ]
        Fix Version/s 0.17.0 [ 12312913 ]
        Raghu Angadi made changes -
        Field Original Value New Value
        Affects Version/s 0.16.0 [ 12312740 ]
        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().

        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().

        Component/s dfs [ 12310710 ]
        Raghu Angadi created issue -

          People

          • Assignee:
            Tsz Wo Nicholas Sze
            Reporter:
            Raghu Angadi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development