Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-4315

enable doAs in unsecure mode for hive server2, when MR job runs locally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • HiveServer2
    • None

    Description

      When MR job is run locally by hive (instead of hadoop cluster), the MR job ends up running as hiveserver user instead of the user submitting the query, even if doAs configuration is enabled.

      In case of map-side join (see map join optimization) , MapredLocalTask is spawned in child process to process the map-side file before adding it to distributed cache. When hive.server2.enable.doAs is enabled, MapredLocalTask should run as the user submitting the query. But by default, in case of unsecure (ie without kerberos security) mode hadoop considers user the process runs as the user.

      Attachments

        1. HIVE-4315.2.patch
          1 kB
          Thejas Nair
        2. HIVE-4315.1.patch
          1 kB
          Thejas Nair

        Activity

          People

            thejas Thejas Nair
            thejas Thejas Nair
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: