-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot modify mapred.child.env at runtime, persists after modifying the hive-site.xml file #99
Comments
Did you restart hive-server2 after change hive-site.xml? Hive does not support reload configuration at runtime. |
@jakemoon Hi, thank you for the reply. No I did not restart hive-server2. Do you know how I can do that? Apologies I am a complete newbie. |
If you use HDP, you can manage services via ambari. |
@jakemoon Thank you for the link. I followed the instruction and restarted hive-server2. The original error message is gone, but I am getting a new one:
I tried adding RHIVE_UDF_DIR to the same property next to mapred.child.env: hive.security.authorization.sqlstd.confwhitelist.append mapred.child.env, RHIVE_UDF_DIRThis brings me back the error message about mapred.child.env again. I also tried: hive.security.authorization.sqlstd.confwhitelist.append mapred.child.env, query\.invoker|RHIVE_UDF_DIRAs per #92 , but this did not do it, either |
try this hive.security.authorization.sqlstd.confwhitelist.append=mapred.child.env|query.invoker|RHIVE_UDF_DIR and restart hive-server2 |
That did not resolve the issue :( I am getting the same mapred.child.env cannot be modified error. |
@taeyoung-yoon Hi there, this is very similar to an issue that you helped solve, so if you could offer some insights here, it would be greatly appreciated! |
@jingjingyangg Anyway, please try again with the following steps.
The value should be Java Regex but not a comma separated list.
So it would be much easier to manage the white list properties with '~confwhitelist.append' rather than '~confwhitelist'.
The results should be as below.
|
@taeyoung-yoon Thanks a lot for the detailed reply. I followed all the steps(added the property in the .xml file, saved the file and then restarted the hive server), but strangely when I ran "set hive.security.authorization.sqlstd.confwhitelist.append' in the query editor, it says the property is undefined. But finally I was able to define it on Ambari at Services -> Hive -> Configs -> Advanced -> Custom hive-site -> Add Property and manually added a property named "hive.security.authorization.sqlstd.confwhitelist.append' with a value of "mapred.child.env|query.invoker|RHIVE_UDF_DIR". This enabled a successful connection with Hive. @jakemoon @taeyoung-yoon thank you so much to both of you for your help! |
I am trying to use RHive package to connect to Hive on Hortonworks Data Platform 2.4. When I execute:
rhive.connect(host="192.168.56.101",port=10000, hiveServer2=TRUE)
I received the following error message:
I inserted the following property and value in the hive-site.xml file, as suggested by some other posts:
But i am still getting the same error. Any suggestion? Thanks in advance!
The text was updated successfully, but these errors were encountered: