Comments (9)
Did you restart hive-server2 after change hive-site.xml?
Hive does not support reload configuration at runtime.
from rhive.
@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.
from rhive.
If you use HDP, you can manage services via ambari.
from rhive.
@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:
Cannot modify RHIVE_UDF_DIR at runtime. It is not in list of params that are allowed to be modified at runtime.
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
from rhive.
try this
hive.security.authorization.sqlstd.confwhitelist.append=mapred.child.env|query.invoker|RHIVE_UDF_DIR
and restart hive-server2
from rhive.
That did not resolve the issue :( I am getting the same mapred.child.env cannot be modified error.
from rhive.
@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!
from rhive.
@jingjingyangg
I think that Jake's comment is the correct and it is enough to solve your problem.
Anyway, please try again with the following steps.
- Open and edit the 'hive-site.xml' on your HDP Hive and add "hive.security.authorization.sqlstd.confwhitelist.append" configuration as below.
<property>
<name>hive.security.authorization.sqlstd.confwhitelist.append</name> <value>mapred\.child\.env|query\.invoker|RHIVE_UDF_DIR</value>
<description>Java regexes, to be appended to list set in
hive.security.authorization.sqlstd.confwhitelist. Using this list instead
of updating the original list means that you can append to the defaults
set by SQL standard authorization instead of replacing it entirely.
</description>
</property>
The value should be Java Regex but not a comma separated list.
Please don't make changes to hive.security.authorization.sqlstd.confwhitelist configuration in hive-site.xml
If you set any value to the hive.security.authorization.sqlstd.confwhitelist configuration, it will overwrite the default white list properties.
You can check the default value in your Hive env. through beeline command or your Hive user interface(query editor?) on HDP.
set hive.security.authorization.sqlstd.confwhitelist
So it would be much easier to manage the white list properties with '~confwhitelist.append' rather than '~confwhitelist'.
- Restart you Hive Server(hive-server2).
- Please double check the '~confwhitelist.append' value.
0: jdbc:hive2://localhost:10000> set hive.security.authorization.sqlstd.confwhitelist.append;
The results should be as below.
hive.security.authorization.sqlstd.confwhitelist.append=mapred\.child\.env|query\.invoker|RHIVE_UDF_DIR
- And now, try again RHive command.
from rhive.
@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!
from rhive.
Related Issues (20)
- Package ‘RHive’ was removed from the CRAN repository. HOT 1
- dependencies ‘rJava’, ‘Rserve’ are not available for package ‘RHive’ HOT 1
- rhive.connect() Insufficient privileges to execute ADD HOT 1
- Could RHive used in Windows ? HOT 1
- Unable to view MR jobs associated with Rhive query in ResourceManager WebUI
- Error with function rhive.load.table HOT 1
- Unable to connect using rhive.connect( )
- rhive.connect() Error: java.io.IOException: Create failed for file... HOT 1
- rhive.connect() error HOT 1
- Only simple query works but not complex queries or agreegated functions HOT 5
- Hue Insufficient privileges to execute ADD HOT 6
- rhive.conect class not found HOT 2
- Cannot modify RHIVE_UDF_DIR at runtime HOT 10
- rhive.connect() -> Exception in thread java.lang.RuntimeException: java.sql.SQLException: java.lang.ClassNotFoundException HOT 4
- RHive kerberos issue on CDH HOT 6
- How install RHive UDF in Cloudera Stack HOT 7
- Error while processing statement: Failed to read external resource hdfs://xxx:9000/rhive/rhive/lib/2.0-0.10/rhive_udf.jar using rhive.connect HOT 8
- Ant Build Failure HOT 2
- File not found exception while running queries on UDAF HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rhive.