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出来了。


原因 :还不知道。

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

原文地址:https://www.cnblogs.com/jiangu66/p/3162797.html