Hive
  1. Hive
  2. HIVE-6602

Multi-user HiveServer2 throws error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0
    • Fix Version/s: 0.14.0
    • Component/s: HiveServer2
    • Labels:
      None

      Description

      Error thrown:
      Error while processing statement: FAILED: RuntimeException org.apache.hadoop.security.AccessControlException: Permission denied: user=user_1, access=WRITE, inode="/tmp/hive-hive":hdfs:drwxr-xr-x

      For hive query execution, a scratch directory specified by hive.exec.scratchdir is created with default permission 700. In HiveServer2, during the CLIService startup, we check for the presence of scratch directories (local + dfs) and if they don't exist, create them with permission 777. However, we should also change the permission from the default 700 to 777 in case the dfs scratch directory already exists.

      1. HIVE-6602.1.patch
        0.7 kB
        Vaibhav Gumashta

        Issue Links

          Activity

          Hide
          Vaibhav Gumashta added a comment -
          Show
          Vaibhav Gumashta added a comment - cc Thejas M Nair
          Hide
          Thejas M Nair added a comment - - edited

          Deleting the earlier comment, as I had misread the code.

          Show
          Thejas M Nair added a comment - - edited Deleting the earlier comment, as I had misread the code.
          Hide
          Thejas M Nair added a comment -

          +1

          Show
          Thejas M Nair added a comment - +1
          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/12633685/HIVE-6602.1.patch

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

          org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_auto_sortmerge_join_16
          

          Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1699/testReport
          Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1699/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: 1 tests failed
          

          This message is automatically generated.

          ATTACHMENT ID: 12633685

          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/12633685/HIVE-6602.1.patch ERROR: -1 due to 1 failed/errored test(s), 5376 tests executed Failed tests: org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_auto_sortmerge_join_16 Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1699/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1699/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: 1 tests failed This message is automatically generated. ATTACHMENT ID: 12633685
          Hide
          Thejas M Nair added a comment -

          Patch committed to trunk. Thanks Vaibhav!

          Show
          Thejas M Nair added a comment - Patch committed to trunk. Thanks Vaibhav!
          Hide
          Vaibhav Gumashta added a comment -

          Harish Butani I think HIVE-6627 and HIVE-6626 should also get in if we're keeping this for 13. Or else this should be deferred.

          Thejas M Nair: What do you say?

          Show
          Vaibhav Gumashta added a comment - Harish Butani I think HIVE-6627 and HIVE-6626 should also get in if we're keeping this for 13. Or else this should be deferred. Thejas M Nair : What do you say?
          Hide
          Thejas M Nair added a comment -

          This has been fixed in 0.14 release. Please open new jira if you see any issues.

          Show
          Thejas M Nair added a comment - This has been fixed in 0.14 release. Please open new jira if you see any issues.

            People

            • Assignee:
              Vaibhav Gumashta
              Reporter:
              Vaibhav Gumashta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development