Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: change single-dash hiveconf to double-dash per discussion in dev@hive "--hiveconf vs -hiveconf" March 7-8, 2014

...

Hive Variables combine the set capability you know and love with some limited yet powerful (evil laugh) substitution ability. For example:

Code Block
$ bin/hive --hiveconf a=b -e 'set a; set hiveconf:a; \
create table if not exists b (col int); describe ${hiveconf:a}'

...