- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to set variables in Impala scripts
- Labels:
-
Apache Hive
-
Apache Impala
Created on ‎01-14-2014 02:02 PM - edited ‎09-16-2022 01:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm testing some queries in Hive, and now I would like to do the same in Impala, but I don't find the way to set variables for the scripts.
For example, for Hive I do:
hive -hiveconf DATE=1948 -f query.sql
How can I do something similar with Impala? The idea is to use the same query file.
I'm using CDH4.4.0 with Impala 1.1.1.
Thanks
Created ‎02-24-2014 04:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's not currently an impala-shell option to do such substitution. Would you mind opening a JIRA with that request at issues.cloudera.org?
Thanks,
John
Created on ‎05-22-2015 12:29 AM - edited ‎05-22-2015 12:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please check the JIRA raised for the above request "How to set variable in Impala Scripts"
Created ‎09-29-2016 02:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
https://issues.cloudera.org/browse/IMPALA-2023 is fixed in Impala Shell v2.2
i am using Impala Shell v2.3.0
any one know how to declare and set value to variable in script.
Thanks in advance
