Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Loading entire content of a txt file into a single column in a Hive table

New Contributor

Loading entire content of a txt file into a single column in a Hive table

File_NameFile_content
file1.txtfirst
line
@
end
file2.txtsecond
line
***
""
/
n
1 REPLY 1

Expert Contributor

@Pradeep V

What's your expected end result? Would you like file1 to occupy column 1 of a new table and file2 to occupy the second column? If so, you can import each file as a new table into hive and then insert the second file's table into the first file's table using UNION ALL.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.