i’m facing an exercise in which i have to create an RDD and then load this data to HIVE.
I don’t know if i did in the correct way.
Create the RDD.
Create the DF which i registered in a temp table: rddTemp
Create the hive_table (the rdd and the hive table have the same structure).
sqlContext.sql(“insert into database.hive_table select * from rddTemp”).
or should have i used LOAD DATA INPATH 'path ’ INTO TABLE hive_table
if yes, where i can find the path of the INPATH?
@itversity am i correct?
I really find Hive quite difficult