I want to import data with tree fileds from mysql table to hdfs with hive metastore integaration. I want to the data format stored in hdfs likes
field1,field2,field3
....
which these fileds in a record delimilated by comma(,), to achive this format, two things should be pay attention to.
a. sqoop import statement should be contain (I used hue)
<arg>--fields-terminated-by</arg>
<arg>,</arg>
b. when create hive metastore table, should change the filed delimilater

本文介绍如何使用Sqoop从MySQL导入数据至HDFS,并通过Hive Metastore进行整合。重点介绍了设置字段分隔符的过程及Hive表创建时需要注意的细节。

被折叠的 条评论
为什么被折叠?



