title: Spark tries to connect to localhost instead of configured servers
body: <p>This error information shows up:</p>
  
  <blockquote>
    <p>Error in query: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: java.net.ConnectException Call From undefined.hostname.localhost/192.168.xx.xxx to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  <a href="http://wiki.apache.org/hadoop/ConnectionRefused" rel="nofollow noreferrer">http://wiki.apache.org/hadoop/ConnectionRefused</a>);</p>
  </blockquote>
  
  <p>I don't understand why I will visit the localhost:9000, the host in my core-site.xml is hdfs://192.168.xx.xx:9000, why did I visit localhost:9000<br>
  Is it the default host?</p>