- last edited on
I am trying to write data into hive using R Studio, for which first I am storing data into HDFS and from there I want to insert data into Hive.
R to HDFS: I am using below code to generate HDFS(i.e. txt) file which is working fine.
modelfile <- hdfs.file("/Result.txt", "w")
data1 <- toJSON(hdfsfile)
data2 <- charToRaw(data1)
Out Put data format:
Issue: Now the issue is writing and reading this data from Hive.
We are able to insert this result into hive. But when try to read, getting below error.