想用sqoop将数据从hive导入MySQL
hadoop@dblab-VirtualBox:/usr/local/sqoop$ ./bin/sqoop export --connect jdbc:mysql://localhost:3306/dbjd --username root -p --table tv --export-dir '/user/hive/warehouse/dbjd.db/tv' --fields-terminated-by '\t';
Warning: /usr/local/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /usr/local/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
Warning: /usr/local/sqoop/../zookeeper does not exist! Accumulo imports will fail.
Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation.
21/12/19 16:29:13 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Error parsing arguments for export:
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: -p
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: --table
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: tv
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: --export-dir
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: /user/hive/warehouse/dbjd.db/tv
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: --fields-terminated-by
21/12/19 16:29:14 ERROR tool.BaseSqoopTool: Unrecognized argument: \t
Try --help for usage instructions.