hbase-default.xml file seems to be for and old version 异常 博客分类: nosql列存储nosql hbase
程序员文章站
2024-03-23 18:55:10
...
在应用java调用hbase的时候报异常:
java.lang.RuntimeException: hbase-default.xml file seems to be for and old version of HBase (null), this version is 0.90.1-CDH3B4
at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66)
at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:76)
at org.apache.hadoop.hbase.HBaseConfiguration.<init>(HBaseConfiguration.java:44)
这个原因是在java的工程目录下有hbase-default.xml这个文件。
删除后正常应用