You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Demai Ni <ni...@gmail.com> on 2018/04/21 01:01:30 UTC
easy solution for HMaster: java.lang.StringIndexOutOfBoundsException
problem ?
hi, folks,
I am trying to setup HBase on Mac. And hit this problem, which is
discussed hbase-12081 and HADOOP-14586.
My mac is on JAVA10 already. I tried both HBase1.2x(through homebrew) and
1.3.2, and hit the same problem. wondering whether there is an easy bypass
without downgrading the java version?
Thanks
Demai
the error log is:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows(GenericOptionsParser.java:432)
at
org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:478)
at
org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)
at
org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)
at
org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2622)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3,
length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
at java.base/java.lang.String.substring(String.java:1873)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:49)
... 7 more
Re: easy solution for HMaster: java.lang.StringIndexOutOfBoundsException
problem ?
Posted by Demai Ni <ni...@gmail.com>.
Sean, thanks. Guess I have to downgrade java for now. Appreciate it.
On Fri, Apr 20, 2018 at 7:02 PM, Sean Busbey <bu...@apache.org> wrote:
> Unfortunately, the latest JVM we support running on is Java 8. here's
> the relevant section in the ref guide:
>
> http://hbase.apache.org/book.html#java
>
> If you're interested in working through getting a later Java version
> to work please join the dev@hbase list for discussion.
>
> On Fri, Apr 20, 2018 at 8:01 PM, Demai Ni <ni...@gmail.com> wrote:
> > hi, folks,
> >
> > I am trying to setup HBase on Mac. And hit this problem, which is
> > discussed hbase-12081 and HADOOP-14586.
> >
> > My mac is on JAVA10 already. I tried both HBase1.2x(through homebrew) and
> > 1.3.2, and hit the same problem. wondering whether there is an easy
> bypass
> > without downgrading the java version?
> >
> > Thanks
> >
> > Demai
> >
> > the error log is:
> >
> > Exception in thread "main" java.lang.ExceptionInInitializerError
> > at
> > org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows(
> GenericOptionsParser.java:432)
> > at
> > org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(
> GenericOptionsParser.java:478)
> > at
> > org.apache.hadoop.util.GenericOptionsParser.<init>(
> GenericOptionsParser.java:170)
> > at
> > org.apache.hadoop.util.GenericOptionsParser.<init>(
> GenericOptionsParser.java:153)
> > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)
> > at
> > org.apache.hadoop.hbase.util.ServerCommandLine.doMain(
> ServerCommandLine.java:126)
> > at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2622)
> > Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3,
> > length 2
> > at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
> > at java.base/java.lang.String.substring(String.java:1873)
> > at org.apache.hadoop.util.Shell.<clinit>(Shell.java:49)
> > ... 7 more
>
Re: easy solution for HMaster: java.lang.StringIndexOutOfBoundsException
problem ?
Posted by Sean Busbey <bu...@apache.org>.
Unfortunately, the latest JVM we support running on is Java 8. here's
the relevant section in the ref guide:
http://hbase.apache.org/book.html#java
If you're interested in working through getting a later Java version
to work please join the dev@hbase list for discussion.
On Fri, Apr 20, 2018 at 8:01 PM, Demai Ni <ni...@gmail.com> wrote:
> hi, folks,
>
> I am trying to setup HBase on Mac. And hit this problem, which is
> discussed hbase-12081 and HADOOP-14586.
>
> My mac is on JAVA10 already. I tried both HBase1.2x(through homebrew) and
> 1.3.2, and hit the same problem. wondering whether there is an easy bypass
> without downgrading the java version?
>
> Thanks
>
> Demai
>
> the error log is:
>
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at
> org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows(GenericOptionsParser.java:432)
> at
> org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:478)
> at
> org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)
> at
> org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:64)
> at
> org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:126)
> at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2622)
> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3,
> length 2
> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3107)
> at java.base/java.lang.String.substring(String.java:1873)
> at org.apache.hadoop.util.Shell.<clinit>(Shell.java:49)
> ... 7 more