Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Authorization
    • Labels:
      None

      Description

      if metastore is started with hive.users.in.admin.role=user1, then user1 is added admin role to metastore.
      If the value is changed to hive.users.in.admin.role=user2, then user2 should get added to the role in metastore. Right now, if the admin role exists, new users don't get added.
      A work-around is - user1 adding user2 to the admin role using grant role statement.

      1. HIVE-6417.1.patch
        7 kB
        Ashutosh Chauhan
      2. HIVE-6417.patch
        7 kB
        Ashutosh Chauhan

        Issue Links

          Activity

          Hide
          Ashutosh Chauhan added a comment -

          Problem is both role creation and adding users in a role is governed by same flag. We need to separate these two tasks such that they are governed by two different flags. Patch forthcoming.

          Show
          Ashutosh Chauhan added a comment - Problem is both role creation and adding users in a role is governed by same flag. We need to separate these two tasks such that they are governed by two different flags. Patch forthcoming.
          Hide
          Ashutosh Chauhan added a comment -

          Thejas M Nair Can you take a look?

          Show
          Ashutosh Chauhan added a comment - Thejas M Nair Can you take a look?
          Hide
          Thejas M Nair added a comment -

          sure, can you add an rb link ?

          Show
          Thejas M Nair added a comment - sure, can you add an rb link ?
          Show
          Ashutosh Chauhan added a comment - https://reviews.apache.org/r/18793/
          Hide
          Ashutosh Chauhan added a comment -

          Re-attach for Hive QA to pick up.

          Show
          Ashutosh Chauhan added a comment - Re-attach for Hive QA to pick up.
          Hide
          Hive QA added a comment -

          Overall: -1 at least one tests failed

          Here are the results of testing the latest attachment:
          https://issues.apache.org/jira/secure/attachment/12633196/HIVE-6417.1.patch

          ERROR: -1 due to 3 failed/errored test(s), 5359 tests executed
          Failed tests:

          org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_schemeAuthority2
          org.apache.hive.beeline.TestSchemaTool.testSchemaInit
          org.apache.hive.beeline.TestSchemaTool.testSchemaUpgrade
          

          Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1640/testReport
          Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1640/console

          Messages:

          Executing org.apache.hive.ptest.execution.PrepPhase
          Executing org.apache.hive.ptest.execution.ExecutionPhase
          Executing org.apache.hive.ptest.execution.ReportingPhase
          Tests exited with: TestsFailedException: 3 tests failed
          

          This message is automatically generated.

          ATTACHMENT ID: 12633196

          Show
          Hive QA added a comment - Overall : -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12633196/HIVE-6417.1.patch ERROR: -1 due to 3 failed/errored test(s), 5359 tests executed Failed tests: org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_schemeAuthority2 org.apache.hive.beeline.TestSchemaTool.testSchemaInit org.apache.hive.beeline.TestSchemaTool.testSchemaUpgrade Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1640/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1640/console Messages: Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 3 tests failed This message is automatically generated. ATTACHMENT ID: 12633196
          Hide
          Thejas M Nair added a comment -

          +1

          Show
          Thejas M Nair added a comment - +1
          Hide
          Ashutosh Chauhan added a comment -

          Committed to trunk. Harish Butani Since its a bug on newly introduced feature in 0.13, it will be good to have this on 0.13 as well.

          Show
          Ashutosh Chauhan added a comment - Committed to trunk. Harish Butani Since its a bug on newly introduced feature in 0.13, it will be good to have this on 0.13 as well.
          Hide
          Harish Butani added a comment -

          yes; do you want me to commit this to 0.13 branch?

          Show
          Harish Butani added a comment - yes; do you want me to commit this to 0.13 branch?
          Hide
          Ashutosh Chauhan added a comment -

          I can do it. No worries!

          Show
          Ashutosh Chauhan added a comment - I can do it. No worries!
          Hide
          Ashutosh Chauhan added a comment -

          Committed to 0.13 as well.

          Show
          Ashutosh Chauhan added a comment - Committed to 0.13 as well.

            People

            • Assignee:
              Ashutosh Chauhan
              Reporter:
              Thejas M Nair
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development