r - Access hive using sparklyr package? -
library(sparklyr) library(dplyr) home <- "/usr/hdp/current/spark-client" sc <- spark_connect(master = "yarn-client", spark_home = home, version = "1.6.2") readfromspark <- spark_read_csv(sc, name="test", path ="hdfs://hostname/user/test.csv",header=true)
i access hdfs
using sparklyr. how access hive table/command using sparklyr
because need store df
hive.
afaik, sparklyr doesn't have function create database/table directly. can use dbi
create database/table.
library(dbi) iris_preview <- dbexecute(sc, "create external table...")
Comments
Post a Comment