阅读880 返回首页    go 阿里云 go 技术社区[云栖]


java.lang.IllegalArgumentException: Wrong FS ...异常的解决

配置完Hbase后,启动,JPS发现少了HMaster这个进程。查看了一下日志如下:
java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.0.131:9000/hbase, expected: hdfs://icache-9200.site:9000
	at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310)
	at org.apache.hadoop.hdfs.DistributedFileSystem.checkPath(DistributedFileSystem.java:99)
	at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedFileSystem.java:155)
	at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:453)
	at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:648)
	at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:204)
	at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:94)
	at org.apache.hadoop.hbase.LocalHBaseCluster.<init>(LocalHBaseCluster.java:78)
	at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1229)
	at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1274)


hbase-site.xml配置:

<value>hdfs://129.42.13.118:9000/hbase</value>

把上面的ip改成相应的名称就行:

<value>hdfs://namenode:9000/hbase</value>

再次启动,HMaster出来了。


原因 :还不知道。

参照:https://lxiaodao.iteye.com/blog/861006

最后更新:2017-04-03 16:59:46

  上一篇:go android uri规则及使用实例
  下一篇:go eclipse package,source folder,folder区别及相互转换