Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How to display Hive variable values in logging?

avatar
Super Collaborator

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!

1 ACCEPTED SOLUTION

avatar

@Zack Riesland

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

View solution in original post

1 REPLY 1

avatar

@Zack Riesland

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