将数据从 oracle 导入 hdfs 时出错
getting error while importing data from oracle to hdfs
我已经尝试过这个命令并得到以下错误..
命令:
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 命令工作正常,但我无法从 table..
导入数据
正确的语法是:
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
检查 drill docs 以了解导入命令中各种标签的含义。
我已经尝试过这个命令并得到以下错误..
命令:
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 命令工作正常,但我无法从 table..
导入数据正确的语法是:
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
检查 drill docs 以了解导入命令中各种标签的含义。