Quantcast
Viewing all articles
Browse latest Browse all 3435

Reply To: R and Hive via RJDBC?

Hi Brent,
I am running into similar errors when trying to connect R to HIVE via RJDBC. The error I am getting is this:
drv <- JDBC(“org.apache.hive.jdbc.HiveDriver”, “/usr/lib/hive/lib/hive-jdbc.jar”)
conn <- dbConnect(drv, “jdbc:hive2://localhost:10000/default”, “hue”, “1111″)
Error in .jcall(drv@jdrv, “Ljava/sql/Connection;”, “connect”, as.character(url)[1], :
java.lang.NoClassDefFoundError: Could not initialize class org.apache.hive.service.auth.HiveAuthFactory

I have set my class path via the jclasspath(). This includes all of the jars in the /usr/lib/hive/lib and /usr/lib/hadoop. But it seems even with these jars., I am still missing something. Can you share what additional jars did you include and how are you setting you class path to solve your problem??


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>