java.sql.SQLException: Could not open client transport for any of the Server URI's in ZooKeeper: java.net.UnknownHostException: hadoop-03
at org.apache.hive.jdbc.HiveConnection.(HiveConnection.java:333)
at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at com.zctt.bigdata.test.JdbcHive.main(JdbcHive.java:23)
Caused by: org.apache.hive.org.apache.thrift.transport.TTransportException: java.net.UnknownHostException: hadoop-03
at org.apache.hive.org.apache.thrift.transport.TSocket.open(TSocket.java:226)
at org.apache.hive.org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:266)
at org.apache.hive.org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:420)
at org.apache.hive.jdbc.HiveConnection.(HiveConnection.java:301)
... 4 more
Caused by: java.net.UnknownHostException: hadoop-03
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.hive.org.apache.thrift.transport.TSocket.open(TSocket.java:221)
... 8 more