Friday 22 April 2022

Read the password from console while executing sqoop command

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

 


 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment