Wednesday, 15 April 2015

hadoop - Making Hive substitution variables avialable for all the sessions.? -


If I have a replacement variable available for all hive sessions in the environment / database, that will be the best file set in it Do you? Is there any possibility to define my own config file and define variables and it is available for all queries?

Do I do it on the hive site? Can I do without using xml and hive-default.xm?

Regards, Nish

attempting to set its variable in .hverc file Please.

You can add a configuration or .hverc file and any custom variable in the hive will load this file on the launch of the shell.

For example: ' Set tablename = test ;' In the .hverc file you can select it from '$ {hiveconf: tableName}' in the hive shell, select '


No comments:

Post a Comment