Support Questions
Find answers, ask questions, and share your expertise

No cli variables (hiveconf or hivevar) available when running Beeline in embedded mode

No cli variables (hiveconf or hivevar) available when running Beeline in embedded mode

Explorer

If I enter beeline embedded mode with the following command: beeline -u jdbc:hive2:// --hivevar myvar="abc" --hiveconf myconf="xyz"

and then on the beeline prompt I execute: jdbc:hive2://> select ${myvar};

$myvar cannot be accessed (I get an error saying that $myvar doesn't exist). This happens only when connecting in embedded mode.