title: HBase ERROR: hbase-default.xml file seems to be for and old version of HBase (null)
body: <p>I am trying to write a program to connect to HBase. However when I execute following command 
  HBaseConfiguration.create(); I get following error: .</p>
  
  <p>"hbase-default.xml file seems to be for and old version of HBase (null), this version is 0.92.1-cdh4.1.2.
  When I dig deep and debug inside observe following:</p>
  
  <pre><code>    class HBaseConfiguration
          private static void checkDefaultsVersion(Configuration conf) {
              if (conf.getBoolean("hbase.defaults.for.version.skip", Boolean.FALSE))return;                                                                                                 
              String defaultsVersion = conf.get("hbase.defaults.for.version");
              String thisVersion = VersionInfo.getVersion();
              if (!thisVersion.equals(defaultsVersion)) {
                      throw new RuntimeException(
                      "hbase-default.xml file seems to be for and old version of HBase (" +
                          defaultsVersion + "), this version is " + thisVersion);
              }
          }
  </code></pre>
  
  <p>In my case HBase returns default version as null, I am not sure why its returning as null as I checked the corresponding entry in hbase-default.xml packaged with the HBase.jar it has correct entry.</p>
  
  <p>When I try the same thing from a standalone program it works as expected.</p>
  
  <p>Guyz, Please let me know if you have any questions.</p>
  
  <p>Thanks in advance,
  Rohit</p>