查看日志 发现是Exception in thread "main" java.lang.reflect.InvocationTargetException 然后后面还有fail on connection
这个大概是接口防火墙错误了 我检查之后 端口没有被占用 ,防火墙也关闭了 那怎么回事呢?
后来才发现,因为我配置historyserver的存储目录是hdfs://root:8020 /xxxx 而我的hadoop的core-site.xml的defaultFS配置的是9000,因为两个存储端口不匹配造成的问题 改成相同的就ok了