hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject accessing table regions through unit test
Date Thu, 28 Jul 2011 02:59:19 GMT
Hi:

> I am trying to find way of accessing table regions through unit test
>

I want to know how to prepopulate table regions under rootdir in unit test:

>
> -    Path path = new Path("/hbase/table/" + encodedName);
> +    Path path = new Path(rootdir, "hbase/" + region.getTableNameAsString()
> + "/" + encodedName);
>      FileStatus status = fs.getFileStatus(path);
>


> Does someone have clue ?
>
> Thanks
>

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