

{"id":7261,"date":"2018-02-05T07:09:03","date_gmt":"2018-02-05T07:09:03","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=7261"},"modified":"2021-12-07T13:08:41","modified_gmt":"2021-12-07T07:38:41","slug":"sqoop-codegen","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/","title":{"rendered":"Sqoop Codegen &#8211; Arguments &amp; Commands in Codegen with Example"},"content":{"rendered":"<p><span style=\"font-weight: 400\">A tool which generates <a href=\"https:\/\/data-flair.training\/blogs\/java-inner-class\/\"><strong>Java classes<\/strong><\/a> that encapsulate and interpret imported records is what we call Sqoop Codegen. However, there is much more to know about Sqoop Codegen in <a href=\"https:\/\/data-flair.training\/blogs\/sqoop-introduction\/\"><strong>Sqoop<\/strong><\/a>. So in this article, we will learn each and every aspect of Codegen. in Sqoop. Apart from the introduction, we will also learn Codegen in Sqoop&#8217;s purpose as well as its syntax.<\/span><\/p>\n<h3>Introduction to Sqoop Codegen and its Purpose<\/h3>\n<p><span style=\"font-weight: 400\">A tool which generates Java classes that encapsulate and interpret imported records is what we call Sqoop-Codegen. Moreover, as part of the <a href=\"https:\/\/data-flair.training\/blogs\/sqoop-import\/\"><strong>Sqoop import process<\/strong><\/a>, the <a href=\"https:\/\/data-flair.training\/blogs\/java-tutorial\/\"><strong>Java<\/strong> <strong>definition<\/strong><\/a> of a record is instantiated. However, we can also perform it separately. Likewise, we can recreate a java source if it gets lost. Also, we can create new versions of a class which uses different delimiters between fields, and so on.<\/span><\/p>\n<p>Refer this link to know about <strong><a href=\"https:\/\/data-flair.training\/blogs\/sqoop-export\/\">Sqoop Export<\/a><\/strong>.<\/p>\n<h3>Codegen Syntax in Sqoop<\/h3>\n<p><b>$ sqoop codegen (generic-args) (codegen-args)<\/b><br \/>\n<b>$ sqoop-codegen (generic-args) (codegen-args)<\/b><br \/>\n<span style=\"font-weight: 400\">However, the Codegen in sqoop arguments can be entered in any order with respect to one another but the <a href=\"https:\/\/data-flair.training\/blogs\/hadoop-tutorial\/\"><strong>Hadoop<\/strong><\/a> generic arguments must precede any Sqoop Codegen arguments only.<\/span><\/p>\n<h3>Sqoop Codegen Arguments<\/h3>\n<h4>a. Common arguments\u00a0in Sqoop Codegen<\/h4>\n<table>\n<tbody>\n<tr>\n<td><b>Argument<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;connect &lt;jdbc-uri&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Specify JDBC connect string<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;connection-manager &lt;class-name&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Specify connection manager class to use<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;driver &lt;class-name&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Manually specify JDBC driver class to use<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hadoop-mapred-home &lt;dir&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Override $HADOOP_MAPRED_HOME<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;help<\/span><\/td>\n<td><span style=\"font-weight: 400\">Print usage instructions<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;password-file<\/span><\/td>\n<td><span style=\"font-weight: 400\">Set path for a file containing the authentication password<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">-P<\/span><\/td>\n<td><span style=\"font-weight: 400\">Read password from console<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;password &lt;password&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Set authentication password<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;username &lt;username&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Set authentication username<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;verbose<\/span><\/td>\n<td><span style=\"font-weight: 400\">Print more information while working<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;connection-param-file &lt;filename&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Optional properties file that provides connection parameters<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;relaxed-isolation<\/span><\/td>\n<td><span style=\"font-weight: 400\">Set connection transaction isolation to read uncommitted for the mappers.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>b. Code generation arguments\u00a0in Sqoop Codegen<\/h4>\n<table>\n<tbody>\n<tr>\n<td><strong>Argument<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;bindir &lt;dir&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Output directory for compiled objects<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;class-name &lt;name&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the generated class name. This overrides &#8211;package-name. When combined with &#8211;jar-file, sets the input class.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;jar-file &lt;file&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Disable code generation; use specified jar<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;outdir &lt;dir&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Output directory for generated code<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;package-name &lt;name&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Put auto-generated classes in this package<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;map-column-java &lt;m&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Override default mapping from SQL type to Java type for configured columns<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>c. Output line formatting arguments in Sqoop Codegen<\/h4>\n<table>\n<tbody>\n<tr>\n<td><b>Argument<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;enclosed-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets a required field enclosing character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;escaped-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the escape character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;fields-terminated-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the field separator character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;lines-terminated-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the end-of-line character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;mysql-delimiters<\/span><\/td>\n<td><span style=\"font-weight: 400\">Uses MySQL\u2019s default delimiter set: fields: , lines: \\n escaped-by: \\ optionally-enclosed-by: &#8216;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;optionally-enclosed-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets a field enclosing character<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>d. Input parsing arguments\u00a0in Sqoop Codegen<\/h4>\n<table>\n<tbody>\n<tr>\n<td><b>Argument<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;input-enclosed-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets a required field encloser<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;input-escaped-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the input escape character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;input-fields-terminated-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the input field separator<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;input-lines-terminated-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the input end-of-line character<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;input-optionally-enclosed-by &lt;char&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets a field enclosing character<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>e. Hive arguments in Sqoop Codegen<\/h4>\n<table>\n<tbody>\n<tr>\n<td><b>Argument<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-home &lt;dir&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Override $HIVE_HOME<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-import<\/span><\/td>\n<td><span style=\"font-weight: 400\">Import tables into Hive (Uses Hive\u2019s default delimiters if none are set.)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-overwrite<\/span><\/td>\n<td><span style=\"font-weight: 400\">Overwrite existing data in the Hive table.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;create-hive-table<\/span><\/td>\n<td><span style=\"font-weight: 400\">If set, then the job will fail if the target hive<\/span><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><span style=\"font-weight: 400\">table exits. By default this property is false.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-table &lt;table-name&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Sets the table name to use when importing to Hive.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-drop-import-delims<\/span><\/td>\n<td><span style=\"font-weight: 400\">Drops \\n, \\r, and \\01 from string fields when importing to Hive.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-delims-replacement<\/span><\/td>\n<td><span style=\"font-weight: 400\">Replace \\n, \\r, and \\01 from string fields with user-defined string when importing to Hive.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-partition-key<\/span><\/td>\n<td><span style=\"font-weight: 400\">Name of a hive field to partition is shared on<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;hive-partition-value &lt;v&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">String-value that serves as partition key for this imported into the hive in this job.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400\">&#8211;map-column-hive &lt;map&gt;<\/span><\/td>\n<td><span style=\"font-weight: 400\">Override default mapping from SQL type to Hive type for configured columns.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-weight: 400\">Basically, Sqoop generates a file containing the HQL statements to create a table and load data only if <a href=\"https:\/\/data-flair.training\/blogs\/apache-hive-tutorial\/\"><strong>Hive<\/strong><\/a> arguments are provided to the code generation tool.<\/span><\/p>\n<h3>Sqoop Codegen Commands<\/h3>\n<p><span style=\"font-weight: 400\">All these commands actually define the importance of Codegen tool. Basically, every database table has one DAO class that carry getter and setter methods. <\/span><br \/>\n<span style=\"font-weight: 400\">a. Change the directory to \/usr\/local\/hadoop\/sbin<\/span><br \/>\n<b>$ cd \/usr\/local\/hadoop\/sbin<\/b><br \/>\n<span style=\"font-weight: 400\">b. Start all hadoop daemons<\/span><br \/>\n<b> $ start-all.sh<\/b><br \/>\n<span style=\"font-weight: 400\">c. The JPS (Java Virtual Machine Process Status Tool) tool is limited to reporting information on JVMs for which it has the access permissions<\/span><br \/>\n<b>$ jps<\/b><br \/>\n<span style=\"font-weight: 400\">d. Change the directory to \/usr\/local\/sqoop\/bin<\/span><br \/>\n<b>$ cd \/usr\/local\/sqoop\/bin<\/b><\/p>\n<h3>Codegen Example Invocations in Sqoop<\/h3>\n<p><span style=\"font-weight: 400\">Here, for the employees table of a corporate database we are recreating the record interpretation code.<\/span><br \/>\n<b>$ sqoop codegen &#8211;connect jdbc:mysql:\/\/db.example.com\/corp \\<\/b><br \/>\n<b> \u00a0\u00a0\u00a0&#8211;table employees<\/b><\/p>\n<h3>Conclusion<\/h3>\n<p>As a result, we have seen a complete introduction to Sqoop Codegen. Also, we have studied purpose and syntax of codegen in Sqoop. Likewise, we have learned all the arguments and commands associated with Sqoop Codegen. But if you want to ask any query regarding, feel free to ask in the comment section.<\/p>\n<p>Learn about <strong><a href=\"https:\/\/data-flair.training\/blogs\/sqoop-eval\/\">Sqoop eval commands<\/a>\u00a0<\/strong>&amp;<strong> <a href=\"https:\/\/data-flair.training\/blogs\/best-sqoop-books\/\">Sqoop Books<\/a><\/strong><br \/>\n<strong><a href=\"http:\/\/sqoop.apache.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">For reference<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2028,&quot;href&quot;:&quot;http:\\\/\\\/sqoop.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20250925155903\\\/https:\\\/\\\/sqoop.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 22:16:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-13 23:03:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-17 06:30:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-20 10:18:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-24 02:01:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-27 19:00:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-30 19:52:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-02 23:02:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-06 11:12:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-11 07:39:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-14 14:00:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 20:14:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-23 07:39:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-26 22:35:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-02 09:53:53&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-09 06:23:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-12 18:07:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-16 05:01:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 15:46:49&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 20:42:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-02 19:22:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-06 04:01:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-10 04:30:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-16 11:20:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-20 07:53:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-23 12:38:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-31 03:58:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 07:44:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 10:04:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 14:27:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-14 16:47:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-21 15:59:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-26 17:43:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-30 00:21:38&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-04 07:58:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-07 14:39:59&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-12 19:37:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-17 18:39:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-21 10:10:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-26 11:21:43&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-01 06:33:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-05 02:07:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-10 06:22:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-14 04:14:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-18 03:31:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-21 19:29:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-25 17:04:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-29 06:32:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-02 14:31:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-06 12:01:37&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-09 21:39:27&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-13 05:53:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-16 16:20:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-19 23:26:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-23 14:38:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-27 08:07:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-02 06:39:08&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-06 09:03:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-09 17:40:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-14 05:02:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-17 15:24:19&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-20 20:21:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-24 16:51:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-28 13:17:25&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-08-31 20:30:32&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-08-31 20:30:32&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A tool which generates Java classes that encapsulate and interpret imported records is what we call Sqoop Codegen. However, there is much more to know about Sqoop Codegen in Sqoop. So in this article,&#46;&#46;&#46;<\/p>\n","protected":false},"author":9,"featured_media":7361,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[68],"tags":[2625,4244,7134,13605,13606,13607,13688],"class_list":["post-7261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sqoop","tag-codegen-syntax","tag-example-invocations","tag-introduction-to-sqoop-codegen","tag-sqoop-codegen-arguments","tag-sqoop-codegen-commands","tag-sqoop-codegen-examples","tag-sqoop-codegen"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sqoop Codegen - Arguments &amp; Commands in Codegen with Example - DataFlair<\/title>\n<meta name=\"description\" content=\"Sqoop Codegen-What is sqoop codegen and its purpose, codegen syntax in sqoop, sqoop codegen commands and example, sqoop codegen arguements with commands.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sqoop Codegen - Arguments &amp; Commands in Codegen with Example - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Sqoop Codegen-What is sqoop codegen and its purpose, codegen syntax in sqoop, sqoop codegen commands and example, sqoop codegen arguements with commands.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-05T07:09:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-07T07:38:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sqoop Codegen - Arguments &amp; Commands in Codegen with Example - DataFlair","description":"Sqoop Codegen-What is sqoop codegen and its purpose, codegen syntax in sqoop, sqoop codegen commands and example, sqoop codegen arguements with commands.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/","og_locale":"en_US","og_type":"article","og_title":"Sqoop Codegen - Arguments &amp; Commands in Codegen with Example - DataFlair","og_description":"Sqoop Codegen-What is sqoop codegen and its purpose, codegen syntax in sqoop, sqoop codegen commands and example, sqoop codegen arguements with commands.","og_url":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-02-05T07:09:03+00:00","article_modified_time":"2021-12-07T07:38:41+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/6e11a88eea98179e861a0933f8959f8f"},"headline":"Sqoop Codegen &#8211; Arguments &amp; Commands in Codegen with Example","datePublished":"2018-02-05T07:09:03+00:00","dateModified":"2021-12-07T07:38:41+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/"},"wordCount":863,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg","keywords":["Codegen Syntax","Example Invocations","Introduction to Sqoop-Codegen","Sqoop Codegen Arguments","Sqoop Codegen Commands","Sqoop codegen examples","Sqoop-Codegen"],"articleSection":["Sqoop Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/","url":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/","name":"Sqoop Codegen - Arguments &amp; Commands in Codegen with Example - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg","datePublished":"2018-02-05T07:09:03+00:00","dateModified":"2021-12-07T07:38:41+00:00","description":"Sqoop Codegen-What is sqoop codegen and its purpose, codegen syntax in sqoop, sqoop codegen commands and example, sqoop codegen arguements with commands.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/sqoop-codegen\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/02\/Introduction-to-sqoop-codegen-01-1.jpg","width":1200,"height":628,"caption":"What is Sqoop Codegen"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/sqoop-codegen\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Sqoop Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/sqoop\/"},{"@type":"ListItem","position":3,"name":"Sqoop Codegen &#8211; Arguments &amp; Commands in Codegen with Example"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/6e11a88eea98179e861a0933f8959f8f","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/54363d8635c383dcd7e3be0ef00dbeef4217c45bf323d27bc2c92366b724df08?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/54363d8635c383dcd7e3be0ef00dbeef4217c45bf323d27bc2c92366b724df08?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/54363d8635c383dcd7e3be0ef00dbeef4217c45bf323d27bc2c92366b724df08?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"At DataFlair, our team of experts is committed to offering high-quality tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We simplify learning to help you advance your career in the tech world.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam5\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/7261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=7261"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/7261\/revisions"}],"predecessor-version":[{"id":105344,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/7261\/revisions\/105344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/7361"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=7261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=7261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=7261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}