title: how to run hive in debug mode
body: <p>i took example from cloudera website to write a custom SerDe for parsing a file</p>
  
  <p><a href="http://blog.cloudera.com/blog/2012/12/how-to-use-a-serde-in-apache-hive/" rel="noreferrer">http://blog.cloudera.com/blog/2012/12/how-to-use-a-serde-in-apache-hive/</a></p>
  
  <p>it seems a good example but when i create table with custom serde</p>
  
  <pre><code>ADD JAR &lt;path-to-hive-serdes-jar&gt;;
  
  CREATE EXTERNAL TABLE tweets (
    id BIGINT,
    created_at STRING,
    source STRING,
    favorited BOOLEAN,
    retweeted_status STRUCT&lt;
      text:STRING,
      user:STRUCT&lt;screen_name:STRING,name:STRING&gt;,
      retweet_count:INT&gt;,
    entities STRUCT&lt;
      urls:ARRAY&lt;STRUCT&lt;expanded_url:STRING&gt;&gt;,
      user_mentions:ARRAY&lt;STRUCT&lt;screen_name:STRING,name:STRING&gt;&gt;,
      hashtags:ARRAY&lt;STRUCT&lt;text:STRING&gt;&gt;&gt;,
    text STRING,
    user STRUCT&lt;
      screen_name:STRING,
      name:STRING,
      friends_count:INT,
      followers_count:INT,
      statuses_count:INT,
      verified:BOOLEAN,
      utc_offset:INT,
      time_zone:STRING&gt;,
    in_reply_to_screen_name STRING
  ) 
  PARTITIONED BY (datehour INT)
  ROW FORMAT SERDE 'com.cloudera.hive.serde.JSONSerDe'
  LOCATION '/user/flume/tweets';
  </code></pre>
  
  <p>it executed perfectly fine but when i do </p>
  
  <pre><code>select * from tweets;
  </code></pre>
  
  <p>i am getting nothing so thats why i wanted to know if i can run hive in debug mode to see where it is getting failed</p>