import cvs to hive,

22 views
Skip to first unread message

ronnie

unread,
Feb 26, 2016, 9:05:30 AM2/26/16
to Hadoop Learners from Hadoop-skills.com

Dear all,


I have created a table in hive with a few columns and stored as textfile.


And I have loaded the csv file to the table by using load data local inpath command to put the csv file to the hive table created above, but all the data imported to 1 column only, the rest of the columns are empty, I open the csv file in notepad, excel, seems like everything is in order, I have tried --hive-drop-delims and --fields-terminated-by '\t' in the load data command, the result is still the same.


Has anyone tried this before?

Rishabh Chandra

unread,
Apr 17, 2016, 11:44:07 PM4/17/16
to Hadoop Learners from Hadoop-skills.com
I have imported sql db data to hdfs in csv format using delimited by, then further imported to hive. Can u please post the complete command you used

yong

unread,
Apr 18, 2016, 12:02:12 AM4/18/16
to rishabh...@gmail.com, Hadoop Learners from Hadoop-skills.com
I use load data inpath command, but there are too much works to clean the data, I have changed to sqoop.


--
hadoop-skills.com
---
You received this message because you are subscribed to a topic in the Google Groups "Hadoop Learners from Hadoop-skills.com" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hadoop-learner-tutorial-training-community/-MaWHDo6Pec/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hadoop-learner-tutorial-tra...@googlegroups.com.
Visit this group at https://groups.google.com/group/hadoop-learner-tutorial-training-community.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hadoop-learner-tutorial-training-community/74fe409b-d688-4c5f-9ae5-fed72cc72080%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rishabh Chandra

unread,
Apr 18, 2016, 12:14:30 AM4/18/16
to yong, Hadoop Learners from Hadoop-skills.com

I too used sqoop command for data transfer. I will provide exact command if in case you need to refer

Reply all
Reply to author
Forward
0 new messages