title: Just get column names from hive table
body: <p>I know that you can get column names from a table via the following trick in hive: </p>
  
  <pre><code>hive&gt; set hive.cli.print.header=true;
  hive&gt; select * from tablename;
  </code></pre>
  
  <p>Is it also possible to <strong>just</strong> get the column names from the table? </p>
  
  <p>I dislike having to change a setting for something I only need once. </p>
  
  <p>My current solution is the following: </p>
  
  <pre><code>hive&gt; set hive.cli.print.header=true;
  hive&gt; select * from tablename;
  hive&gt; set hive.cli.print.header=false;
  </code></pre>
  
  <p>This seems too verbose and against the DRY-principle. </p>