hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: RegionSplitter exception: wrong fs
Date Fri, 17 Jun 2011 15:27:33 GMT
What happens if you add to your hbase-site a config which sets the key
"fs.default.name" (and "fs.defaultFS") to the value you have for
hbase.rootdir (I presume its hdfs://cas01:54310/hbase/).

The script thinks local filesystem is its filesystem when it should be hdfs.

In scripts in bin, before we do anything, we'll do the above setting
to avoid getting exceptions like the below.

St.Ack

On Fri, Jun 17, 2011 at 3:45 AM, Sheng Chen <chensheng2010@gmail.com> wrote:
> I tried to use RegionSplitter to rolling split an existing region,
>>> bin/hbase org.apache.hadoop.hbase.util.RegionSplitter -r -o 2 usertable
>
> The following exception is shown,
> Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS:
> hdfs://cas01:54310/hbase/usertable/_balancedSplit, expected: file:///
>        at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310)
>        at
> org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:47)
>        at
> org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:357)
>        at
> org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:245)
>        at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:648)
>        at
> org.apache.hadoop.hbase.util.RegionSplitter.getSplits(RegionSplitter.java:612)
>        at
> org.apache.hadoop.hbase.util.RegionSplitter.rollingSplit(RegionSplitter.java:362)
>        at
> org.apache.hadoop.hbase.util.RegionSplitter.main(RegionSplitter.java:291)
>
>
> My hbase cluster is running well, and RegionSplitter with -c option is ok.
> hbase/conf dir is added to HBASE_CONF_DIR as well as CLASSPATH.
> Did I miss anything?  Thanks for any advice.
>
>
> Sean
>

Mime
View raw message