hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mingtao Zhang <mail2ming...@gmail.com>
Subject Re: HBaseTestingUtility startMiniCluster throw exception
Date Sat, 02 Aug 2014 19:05:20 GMT
oh ... does exclude guava and add a old dependency work, like 14.0.1? (I
did this, but I am facing some other problem for now)

I don't think our build envrionment allows me to build hbase from source :(

Mingtao


On Sat, Aug 2, 2014 at 12:00 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> You don't have the fix.
>
> You can apply the patch yourself and rebuild hbase.
>
> Cheers
>
> On Aug 2, 2014, at 11:41 AM, Mingtao Zhang <mail2mingtao@gmail.com> wrote:
>
> > Ted, thank you!
> >
> > I made the change accordingly.
> >
> > I am trying to start zookeeper/hbase cluster only using those (some other
> > codes ommited):
> >
> >        MiniZooKeeperCluster zkCluster = new MiniZooKeeperCluster(conf);
> >        zkCluster.setDefaultClientPort(2555);
> >        zkCluster.setTickTime(18000);
> >        File zkDir = new File(utility.getClusterTestDir().toString());
> >        zkCluster.startup(zkDir);
> >        utility.setZkCluster(zkCluster);
> >        utility.startMiniHBaseCluster(1, 1);
> >
> > I could observe https://issues.apache.org/jira/browse/HBASE-10174
> >
> > I am in a maven environment with 0.94.15, do I have the patch or not?
> >
> >
> > Best Regards,
> > Mingtao
> >
> >
> > On Sat, Aug 2, 2014 at 11:02 AM, Ted Yu <yuzhihong@gmail.com> wrote:
> >
> >> In your config, I see:
> >>    <property>
> >>        <name>hbase.rootdir</name>
> >>        <value>file:///scratch/mingtzha/hbase/test</value>
> >>    </property>
> >>    <property>
> >>        <name>hbase.cluster.distributed</name>
> >>        <value>true</value>
> >>    </property>
> >> The default value for hbase.cluster.distributed is false (for standalone
> >> mode).
> >>
> >> Since your code is for test, you should keep hbase.cluster.distributed
> as
> >> false.
> >>
> >> Cheers
> >>
> >>
> >> On Sat, Aug 2, 2014 at 9:51 AM, Mingtao Zhang <mail2mingtao@gmail.com>
> >> wrote:
> >>
> >>> HI,
> >>>
> >>> I am really stuck with this. Putting the stack trace, java file,
> >> hbase-site
> >>> file and pom file here.
> >>>
> >>> I have 0 knowledge about hadoop and expecting it's transparent for my
> >>> integration test :(.
> >>>
> >>> Thanks in advance!
> >>>
> >>> Best Regards,
> >>> Mingtao
> >>>
> >>> The stack trace:
> >>>
> >>> 09:42:33.191 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> TLD=jar:file:/home/mingtzha/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar!/META-INF/x.tld
> >>> 09:42:33.194 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> TLD=jar:file:/home/mingtzha/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar!/META-INF/c-1_0-rt.tld
> >>> 09:42:33.194 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> resolveEntity(-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN,
> >>> http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd)
> >>> 09:42:33.194 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> Can't
> >>> exact match entity in redirect map, trying web-jsptaglibrary_1_2.dtd
> >>> 09:42:33.195 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> Redirected entity http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
> -->
> >>
> jar:file:/home/mingtzha/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar!/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd
> >>> 09:42:33.200 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> TLD=jar:file:/home/mingtzha/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar!/META-INF/fmt.tld
> >>> 09:42:33.204 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> Container Server@9f51be6 +
> >>> org.mortbay.jetty.servlet.HashSessionIdManager@445e0565 as
> >>> sessionIdManager
> >>> 09:42:33.204 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> Init
> >>> SecureRandom.
> >>> 09:42:33.204 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.HashSessionIdManager@445e0565
> >>> 09:42:33.205 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.HashSessionManager@738f651f
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> filterNameMap={safety=safety, krb5Filter=krb5Filter}
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> pathFilters=[(F=safety,[/*],[],15)]
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletFilterMap=null
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletPathMap={*.XSP=jsp, *.jsp=jsp, /getimage=getimage,
> >>> /cancelDelegationToken=cancelDelegationToken, *.JSPF=jsp, *.jspx=jsp,
> >>> /listPaths/*=listPaths, /conf=conf, *.xsp=jsp, /=default, /fsck=fsck,
> >>> /stacks=stacks, /logLevel=logLevel, *.JSPX=jsp, *.jspf=jsp,
> /data/*=data,
> >>> /contentSummary/*=contentSummary,
> >>> /renewDelegationToken=renewDelegationToken,
> >>> /getDelegationToken=getDelegationToken, /fileChecksum/*=checksum,
> >>> *.JSP=jsp, /jmx=jmx}
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletNameMap={getDelegationToken=getDelegationToken, jsp=jsp,
> jmx=jmx,
> >>> data=data, checksum=checksum, conf=conf, stacks=stacks, fsck=fsck,
> >>> cancelDelegationToken=cancelDelegationToken, listPaths=listPaths,
> >>> default=default, logLevel=logLevel, contentSummary=contentSummary,
> >>> getimage=getimage, renewDelegationToken=renewDelegationToken}
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ServletHandler@3fd5e2ae
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ServletHandler@3fd5e2ae
> >>> 09:42:33.206 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting SecurityHandler@51f35aea
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> SecurityHandler@51f35aea
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting SessionHandler@73152e3f
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> SessionHandler@73152e3f
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting org.mortbay.jetty.webapp.WebAppContext@7cbc11d
> >>
> {/,jar:file:/home/mingtzha/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar!/webapps/hdfs}
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ErrorPageErrorHandler@4b38117e
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ErrorPageErrorHandler@4b38117e
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> loaded
> >>> class
> >>> org.apache.hadoop.security.Krb5AndCertsSslSocketConnector$Krb5SslFilter
> >>> from sun.misc.Launcher$AppClassLoader@23137792
> >>> 09:42:33.207 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class
> >>> org.apache.hadoop.security.Krb5AndCertsSslSocketConnector$Krb5SslFilter
> >>> 09:42:33.208 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> krb5Filter
> >>> 09:42:33.208 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> loaded
> >>> class org.apache.hadoop.http.HttpServer$QuotingInputFilter from
> >>> sun.misc.Launcher$AppClassLoader@23137792
> >>> 09:42:33.208 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.apache.hadoop.http.HttpServer$QuotingInputFilter
> >>> 09:42:33.210 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> safety
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> conf
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> cancelDelegationToken
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> contentSummary
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> checksum
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> data
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> fsck
> >>> 09:42:33.211 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> getDelegationToken
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> getimage
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> listPaths
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> renewDelegationToken
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> stacks
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> jmx
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> logLevel
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> loaded
> >>> class org.apache.jasper.servlet.JspServlet from
> >>> sun.misc.Launcher$AppClassLoader@23137792
> >>> 09:42:33.212 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.apache.jasper.servlet.JspServlet
> >>> 09:42:33.250 [main] [39mDEBUG [0;39m
> >> [1;35mo.a.j.compiler.JspRuntimeContext
> >>> [0;39m - PWC5965: Parent class loader is: ContextLoader@WepAppsContext
> >> ([])
> >>> / sun.misc.Launcher$AppClassLoader@23137792
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m
> >>> [1;35morg.apache.jasper.servlet.JspServlet [0;39m - PWC5964: Scratch
> dir
> >>> for the JSP engine is:
> >>> /tmp/Jetty_localhost_localdomain_1543_hdfs____.om70mh/jsp
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m
> >>> [1;35morg.apache.jasper.servlet.JspServlet [0;39m - PWC5966: IMPORTANT:
> >> Do
> >>> not modify the generated servlets
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> jsp
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> loaded
> >>> class org.mortbay.jetty.servlet.DefaultServlet
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> loaded
> >>> class org.mortbay.jetty.servlet.DefaultServlet from
> >>> sun.misc.Launcher$AppClassLoader@23137792
> >>> 09:42:33.252 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.mortbay.jetty.servlet.DefaultServlet
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.DefaultServlet$NIOResourceCache@576f8821
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.ResourceCache@5b525b5f
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> resource base =
> >>> file:/tmp/Jetty_localhost_localdomain_1543_hdfs____.om70mh/webapp/
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> default
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.webapp.WebAppContext@7cbc11d
> >>
> {/,jar:file:/home/mingtzha/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar!/webapps/hdfs}
> >>> 09:42:33.258 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> Container org.mortbay.jetty.servlet.Context@4e048dc6
> >>
> {/logs,file:/scratch/mingtzha/repository/12.1/branches/12.1.4.0.3/webcentersites/siteanalytics/integration-test/repository-itest/target/test-data/830f8900-2879-4ed0-b011-550620ca032f/hadoop-log-dir}
> >>> + ErrorHandler@7bece8cf as errorHandler
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> filterNameMap={safety=safety}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> pathFilters=[(F=safety,[/*],[],15)]
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletFilterMap=null
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> servletPathMap={/=org.apache.hadoop.http.AdminAuthorizedServlet-1117590713}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> servletNameMap={org.apache.hadoop.http.AdminAuthorizedServlet-1117590713=org.apache.hadoop.http.AdminAuthorizedServlet-1117590713}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ServletHandler@cf7ea2e
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ServletHandler@cf7ea2e
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting org.mortbay.jetty.servlet.Context@4e048dc6
> >>
> {/logs,file:/scratch/mingtzha/repository/12.1/branches/12.1.4.0.3/webcentersites/siteanalytics/integration-test/repository-itest/target/test-data/830f8900-2879-4ed0-b011-550620ca032f/hadoop-log-dir}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ErrorHandler@7bece8cf
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ErrorHandler@7bece8cf
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.apache.hadoop.http.HttpServer$QuotingInputFilter
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> safety
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.apache.hadoop.http.AdminAuthorizedServlet
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.apache.hadoop.http.AdminAuthorizedServlet-1117590713
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.Context@4e048dc6
> >>
> {/logs,file:/scratch/mingtzha/repository/12.1/branches/12.1.4.0.3/webcentersites/siteanalytics/integration-test/repository-itest/target/test-data/830f8900-2879-4ed0-b011-550620ca032f/hadoop-log-dir}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> Container org.mortbay.jetty.servlet.Context@6e4f7806
> >>
> {/static,jar:file:/home/mingtzha/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar!/webapps/static}
> >>> + ErrorHandler@7ea8ad98 as errorHandler
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> filterNameMap={safety=safety}
> >>> 09:42:33.259 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> pathFilters=[(F=safety,[/*],[],15)]
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletFilterMap=null
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> servletPathMap={/*=org.mortbay.jetty.servlet.DefaultServlet-1788226358}
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>
> servletNameMap={org.mortbay.jetty.servlet.DefaultServlet-1788226358=org.mortbay.jetty.servlet.DefaultServlet-1788226358}
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ServletHandler@23510a7e
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ServletHandler@23510a7e
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting org.mortbay.jetty.servlet.Context@6e4f7806
> >>
> {/static,jar:file:/home/mingtzha/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar!/webapps/static}
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ErrorHandler@7ea8ad98
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ErrorHandler@7ea8ad98
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.apache.hadoop.http.HttpServer$QuotingInputFilter
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> safety
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> Holding
> >>> class org.mortbay.jetty.servlet.DefaultServlet
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.DefaultServlet-1788226358
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> org.mortbay.jetty.servlet.Context@6e4f7806
> >>
> {/static,jar:file:/home/mingtzha/.m2/repository/org/apache/hadoop/hadoop-core/1.2.1/hadoop-core-1.2.1.jar!/webapps/static}
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting ContextHandlerCollection@5a4950dd
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> ContextHandlerCollection@5a4950dd
> >>> 09:42:33.260 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >>> starting Server@9f51be6
> >>> 09:42:33.264 [main] [39mDEBUG [0;39m [1;35morg.mortbay.log [0;39m -
> >> started
> >>> or
>

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