Sqoop Codegen in Big Data Hadoop
•Code gen is for object-oriented application, every database table has one DAO class that contains ‘getter’ and ‘setter’ methods to initialize objects.
•Codegen generates the DAO class automatically
sqoop codegen --connect jdbc:mysql://localhost:3306/userdb --driver com.mysql.jdbc.Driver --username root --table test
$ ls
test.class
test.jar
test.java
Post Your Comment