<?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: Can --hivevar be used in beeline with impala scripts ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25765#M5317</link>
    <description>&lt;P&gt;Thanks. Actually based on that very same paragraph I ended up integrating jinja2 in my pipeline and have now a very nice framework for generating dynamic workflows and make parameters available anywhere &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;</description>
    <pubDate>Sat, 21 Mar 2015 00:29:50 GMT</pubDate>
    <dc:creator>balta</dc:creator>
    <dc:date>2015-03-21T00:29:50Z</dc:date>
    <item>
      <title>Can --hivevar be used in beeline with impala scripts ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25590#M5315</link>
      <description>&lt;P&gt;I can't get parameter substitution to work on my impala sql script even when I have it being passed through beeline (using it via hive2 action on oozie):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Script [customs_jp.sql] content: 
------------------------
--
--
--
...
CREATE TABLE customers LIKE PARQUET '${INPUT}/_metadata' STORED AS PARQUET;
..&lt;BR /&gt;------------------------

Parameters:
------------------------
  INPUT=/user/etl/transfer/customers/output1
------------------------

Beeline command arguments :
             -u
             jdbc:impala://localhost:21050/;auth=noSasl
             -n
             etl
             -p
             DUMMY
             -d
             org.apache.hive.jdbc.HiveDriver
             --hivevar
             INPUT=/user/etl/transfer/customers/output1
             -f
             customers.sql
             -a
             delegationToken

=================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;on stderr:&lt;/P&gt;&lt;PRE&gt;Connected to: Impala (version 2.1.2-cdh5)
Driver: ImpalaJDBC (version 02.05.05.1007)
Error: [Simba][JDBC](11975) Unsupported transaction isolation level: 4. (state=HY000,code=11975)
No rows affected (0.145 seconds)
No rows affected (0.009 seconds)
No rows affected (0.043 seconds)
Error: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, errorMessage:AnalysisException: URI path must be absolute: ${INPUT}/_metadata), Query: CREATE TABLE customsers LIKE PARQUET '${INPUT}/_metadata' STORED AS PARQUET. (state=HY000,code=500051)&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;i.e. ${INPUT} is not being expanded.... (also tried ${hivevar:INPUT} without success...);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see this bug here which seems related&amp;nbsp;&lt;A target="_blank" href="https://issues.cloudera.org/browse/IMPALA-1067"&gt;https://issues.cloudera.org/browse/IMPALA-1067&lt;/A&gt; &amp;nbsp;, but discusses impala-shell rather than beeline....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:24:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25590#M5315</guid>
      <dc:creator>balta</dc:creator>
      <dc:date>2022-09-16T09:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can --hivevar be used in beeline with impala scripts ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25762#M5316</link>
      <description>&lt;P&gt;I'm afraid Impala currently does not support variable substitution. One possible workaround is described here:&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://www.safaribooksonline.com/library/view/getting-started-with/9781491905760/ch04.html"&gt;https://www.safaribooksonline.com/library/view/getting-started-with/9781491905760/ch04.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Search for "Variable Substitution"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2015 23:56:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25762#M5316</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2015-03-20T23:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can --hivevar be used in beeline with impala scripts ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25765#M5317</link>
      <description>&lt;P&gt;Thanks. Actually based on that very same paragraph I ended up integrating jinja2 in my pipeline and have now a very nice framework for generating dynamic workflows and make parameters available anywhere &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks once again.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2015 00:29:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-hivevar-be-used-in-beeline-with-impala-scripts/m-p/25765#M5317</guid>
      <dc:creator>balta</dc:creator>
      <dc:date>2015-03-21T00:29:50Z</dc:date>
    </item>
  </channel>
</rss>

