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

HiveServer2 is not passing proxy user setting through hive-site

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.13.0
    • HiveServer2
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: