1、运行错误如下
Exception in thread "main" java.lang.RuntimeException: org.apache.thrift7.transport.TTransportException: java.net.UnknownHostException: jdtest004
at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:38) at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:87) at backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:58) at com.edu.storm.KafkaStormHBaseTopology.main(KafkaStormHBaseTopology.java:52)Caused by: org.apache.thrift7.transport.TTransportException: java.net.UnknownHostException: jdtest004 at org.apache.thrift7.transport.TSocket.open(TSocket.java:183) at org.apache.thrift7.transport.TFramedTransport.open(TFramedTransport.java:81) at backtype.storm.security.auth.SimpleTransportPlugin.connect(SimpleTransportPlugin.java:83) at backtype.storm.security.auth.ThriftClient.<init>(ThriftClient.java:63) at backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:47) at backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:43) at backtype.storm.utils.NimbusClient.getConfiguredClient(NimbusClient.java:36) ... 3 moreCaused by: java.net.UnknownHostException: jdtest004 at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.thrift7.transport.TSocket.open(TSocket.java:178) ... 9 more
极有可能是jar包太大,超出设定的nimbus分发缓存大小,修改配置改变缓存大小即可