Sqoop以科学计数法导入数据

时间:2019-06-17 16:19:39

标签: hive sqoop

导入后,数据将以科学计数法的形式从oracle填充到Hive。任何建议如何在导入级别进行修复。

sqoop import  \
--connect "jdbc:$driver:@(description=(address=(protocol=tcp)(host=$ip)(port=$portid))(connect_data=(service_name=$servicename)))"  \
--username $username  \
--password $password  \
--table  $table \
--hive-database "$hive_db_name" \
--hive-import \
--hive-overwrite \
--hive-table "$table" \
--fields-terminated-by "|" \
--target-dir 'maprfs:/user/hive/warehouse/$hive_db_name.db/$table' \
--null-string '\\N' --null-non-string '\\N' \
--m 1

0 个答案:

没有答案