hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mac fang <mac.had...@gmail.com>
Subject One issue in HMaster Bootstrap when run HBase 0.20.6 on Hadoop 0.21
Date Fri, 07 Jan 2011 03:12:40 GMT
Hi, guys,

I am trying to make the HBase 0.20.6 running on Hadoop 0.21, besides the
issues which are caused by the Version differs, I also found one issue:

There is NO "info" folder in the -ROOT- directory on Hadoop.
/hbase_changes_026_021_mac_1/-ROOT-/70236052

I checked the code, and found there have some differs:

1. In Store (HBase 0.20.3)

    this.homedir = getStoreHomedir(basedir, info.getEncodedName(),
      family.getName());
    this.region = region;
    this.family = family;
    this.fs = fs;
    this.conf = conf;
    this.blockcache = family.isBlockCacheEnabled();
    this.blocksize = family.getBlocksize();
    this.compression = family.getCompression();
    this.comparator = info.getComparator();
    this.comparatorIgnoringType =
this.comparator.getComparatorIgnoringType();
    ##########################################################
    if (null!=this.homedir && !this.fs.exists(this.homedir)) {
        if (!this.fs.mkdirs(this.homedir))
          throw new IOException("Failed create of: " +
this.homedir.toString());
      }
     ##########################################################


 But in Storre.java (0.20.6)

there is NO

    if (null!=this.homedir && !this.fs.exists(this.homedir)) {
        if (!this.fs.mkdirs(this.homedir))
          throw new IOException("Failed create of: " +
this.homedir.toString());
      }

Can anyone help me to check out why there has some changes? Since I am
confused, i only change the Hadoop Version, but this code differs is NOT
about Hadoop, it is a change in HBase.


Thanks in Advance.

Regards
macf

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message