无法从SQL Server导入数据到Hive

时间:2019-06-20 11:15:40

标签: sql-server hadoop hive sqoop

我正在尝试将表格从SQL Server导入到Hive,但出现以下错误:

ERROR tool.ImportTool: Import failed: There is no column found in the target table COLABORA. Please ensure that your table name is correct.

有人建议为什么会这样吗? 附注:$ q是要替换的列列表。 $ HIVE_SCHEMA对应于配置单元架构。 代码如下所示

sqoop import -Dmapreduce.job.queuename=xxxx --connect jdbc:sqlserver://zzzz:1433;DatabaseName=s --username x --password x --hive-table COLABORA -m4 --table COLABORA --compression-codec=snappy --as-parquetfile --hive-database $HIVE_SCHEMA --hive-import --direct --hive-overwrite --map-column-java $q

0 个答案:

没有答案
相关问题