Google News
logo
Hadoop - Interview Questions
What is Codegen in Sqoop?
The Codegen tool in Sqoop generates the Data Access Object (DAO) Java classes that encapsulate and interpret imported records.
 
The following example generates Java code for an “employee” table in the “testdb” database.
 
$ sqoop codegen \
--connect jdbc:mysql://localhost/testdb \
--username root \
--table employee

Advertisement