rhive-connect {RHive} | R Documentation |
Manage connection to Hive using functions in Package ‘RHive’
rhive.init(hiveHome=NULL, hiveLib=NULL, hadoopHome=NULL, hadoopConf=NULL, hadoopLib=NULL, verbose=FALSE) rhive.env(ALL=FALSE) rhive.connect(host="127.0.0.1",port=10000, hiveServer2=NA, defaultFS=NULL, updateJar=FALSE, user=NULL, password=NULL) rhive.close()
hiveHome |
path of hive's installation or if HIVE_HOME is set, it is possible to use as NULL. |
hadoopHome |
path of hadoop's installation or if HADOOP_HOME is set, it is possible to use as NULL. |
hadoopConf |
path of hadoop's configuation or if HADOOP_CONF_DIR is set, it is possible to use as NULL. |
hiveLib |
library path to be added to classpath. |
hadoopLib |
hadoop library path to be added to classpath. |
host |
hive-server address for connecting to hive. |
port |
hive-server listen port. |
hiveServer2 |
TRUE if you are using HiveServer2 and FALSE otherwise. |
defaultFS |
the url of hdfs namenode. |
updateJar |
update rhive_udf.jar |
user |
the username for the query to run as. |
password |
the user's password |
verbose |
an option on whether to print detail message. |
ALL |
show all rhive enviroment, such as classpath. |
## initialize rhive ## Not run: rhive.init() ## try to connect hive server ## Not run: rhive.connect("127.0.0.1") ## close connection ## Not run: rhive.close()