<?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: Hue and Sqoop white spaces in query in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380621#M244103</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105727"&gt;@Sokka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please try the below syntax. Instead of a single line separate linewise.&lt;/P&gt;&lt;P&gt;import&lt;BR /&gt;--connect&lt;BR /&gt;jdbc:oracle:thin:@server/service&lt;BR /&gt;--query&lt;BR /&gt;'SELECT * from mytable'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paras&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Was your question answered? Make sure to mark the answer as the accepted solution.&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2023 09:57:56 GMT</pubDate>
    <dc:creator>paras</dc:creator>
    <dc:date>2023-12-11T09:57:56Z</dc:date>
    <item>
      <title>Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380574#M244095</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;I'm running a sqoop job through Hue.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;This imports data from Oracle, but the value of --query is being divided by whitespace and produces sqoop flag error because it does not recognize these parameters&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;import --connect jdbc:oracle:thin:@server/service --query 'select * from mytable'&lt;/P&gt;&lt;P&gt;The logs show somethng like this:&lt;/P&gt;&lt;PRE&gt;Sqoop command arguments :
             import
             --connect
             jdbc:oracle:thin:@server/service
             --query
             'SELECT
             *
             from
             mytable'&lt;BR /&gt;-------------------------------------------------------------------------------------------------------&lt;BR /&gt;17:48:29.329 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool - Error parsing arguments for import:
17:48:29.329 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument: select
17:48:29.329 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument: *
17:48:29.329 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument: from&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I have tried to scape with single, double quotes, backslash but nothing works.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 00:00:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380574#M244095</guid>
      <dc:creator>Sokka</dc:creator>
      <dc:date>2023-12-09T00:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380621#M244103</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105727"&gt;@Sokka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please try the below syntax. Instead of a single line separate linewise.&lt;/P&gt;&lt;P&gt;import&lt;BR /&gt;--connect&lt;BR /&gt;jdbc:oracle:thin:@server/service&lt;BR /&gt;--query&lt;BR /&gt;'SELECT * from mytable'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paras&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Was your question answered? Make sure to mark the answer as the accepted solution.&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 09:57:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380621#M244103</guid>
      <dc:creator>paras</dc:creator>
      <dc:date>2023-12-11T09:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380623#M244105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105727"&gt;@Sokka&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for raising this. I see the same behavior in the "Sqoop 1" editor, though with some older CDH versions, I haven't tested with the most recent ones, maybe it's already fixed.&lt;/P&gt;&lt;P&gt;In any case, I would not advise to use the "Sqoop 1" editor, it will quickly become insufficient, as it does not provide any advanced configurations. Instead please create an Oozie workflow (Scheduler / Workflow) with a Sqoop action, you have better controls over there.&lt;/P&gt;&lt;P&gt;As I see this problem should have been fixed in later versions, see&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/HUE-6717" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-6717&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 10:10:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380623#M244105</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2023-12-11T10:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380664#M244124</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31607"&gt;@paras&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I tried your suggestion but it didn't work. It returned a similar error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Sqoop command arguments :
             import
--connect
&lt;SPAN&gt;jdbc:oracle:thin:@server/service&lt;/SPAN&gt;
--query
'SELECT
             *
             from
             schema.mytable
             where
             $CONDITIONS'
[..... &amp;lt;&amp;lt;more log&amp;gt;&amp;gt; ........]
Fetching child yarn jobs
tag id : oozie-176af7fc4166c6a2f20a49ccecd8c42109b5ab3fa82786eb191d19f4732d9afa
No child applications found
=================================================================

&amp;lt;&amp;lt;&amp;lt; Invocation of Sqoop command completed &amp;lt;&amp;lt;&amp;lt;

No child hadoop job is executed.
Intercepting System.exit(1)

null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:417)
	at org.apache.oozie.action.hadoop.LauncherAM.access$400(LauncherAM.java:55)
	at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:232)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)
	at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:226)
	at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:156)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1898)
	at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:144)
Caused by: java.lang.SecurityException: Intercepted System.exit(1)
	at org.apache.oozie.action.hadoop.security.LauncherSecurityManager.checkExit(LauncherSecurityManager.java:57)
	at java.lang.Runtime.exit(Runtime.java:101)
	at java.lang.System.exit(System.java:987)
	at org.apache.sqoop.Sqoop.main(Sqoop.java:260)
	at org.apache.oozie.action.hadoop.SqoopMain.runSqoopJob(SqoopMain.java:221)
	at org.apache.oozie.action.hadoop.SqoopMain.run(SqoopMain.java:206)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:135)
	at org.apache.oozie.action.hadoop.SqoopMain.main(SqoopMain.java:52)
	... 16 more&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:36:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380664#M244124</guid>
      <dc:creator>Sokka</dc:creator>
      <dc:date>2023-12-11T17:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380665#M244125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given the issue ticket you mentioned, it should have been solved back in 2017 but we are using Hue™ 4.10.0 with version cdh7.1.8.42 and it still happens in the "Sqoop 1" editor. I tried it from the Oozie workflow and with both modes, "Actions" and "Documents", but it gave the exact same error when it reaches the sqoop action.&lt;BR /&gt;&lt;BR /&gt;Thanks for your response.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 17:42:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380665#M244125</guid>
      <dc:creator>Sokka</dc:creator>
      <dc:date>2023-12-11T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hue and Sqoop white spaces in query</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380671#M244129</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885" target="_blank"&gt;@mszurap&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I had troubles because the Oozie UI does not allow me to create the sqoop action with&amp;nbsp; "command" space in blank, but once created and putting everything in "args" it works!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 19:32:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hue-and-Sqoop-white-spaces-in-query/m-p/380671#M244129</guid>
      <dc:creator>Sokka</dc:creator>
      <dc:date>2023-12-11T19:32:54Z</dc:date>
    </item>
  </channel>
</rss>

