title: using hive got exception java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
body: <p>after configuring hadoop 
  I could run hdfs</p>
  
  <p>then install hive and edit the conf file to make it run on tez by default,
  but running into some special issue when using hive directly:</p>
  
  <p>hive</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tez/dag/api/SessionNotRunning
          at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:353)
          at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
          at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
  </code></pre>
  
  <p>Version Info:
  hadoop: 2.5
  hive 0.13
  tez 0.41</p>
  
  <p>anyone met this before?</p>
  
  <p>seems not like a PATH related error.</p>