我尝试过此命令并遇到以下错误..
命令:
sqoop import --connect jdbc:oracle:thin:@ip:1521:XE --username akash -P --table transactions_Oracle --coloumns "Tid,AccounID,Amount" --hive-import --hive table akash.Transactions_Oracle -m1
错误:
16/07/13 00:13:38 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.7.0
Enter password:
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: --coloumns
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: Tid,AccounID,Amount
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-import
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: table
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: akash.Transactions_Oracle
16/07/13 00:13:41 ERROR tool.BaseSqoopTool: Unrecognized argument: -m1
list-database命令工作正常,但我无法从表中导入数据..
答案 0 :(得分:0)
正确的语法是:
sqoop import --connect jdbc:oracle:thin:@ip:1521:XE --username akash -P --table transactions_Oracle --columns "Tid,AccounID,Amount" --hive-import --hive-table akash.Transactions_Oracle -m 1
你写了coloumns
而不是columns
,--hive table
而不是--hive-table
和m1
而不是m 1
检查钻取docs以了解导入命令中各种标记的含义。