nexr / RHive

RHive is an R extension facilitating distributed computing via Apache Hive.
http://nexr.github.io/RHive
122 stars 63 forks source link

rhive.connect() wrong #67

Open Maple-Wang opened 9 years ago

Maple-Wang commented 9 years ago

rhive.init(); rhive.connect(); 14/08/28 19:02:24 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS Warning: +----------------------------------------------------------+

  • / hiveServer2 argument has not been provided correctly. +
  • / RHive will use a default value: hiveServer2=TRUE. + +----------------------------------------------------------+

[1] FALSE

Maple-Wang commented 9 years ago

library(RHive) Loading required package: rJava Loading required package: Rserve

rhive.init(); rhive.connect() 14/08/28 19:12:18 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/lib/hadoop/client-0.20/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/client/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] Warning: +----------------------------------------------------------+

  • / hiveServer2 argument has not been provided correctly. +
  • / RHive will use a default value: hiveServer2=TRUE. + +----------------------------------------------------------+

[1] FALSE

Maple-Wang commented 9 years ago

rhive.connect() 14/08/29 09:56:13 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS Warning: +----------------------------------------------------------+

  • / hiveServer2 argument has not been provided correctly. +
  • / RHive will use a default value: hiveServer2=TRUE. + +----------------------------------------------------------+

[1] FALSE

Maple-Wang commented 9 years ago

rhive.connect(host="127.0.0.1",port=10000, hiveServer2=TRUE) 14/08/29 10:11:26 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS [1] FALSE

Maple-Wang commented 9 years ago

in Rstudio

Sys.setenv(HIVE_HOME="/usr/lib/hive") Sys.setenv(HADOOP_HOME="/usr/lib/hadoop") rhive.init() rhive.connect() 14/08/29 13:12:05 INFO Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS 14/08/29 13:12:07 ERROR security.UserGroupInformation: Unable to find JAAS classes:com.sun.security.auth.UnixPrincipal not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/lib64/R/library/rJava/java/boot/], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/lib/hadoop/client-0.20/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/client/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] Error: Failed to connect to file:///.