Hive
  1. Hive
  2. HIVE-6800

HiveServer2 is not passing proxy user setting through hive-site

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major 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.

      1. HIVE-6800.1.patch
        0.8 kB
        Vaibhav Gumashta

        Issue Links

          Activity

          Vaibhav Gumashta created issue -
          Vaibhav Gumashta made changes -
          Field Original Value New Value
          Attachment HIVE-6800.1.patch [ 12637953 ]
          Vaibhav Gumashta made changes -
          Attachment HIVE-6800.1.patch [ 12637953 ]
          Vaibhav Gumashta made changes -
          Attachment HIVE-6800.1.patch [ 12637955 ]
          Vaibhav Gumashta made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Vaibhav Gumashta made changes -
          Attachment HIVE-6800.1.patch [ 12637955 ]
          Vaibhav Gumashta made changes -
          Attachment HIVE-6800.1.patch [ 12637963 ]
          Thejas M Nair made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Thejas M Nair made changes -
          Link This issue is related to HIVE-6851 [ HIVE-6851 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development