- 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 display Hive variable values in logging?
- Labels:
-
Apache Hive
Created ‎07-11-2017 10:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suppose I have a Hive query like this:
insert into table my_table
select 1, ${hiveconf:my_variable}
from some_other_table;
Is there a config setting so that the value of "my_variable" will be displayed in the logging or in the verbose output of the query?
All I ever see is "${hiveconf:my_variable}".
Thanks!
Created ‎07-11-2017 03:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I know there is no such config property. You may have to write additional lines in your hive script to view the values/redirect them to a separate file.
You can view the value using
select ${hiveconf.my_variable};
To see values of all the variables you may use
set -v
Created ‎07-11-2017 03:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As far as I know there is no such config property. You may have to write additional lines in your hive script to view the values/redirect them to a separate file.
You can view the value using
select ${hiveconf.my_variable};
To see values of all the variables you may use
set -v
