I have a shell script file which I parse both numeric and string variables. An example below:
Shell Script
hive --hiveconf time_1=34600 --hiveconf time_2=34588 --hiveconf message="hello_world" -f mytask.hql
Also I have a Hive query in the respective file 'mytask.hql' as follows:
HiveQL file
SELECT col1, col2, ${hiveconf:message} AS myMessage
FROM table1
WHERE trtime between ${hiveconf:time_1} and ${hiveconf:time_2};
The problem is that I want to have a column that contains the message "Hello world" or whatever the external - from Unix Shell Script - variable contains, in every line, but I got the following error:
[Error 10004]: Line xxx Invalid table alias or column reference 'hello_world': (possible column names are: col1, col2 ... (Etc.)
The output that I want to have is something like this:

hivevarinstead ofhiveconfin the shell and call as${message}in the scriptDESC table1?