Hadoop 2.4.0 breaks the build

237 views
Skip to first unread message

tcardo

unread,
Jun 23, 2014, 12:03:23 PM6/23/14
to camu...@googlegroups.com
Hi,

I tried to compile Camus with Hadoop 2.4.0 but the test TestAvroRestSchemaRegistry failed:

+- o.e.j.s.ServletContextHandler{/schema-repo,null} - STOPPED
| +- null
|
|
+- SelectChannelConnector@localhost:8123 - STOPPED
+- null/null - STOPPED
+- org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@3a98350a - STOPPED
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.41 sec <<< FAILURE!
testSchemaRegistry[0](com.linkedin.camus.schemaregistry.TestAvroRestSchemaRegistry) Time elapsed: 0.704 sec <<< ERROR!
com.sun.jersey.api.container.ContainerException: No WebApplication provider is present
at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:69)
at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:392)
at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:307)
at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:607)
at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:210)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:374)
at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:557)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at com.google.inject.servlet.ServletDefinition.init(ServletDefinition.java:117)
at com.google.inject.servlet.ManagedServletPipeline.init(ManagedServletPipeline.java:82)
at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:102)
at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172)
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:119)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:724)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:265)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
at org.eclipse.jetty.server.Server.doStart(Server.java:277)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.apache.avro.repo.server.RepositoryServer.start(RepositoryServer.java:106)
at com.linkedin.camus.schemaregistry.TestAvroRestSchemaRegistry.doSetup(TestAvroRestSchemaRegistry.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)


Results :

Tests in error:
testSchemaRegistry[0](com.linkedin.camus.schemaregistry.TestAvroRestSchemaRegistry): No WebApplication provider is present

Everything was working fine with Hadoop 2.2.0

Andrew Ehrlich

unread,
Aug 29, 2014, 1:11:22 AM8/29/14
to camu...@googlegroups.com, thiba...@gmail.com
Yes, I see this problem as well. Did you (or anyone) find out what this was?

tcardo

unread,
Sep 16, 2014, 9:44:20 AM9/16/14
to camu...@googlegroups.com, thiba...@gmail.com
Definitely not the solution of the problem but you can do:
mvn clean package -Dmaven.test.skip=true
:)

swpa...@gmail.com

unread,
Oct 30, 2014, 10:36:00 PM10/30/14
to camu...@googlegroups.com, thiba...@gmail.com
2014년 9월 16일 화요일 오후 10시 44분 20초 UTC+9, tcardo 님의 말:
> Definitely not the solution of the problem but you can do:
> mvn clean package -Dmaven.test.skip=true
> :)

I tried
mvn clean package -Dmaven.test.skip=true

But, build failed.
[ERROR] Failed to execute goal on project camus-schema-registry-avro: Could not resolve dependencies for project com.linkedin.camus:camus-schema-registry-avro:jar:0.1.0-SNAPSHOT: Could not find artifact com.linkedin.camus:camus-schema-registry:jar:tests:0.1.0-SNAPSHOT in apache-releases (https://repository.apache.org/content/groups/public) -> [Help 1]

Sangwook Park

unread,
Nov 3, 2014, 10:39:10 PM11/3/14
to camu...@googlegroups.com, thiba...@gmail.com
I fixed it.

add the followings to "pom.xml"

                        <dependency>

                                <groupId>com.google.inject</groupId>

                                <artifactId>guice</artifactId>

                                <version>3.0</version>

                        </dependency>

                        <dependency>

                                <groupId>com.sun.jersey.contribs</groupId>

                                <artifactId>jersey-guice</artifactId>

                                <version>1.9</version>

                        </dependency>

                        <dependency>

                                <groupId>com.google.inject.extensions</groupId>

                                <artifactId>guice-servlet</artifactId>

                                <version>3.0</version>

                        </dependency>

and to "camus-schema-registry-avro/pom.xml"

    <dependency>

<groupId>com.google.inject</groupId>

<artifactId>guice</artifactId>

    </dependency>

    <dependency>

<groupId>com.sun.jersey.contribs</groupId>

<artifactId>jersey-guice</artifactId>

    </dependency>

    <dependency>

<groupId>com.google.inject.extensions</groupId>

<artifactId>guice-servlet</artifactId>

    </dependency>

  </dependencies>

And then, 

mvn clean package.

I'm using Hadoop 2.4.1.


2014년 10월 31일 금요일 오전 11시 36분 0초 UTC+9, Sangwook Park 님의 말:
Reply all
Reply to author
Forward
0 new messages