akizminet opened a new issue #1589:
URL: https://github.com/apache/incubator-kyuubi/issues/1589


   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Describe the bug
   
   beeline command:
   ```bash
   [phamnv@fedora spark-3.2.0-bin-hadoop3.2]$ bin/beeline -u 
jdbc:hive2://fedora:10009/default --hivevar hive.server2.proxy.user=phamnv -n 
kyuubi -p password
   ```
   proxyUser is null because confKey is `set:hivevar:hive.server2.proxy.user`:
   
![image](https://user-images.githubusercontent.com/52618539/146712485-2fe392e6-2e87-4fdb-859d-6e12e3767842.png)
   
   When put `hive.server2.proxy.user` to jdbc string, realUser will become 
`anonymous`
   
   ```bash
   [phamnv@fedora spark-3.2.0-bin-hadoop3.2]$ bin/beeline -u 
jdbc:hive2://fedora:10009/default;#hive.server2.proxy.user=phamnv -n kyuubi -p 
password
   ```
   
![image](https://user-images.githubusercontent.com/52618539/146712691-c334f4dc-1830-464c-8b0d-00105b322972.png)
   
   
   ### Affects Version(s)
   
   1.4.0-incubating
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   _No response_
   
   ### Kyuubi Server Configurations
   
   ```yaml
   default
   ```
   
   
   ### Kyuubi Engine Configurations
   
   ```yaml
   default
   ```
   
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to