Using -P option, we can notify sqoop to prompt for the password while executing the command.
Example
sqoop-list-databases --connect "jdbc:mysql://quickstart.cloudera:3306" --username "retail_dba" -P
[cloudera@quickstart Desktop]$ sqoop-list-databases --connect "jdbc:mysql://quickstart.cloudera:3306" --username "retail_dba" -P
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/01 01:51:17 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.13.0
Enter password:
22/04/01 01:51:21 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
information_schema
retail_db
No comments:
Post a Comment