Hive Variable Substitution ne fonctionne pas à partir de la commande hive -e

J’essaie d’utiliser la variable Hive.

Si je me connecte à Hive et utilise:

hive > set a=test_table; hive > describe ${hiveconf:a}; 

Mais Même commande si essayer de Shell, il donne: Erreur d’parsing 1: 1 ne peut pas reconnaître l’entrée près de …

 $> hive -e "set a=test_table; describe ${hiveconf:a};" Parse Error 1:1 cannot recognize input near  

 Parameter Expansion The `$' character introduces parameter expansion, command substitution, or arithmetic expansion. The parameter name or symbol to be expanded may be enclosed in braces, which are optional but serve to protect the variable to be expanded from characters immediately following it which could be interpreted as part of the name. When braces are used, the matching ending brace is the first `}' not escaped by a backslash or within a quoted ssortingng, and not within an embedded arithmetic expansion, command substitution, or parameter expansion. ${parameter} The value of parameter is substituted. The braces are required when parameter is a positional parameter with more than one digit, or when parameter is followed by a character which is not to be interpreted as part of its name. 

so : hive -e 'set a=test_table; desc ${hiveconf:a};' hive -e 'set a=test_table; desc ${hiveconf:a};'

vous devez coder comme ci-dessous.

  >a=test_table >hive -e "describe $a" 

Vérifier le manuel de langue