<?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>topic Re: Define query in talend context using tSystem component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378208#M140019</link>
    <description>&lt;P&gt;You don't use the context variable in a string correctly, try this expression:&lt;/P&gt;&lt;P&gt;"impala-shell -i context.hostname -d context.database -k --ssl -q 'COMPUTE STATS "+context.tablename+"';"&lt;/P&gt;</description>
    <pubDate>Mon, 21 Feb 2022 07:28:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-21T07:28:07Z</dc:date>
    <item>
      <title>Define query in talend context using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378207#M140018</link>
      <description>&lt;P&gt;I am trying to run an impala command using the tSystem component in Talend Studio. I am able to run the command in terminal .&amp;nbsp;&lt;/P&gt;&lt;P&gt;impala-shell -i hostname:21000 -d default -k --ssl -q "COMPUTE STATS DEFAULT.TABLENAME;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to apply the same command in tSystem component. so, the command in TOS will be appied by this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Talend context:&lt;/P&gt;&lt;P&gt;hostname = hostname:21000&lt;/P&gt;&lt;P&gt;database = default&amp;nbsp;&lt;/P&gt;&lt;P&gt;tablename = default.tablename&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Impala command I defined in tSystem component:&lt;/P&gt;&lt;P&gt;"impala-shell -i context.hostname -d context.database -k --ssl -q "COMPUTE STATS context.tablename;""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I got an error for this line -&amp;gt; `-q "COMPUTE STATS context.tablename;"`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000OC2zLAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156927i86F82104CA58CBA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000OC2zLAAT.png" alt="0695b00000OC2zLAAT.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any ways I could use the string query in my impala command using tSystem component in TOS? Appreciate any helps. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378207#M140018</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2024-11-15T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Define query in talend context using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378208#M140019</link>
      <description>&lt;P&gt;You don't use the context variable in a string correctly, try this expression:&lt;/P&gt;&lt;P&gt;"impala-shell -i context.hostname -d context.database -k --ssl -q 'COMPUTE STATS "+context.tablename+"';"&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 07:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378208#M140019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-21T07:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define query in talend context using tSystem component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378209#M140020</link>
      <description>&lt;P&gt;Hi Shong, I received following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Query: 'COMPUTE STATS tablename;'&lt;/P&gt;&lt;P&gt;Query submitted at: 2022-02-21 16:05:17 (Coordinator: https://hostname:25000)&lt;/P&gt;&lt;P&gt;ERROR: ParseException: Syntax error in line 1:&lt;/P&gt;&lt;P&gt;'COMPUTE STATS tablename;'&lt;/P&gt;&lt;P&gt;^&lt;/P&gt;&lt;P&gt;Encountered: STRING LITERAL&lt;/P&gt;&lt;P&gt;Expected: ALTER, COMMENT, COMPUTE, COPY, CREATE, DELETE, DESCRIBE, DROP, EXPLAIN, GRANT, INSERT, INVALIDATE, LOAD, REFRESH, REVOKE, SELECT, SET, SHOW, TRUNCATE, UPDATE, UPSERT, USE, VALUES, WITH&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CAUSED BY: Exception: Syntax error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could not execute command: 'COMPUTE STATS tablename;'&lt;/P&gt;</description>
      <pubDate>Mon, 21 Feb 2022 08:08:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Define-query-in-talend-context-using-tSystem-component/m-p/2378209#M140020</guid>
      <dc:creator>WSyahirah21</dc:creator>
      <dc:date>2022-02-21T08:08:48Z</dc:date>
    </item>
  </channel>
</rss>

