<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Need help with sqoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/47348#M9035</link>
    <description>&lt;P&gt;&lt;FONT color="#000000"&gt;-m 1 is the correct one (do not use -m1). But&amp;nbsp;as per your code you are using -m 1 along with&amp;nbsp;&lt;SPAN&gt;{{cluster_data.worker_node_hostname.length}}&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;remove&amp;nbsp;{{cluster_data.worker_node_hostname.length}} &amp;nbsp;and try again only with&amp;nbsp;-m 1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;also i would recommand to practice with import instead of import-all-tables. Becuase you can customize&amp;nbsp;"-m&lt;/FONT&gt; &lt;FONT color="#993300"&gt;&lt;FONT color="#0000FF"&gt;{{cluster_data.worker_node_hostname.length}}&lt;/FONT&gt;"&lt;FONT color="#000000"&gt;&amp;nbsp;with&amp;nbsp;different size based on your file/table size (like -m 2, -m 3, etc)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 21:49:48 GMT</pubDate>
    <dc:creator>saranvisa</dc:creator>
    <dc:date>2016-11-14T21:49:48Z</dc:date>
    <item>
      <title>Need help with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33176#M9031</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to launch the below sqoop job from terminal editor but I am getting&amp;nbsp;Error: expected numeric argument.&lt;BR /&gt;Try --help for usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop import-all-tables \
    -m {{cluster_data.worker_node_hostname.length}} \
    --connect jdbc:mysql://{{cluster_data.manager_node_hostname}}:3306/retail_db \
    --username=retail_dba \
    --password=cloudera \
    --compression-codec=snappy \
    --as-parquetfile \
    --warehouse-dir=/user/hive/warehouse \
    --hive-import&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundar.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:44:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33176#M9031</guid>
      <dc:creator>smarudai</dc:creator>
      <dc:date>2022-09-16T09:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33178#M9032</link>
      <description>&lt;P&gt;sqoop import-all-tables \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -m &lt;FONT color="#993300"&gt;{{cluster_data.worker_node_hostname.length}}&lt;/FONT&gt; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --connect jdbc:mysql://{{cluster_data.manager_node_hostname}​}:3306/retail_db \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --username=retail_dba \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --password=cloudera \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --compression-codec=snappy \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --as-parquetfile \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --warehouse-dir=/user/hive/warehouse \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; --hive-import&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-m --&amp;gt; Expects no of mapper. May be your variable is not getting converted to numeric value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try 1 or 2 instead ie -m 1&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12574"&gt;@smarudai&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to launch the below sqoop job from terminal editor but I am getting&amp;nbsp;Error: expected numeric argument.&lt;BR /&gt;Try --help for usage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sqoop import-all-tables \
    -m {{cluster_data.worker_node_hostname.length}} \
    --connect jdbc:mysql://{{cluster_data.manager_node_hostname}}:3306/retail_db \
    --username=retail_dba \
    --password=cloudera \
    --compression-codec=snappy \
    --as-parquetfile \
    --warehouse-dir=/user/hive/warehouse \
    --hive-import&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundar.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 19:37:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33178#M9032</guid>
      <dc:creator>Somu</dc:creator>
      <dc:date>2015-10-20T19:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33179#M9033</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Somu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sundar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 19:41:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/33179#M9033</guid>
      <dc:creator>smarudai</dc:creator>
      <dc:date>2015-10-20T19:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/45166#M9034</link>
      <description>&lt;P&gt;sorry boss,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;your post is the recommended solution, but its not working wiht me i've tried both m 1 and m1 but not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate your prompt reply&lt;/P&gt;&lt;P&gt;==========================&lt;/P&gt;&lt;P&gt;[cloudera@quickstart ~]$ sqoop import-all-tables&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -m 1 {{cluster_data.worker_node_hostname.length}}&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --connect jdbc:mysql://{{cluster_data.manager_node_hostname}}:3306/retail_db&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --username=retail_dba&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --password=cloudera&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --compression-codec=snappy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --as-parquetfile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --warehouse-dir=/user/hive/warehouse&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --hive-import&lt;BR /&gt;Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.&lt;BR /&gt;Please set $ACCUMULO_HOME to the root of your Accumulo installation.&lt;BR /&gt;16/09/15 18:02:52 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5-cdh5.4.2&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Error parsing arguments for import-all-tables:&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: {{cluster_data.worker_node_hostname.length}}&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --connect&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: jdbc:mysql://{{cluster_data.manager_node_hostname}}:3306/retail_db&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --username&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: retail_dba&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --password&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: cloudera&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --compression-codec&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: snappy&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --as-parquetfile&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --warehouse-dir&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: /user/hive/warehouse&lt;BR /&gt;16/09/15 18:02:52 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-import&lt;BR /&gt;&lt;BR /&gt;Try --help for usage instructions.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 01:12:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/45166#M9034</guid>
      <dc:creator>murtaza74</dc:creator>
      <dc:date>2016-09-16T01:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/47348#M9035</link>
      <description>&lt;P&gt;&lt;FONT color="#000000"&gt;-m 1 is the correct one (do not use -m1). But&amp;nbsp;as per your code you are using -m 1 along with&amp;nbsp;&lt;SPAN&gt;{{cluster_data.worker_node_hostname.length}}&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;remove&amp;nbsp;{{cluster_data.worker_node_hostname.length}} &amp;nbsp;and try again only with&amp;nbsp;-m 1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;also i would recommand to practice with import instead of import-all-tables. Becuase you can customize&amp;nbsp;"-m&lt;/FONT&gt; &lt;FONT color="#993300"&gt;&lt;FONT color="#0000FF"&gt;{{cluster_data.worker_node_hostname.length}}&lt;/FONT&gt;"&lt;FONT color="#000000"&gt;&amp;nbsp;with&amp;nbsp;different size based on your file/table size (like -m 2, -m 3, etc)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 21:49:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Need-help-with-sqoop/m-p/47348#M9035</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2016-11-14T21:49:48Z</dc:date>
    </item>
  </channel>
</rss>

