No, --target-dir is not a valid option for the command ‘sqoop-import-all-tables’.
[cloudera@quickstart Desktop]$ sqoop-import-all-tables \
> --connect "jdbc:mysql://quickstart.cloudera:3306/import_demo" \
> --username "root" \
> --password "cloudera" \
> --target-dir /import_database_demo
Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
22/04/03 08:25:26 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.13.0
22/04/03 08:25:26 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
22/04/03 08:25:26 ERROR tool.BaseSqoopTool: Error parsing arguments for import-all-tables:
22/04/03 08:25:26 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir
22/04/03 08:25:26 ERROR tool.BaseSqoopTool: Unrecognized argument: /import_database_demo
Try --help for usage instructions.
From the output, you can confirm that the option –target-dir is not recognized by the command ‘sqoop-import-all-tables’.
Previous Next Home
No comments:
Post a Comment