是否可以通过Sqoop将数据导入到Hive表中,存储为Parquet,并且之前使用decimal和timestamp数据类型创建?
发布于 2017-04-07 13:04:42
可以,您可以将via导入到Sqoop,导入到存储为拼图的Hive表。
Sqoop has added Parquet Support
sqoop import \
--connect jdbc:mysql://the_mysql_server/the_mysql_database \
--username the_mysql_user --password the_mysql_password \
--table sourcetablename\
--hive-import –hive-table destinationtablename\
--as-parquetfile -m 1如果要在从RDBMS导入数据时将数据类型更改为hive数据类型
e.g
使用此参数--map-column-hive col1=hivedatatype,col2=hivedatatype
sqoop import \
...
...
--map-column-hive id=STRING,price=DECIMALhttps://stackoverflow.com/questions/43260917
复制相似问题