zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    form表单的应用
    HTML列表及表格的基本应用
    Linux上安装Jdk
    docker+jenkins自动发布步骤及命令
    redis集群部署实战
    mySQL中连接字符串
    mysql触发器
    sql 设置数字长度 不足时补0
    微服务架构特性
    SQLServer2008 去除换行符
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3162797.html
Copyright © 2011-2022 走看看