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

HiveServer2 is not passing proxy user setting through hive-site

    Details

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

      Description

      Setting the following in core-site.xml works fine in a secure cluster with hive.server2.allow.user.substitution set to true:

      <property>
        <name>hadoop.proxyuser.user1.groups</name>
        <value>users</value>
      </property>
          
      <property>
        <name>hadoop.proxyuser.user1.hosts</name>
        <value>*</value>
      </property>
      

      where user1 will be proxying for user2:

      !connect jdbc:hive2:/myhostname:10000/;principal=hive/_HOST@EXAMPLE.COM;hive.server2.proxy.user=user2 user1 fakepwd org.apache.hive.jdbc.HiveDriver
      

      However, setting this in hive-site.xml throws "Failed to validate proxy privilage" exception.

        Attachments

        1. HIVE-6800.1.patch
          0.8 kB
          Vaibhav Gumashta

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: