Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

One of the Oracle table has data that has new line char in it. After importing the data using sqoop, I am not able to represent that data in Hive. The row that has new line char is getting split into two rows.

avatar
Contributor
 
1 ACCEPTED SOLUTION

avatar
Master Mentor
@narasimha meruva

check this http://stackoverflow.com/questions/28076200/hive-d...

Use --map-column-java option to explicitly state the column is of type String. Then --hive-drop-import-delims works as expected (to remove \n from data).

View solution in original post

5 REPLIES 5

avatar
Master Mentor

@narasimha meruva Can you past out of errors? HDP version?

avatar
Master Mentor
@narasimha meruva

check this http://stackoverflow.com/questions/28076200/hive-d...

Use --map-column-java option to explicitly state the column is of type String. Then --hive-drop-import-delims works as expected (to remove \n from data).

avatar
Contributor

Thank you !!! It did work .

avatar
Master Mentor

@narasimha meruva Cool! Please close the thread by accepting the answer "best practice"

avatar

I want to remove '/n' while sqoop the data into hdfs. Is there any sqoop cmd?