Durga Gadiraju

167. Run Queries in MySQL using “sqoop eval”

To get information on commands available with respect to eval command sqoop help eval Command to evaluate SQL statements against a database and return the results sqoop eval –connect jdbc:mysql://hostname:port/database_name –username your_username -P –query “SELECT * FROM table_name LIMIT 10;” Example: sqoop eval –connect jdbc:mysql://ms.itversity.com/retail_db –username retail_user –password itversity –query “SELECT * FROM orders LIMIT …

167. Run Queries in MySQL using “sqoop eval” Read More »

166. List tables in MySql using “sqoop list-tables”

To get information on commands available with respect to list-tables command sqoop help list-tables Command to get list of tables in a database sqoop list-tables –connect jdbc:sqlserver://hostname:port/database_name –username your_username –p Example: sqoop list-tables –connect jdbc:mysql://ms.itversity.com:3306/retail_db –username retail_user -p -P in the above command will prompt for the password.