title: passing parameter with hive -e option
body: <p>How can I pass parameter/variable with <code>hive -e</code> option.</p>
  
  <p>I want to run the following command: <code>hive -e 'msck repair table $dbname.table1'</code> and it is failing as it is unable to read the variable.</p>
  
  <p>What is the way around. I am writing it in a script.</p>