Comments (6)
Hi @bayroot22, i think in two options:
1.- See if you has a Kerberos ticket created with 'klist' (In Shell, not in R), if not, create one with 'kinit' command.
2.- See if HiveServer2 has the correct configuration with the RHive UDF File included, i only has this info for do that:
In hive-site.xml add this property and restart HiveServer2:
<property>
<name>hive.aux.jars.path</name>
<value> ----/path/to/rhive_udf.jar----, ----/other/aux/jars.jar---- </value>
</property>
If you use Cloudera CDH they has one tutorial for include UDF files to be use by HiveServer
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cm_mc_hive_udf.html
Good luck
from rhive.
thanks for the response...
- yes a ticket was created
- I added the rhive_udf.jar to my aux path and restarted hive but same issue
from rhive.
I added the following property hive.keytab=/home/bayroot/hive.keytab to the connection string now I get the following:
Exception in thread "Thread-6" java.lang.RuntimeException: java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://hive.server.com:10001/default: Peer indicated failure: Unsupported mechanism type PLAIN
A couple thoughts/questions?
1 - I manage a multi-tenant environment so exposing the hive keytab is a serious security concern so even if this worked it wouldn't be a solution I could implement...
2 - In the loginUserFromKeytab method how does the authentication type get set? I don't see the setAuthenticationMethod method, possibly it gets set in loginUserFromKeytab? As indicated in the above message it looks like RHive is sending auth type of PLAIN and not KERBEROS.
from rhive.
As I have understood if you created the ticket in R you not should put the flags username and password, there may come the message of 'plaintext password' when trying to use these parameters to log, If you have a Kerberos ticket created in the R environment R is responsible for trying to use it automatically, creating the connection / set necessary, soo should use only:
rhive.connect(host = "hive.server.com", port = "10001", db = "default",
defaultFS="hdfs://nameservice1/rhive",
properties="hive.principal=hive/[email protected]")
It is also true that with this format i can't connect, I used the following format for the connection (Example):
rhive.connect(host="hive.server.com:10000/DEFAULTDB;principal=hive/KERBEROSPRINCIPAL;AuthMech=1;KrbHostFQDN=KERBEROSHOSTURL;KrbServiceName=hive;KrbRealm=KERBEROSREALM",
defaultFS="hdfs://nameservice1/rhive",
hiveServer2=TRUE,
updateJar=FALSE)
from rhive.
Hi Team,
could you please confirm Rhive supports kerberos or not.,if its support pls tell the me the correct format for rhive.connect.
from rhive.
any ideas?
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
- 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
- Cannot modify mapred.child.env at runtime, persists after modifying the hive-site.xml file HOT 9
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.