BDA 02 - Sqoop Installation
BDA 02 - Sqoop Installation
Step 9 – Verify
mysql> select * from indrajeet;
+ + + +
| id | name | salary |
+ + + +
| 1 | suhas | 15000 |
| 2 | manish | 15500 |
| 3 | rohan | 20000 |
| 4 | harsh | 25000 |
| 5 | raj | 30000 |
+ + + +
5 rows in set (0.00 sec)
Step 12 - Verify
mysql> select * from indrajeet_add;
+ + + + +
| id | hno | street | city |
+ + + + +
| 1 | 103 | abc | palghar |
| 2 | 104 | nmb | virar |
| 3 | 105 | fbs | boisar |
| 4 | 106 | bfs | vasai |
| 5 | 107 | xyz | borivali |
+ + + + +
5 rows in set (0.00 sec)
Step 21 - Verify
hduser@xyz-VirtualBox:/usr/local/sqoop/bin$ hdfs dfs -cat
/sqoop/where/part-m-00000
Incremental Import
Incremental import is a technique that imports only the newly
added rows in a table. It is required to add 'incremental',
'check-column', and 'last-value' options to perform the
incremental import.
Step 22 - Insert some more data into employee table.
mysql> hdfs dfs -rmr /user/hduser/indrajeet
-> hdfs dfs -rmr /user/hduser/indrajeet
->
-> ^CCtrl-C -- exit!
Aborted
mysql> hdfs dfs -rmr /user/hduser/indrajeet
-> ^CCtrl-C -- exit!
Aborted