hbase-default.xml file seems to be for an older version of HBase ,this version is 1.2.0


habase编程过程中遇到如下错误

 

Caused by: java.lang.RuntimeException: hbase-default.xml file seems to be for an older version of HBase (@@@VERSION@@@), this version is 1.2.0
	at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:71)
	at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
	at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
	at com.java.hbase.HBaseLearn.(HBaseLearn.java:18)


 

解决办法

在hbase-site.xml文件中添加如下内容

  
    hbase.defaults.for.version.skip
    true
  

既:跳过版本检查

 

你可能感兴趣的:(hbase)