我在程序中加入下面的代码,运行成功了。有时间再看下用配置文件的为什么失败。 Configuration configuration = new Configuration(); configuration.set("hbase.zookeeper.quorum","192.168.25.198"); configuration.set("hbase.zookeeper.property.clientPort", "2181"); configuration.set("hbase.master", "192.168.25.198s:60000"); |