Beruflich Dokumente
Kultur Dokumente
export
------------
1)generated record container class
(java code will be geneareted ,
data types of sql and java combination)
2)number of blocks
3)sqoop export
128 -- 1--120
128 --129 --256
128 --257--384
128 --
Export transactionality
-----------------------------
--->>in order to understand Export transactionality
export
export import of incremental last madified
modifications in sqoop;
---------------------------
have table in RDBMS
do sqoop import to hdfs
change a row in RDBMS
do sqoop last madified to attain changes in RDBMS
--Merge-key(key to compare )
it is used to do do comparision between source and destination
source
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 bala 3 (bala updated with ram )
2019-10-24 zeyo 4
2019-10-25 menal 5
imported
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 bala 3 (became ram)
2019-10-24 zeyo 4
2019-10-25 menal 5
source
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 bala 3 (bala updated with ram )
2019-10-24 zeyo 3
2019-10-25 menal 5
imported
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 ram 3 (became ram)
2019-10-24 zeyo 3
2019-10-25 menal 5
--> above case it will be ambiguity ,so fisrt occurance of 3 will be updated in the
iported area
Task 1 --
How to import date or timestamp column as string Type in HDFS for avro
Task 2 --
Try importing data using sqoop without target directory check what happens
Task 3 --
Task 4 --
Task 5 --
Have 5 dates
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 bala 3
2019-10-24 zeyo 4
2019-10-25 meenal 5
2019-10-21 sai 1
2019-10-22 aditya 2
2019-10-23 anand 3
2019-10-24 zeyo 4
2019-10-25 meenal 5
do the import
Task 6 --