title: FAILED: Error in metadata: MetaException(message:Got exception: java.net.ConnectException Call to localhost/127.0.0.1:54310 failed
body: <p>I am using Ubuntu 12.04, hadoop-0.23.5, hive-0.9.0. 
  I specified my metastore_db separately to some other place <code>$HIVE_HOME/my_db/metastore_db</code> in hive-site.xml</p>
  
  <p>Hadoop runs fine, <code>jps</code> gives  ResourceManager,NameNode,DataNode,NodeManager,SecondaryNameNode</p>
  
  <p>Hive gets started perfectly,metastore_db &amp; derby.log also created,and all hive commands run successfully,I can create databases,table,etc. But after few day later,when I run <code>show databases</code>,or <code>show tables</code>, get below error</p>
  
  <pre><code>FAILED: Error in metadata: MetaException(message:Got exception:  java.net.ConnectException Call to localhost/127.0.0.1:54310 failed on connection exception: java.net.ConnectException: Connection refused) FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
  </code></pre>