1
是否可以通过Sqoop将数据导入Hive表,存储为Parquet,并且以前使用十进制和时间戳数据类型创建?使用Sqoop导入数据,时间戳数据类型
是否可以通过Sqoop将数据导入Hive表,存储为Parquet,并且以前使用十进制和时间戳数据类型创建?使用Sqoop导入数据,时间戳数据类型
是的,你可以通过Sqoop导入Hive表格存储为Parquet。
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
e.g
使用此参数导入数据--map-column-hive col1=hivedatatype,col2=hivedatatype
sqoop import \
...
...
--map-column-hive id=STRING,price=DECIMAL