hiveql - Hive: passing parameters -


@libjack:

hi,

i wanted pass parameters hql ksh script. went through apache hive using variables document. below worked fine set values inside hql:

set hivevar:parm1=valu1; create schema if not exists ${parm1}; 

but wanted pass parameters while invoking hive inside ksh. have variables , value in file below:

--hiveconf: set hivevar:parm1=valu1;  --inside .ksh: hive --hivevar "'cat ${hiveconf}`" -f hivescript.hql  --hivescript.hql: create schema if not exists ${parm1}; 

this fails. tried hiveconf well. how pass variable hql? possible pass file?

thanks.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -