Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build schema registry #183

Closed
JohnOmernik opened this issue May 26, 2015 · 20 comments
Closed

Can't build schema registry #183

JohnOmernik opened this issue May 26, 2015 · 20 comments
Assignees
Labels

Comments

@JohnOmernik
Copy link

I am trying to build schema registry. It says build rest-utils and common first (I did that) and now when I am building schema-registry I get this:

[ERROR] Failed to execute goal on project kafka-avro-serializer: Could not resolve dependencies for project io.confluent:kafka-avro-serializer:jar:2.0-SNAPSHOT: Failure to find org.apache.kafka:kafka_2.10:jar:0.8.2.0-cp in http://packages.confluent.io/maven/ was cached in the local repository, resolution will not be reattempted until the update interval of confluent has elapsed or updates are forced -> [Help 1]
[ERROR]

Perhaps different instructions on building?

Thanks

@ewencp
Copy link
Contributor

ewencp commented May 26, 2015

The dependency it is complaining about is Kafka, not rest-utils or common, so it sounds like those probably installed successfully. It looks like it cached a failure to find the jar, but that jar definitely exists in the maven repository.

Can you try running the maven command again and add the -U flag to disable caching so it'll try checking for it in the repository again?

@JohnOmernik
Copy link
Author

Same error with mvn -U compile.

Note, I didn't install the Confluent Kafka package, I am trying to run schema registry and rest api using mesos on Kafka, therefore I've built my own Kafka, the docs doesn't say it's reliant on that package, and the command rest-util both built successfully.

@ewencp
Copy link
Contributor

ewencp commented May 26, 2015

Right, we don't expect you to have built Kafka yourself. Neither common nor rest-utils use Kafka, so they wouldn't run into the same error.

The relevant dependency is in core/pom.xml and avro-serializer/pom.xml:

        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka_${kafka.scala.version}</artifactId>
            <version>${kafka.version}</version>
        </dependency>

This uses a couple of properties defined in the root pom.xml:

<kafka.version>0.8.2.0-cp</kafka.version>
<kafka.scala.version>2.10</kafka.scala.version>

And that same file includes the necessary repository:

    <repositories>
        <repository>
            <id>confluent</id>
            <name>Confluent</name>
            <url>http://packages.confluent.io/maven/</url>
        </repository>
    </repositories>

I just removed all the data from my local maven repository and built again, and I see it correctly pulling in the dependency:

Downloaded: http://packages.confluent.io/maven/org/apache/kafka/kafka_2.10/0.8.2.0-cp/kafka_2.10-0.8.2.0-cp.jar (3898 KB at 1130.8 KB/sec)

Maybe there's a connectivity issue with packages.confluent.io that's causing it to record a failure? Can you download the file I just linked directly using cURL or wget?

@JohnOmernik
Copy link
Author

I can download that specific file with wget, but I am still getting

[ERROR] Failed to execute goal on project kafka-avro-serializer:
Could not resolve dependencies for project io.confluent:kafka-avro-serializer:jar:2.0-SNAPSHOT:
Could not find artifact org.apache.kafka:kafka_2.10:jar:0.8.2.0-cp in confluent (http://packages.confluent.io/maven/) -> [Help 1]

When I try to compile. I've gone to my local local repo can removed the org.apache.kafka stuff, no dice there either. I am stumped on this. Would it help if all the 2.0-SNAPSHOT stuff was just pre built in the mvn repo? Basically I am trying to get kafka-rest built (the new versions) to help in troubleshooting some API requests in 1.0 (there are some issues fixed that may have more robust logging for me)

@ewencp
Copy link
Contributor

ewencp commented May 26, 2015

Agreed, this seems weird. The only other thing I can think of is that the dependency has scope set as "provided", but for mvn compile that shouldn't affect anything.

The 2.0-SNAPSHOT version in that message refers to the kafka-avro-serializer artifact in the schema registry, so that's what you're trying to build. Kafka and the Confluent projects are versioned differently. I don't think there's an easy fix except to get Maven to resolve the dependency properly.

Is there any other downloading/downloaded log lines before this that would be relevant? kafka-avro-serializer should require kafka-clients and the kafka_2.10 jars, so you should see both (assuming a clean local repository).

If you can't figure out the issue, you can also try changing the kafka.version variable to 0.8.2.1. That should pick up the Apache release from Maven Central and it should have no problem building against that version.

@JohnOmernik
Copy link
Author

Here is the full log:

Downloading: http://packages.confluent.io/maven/org/apache/kafka/kafka_2.10/0.8.2.0-cp/kafka_2.10-0.8.2.0-cp.pom
Downloading: http://repo.maven.apache.org/maven2/org/apache/kafka/kafka_2.10/0.8.2.0-cp/kafka_2.10-0.8.2.0-cp.pom
[WARNING] The POM for org.apache.kafka:kafka_2.10:jar:0.8.2.0-cp is missing, no dependency information available
Downloading: http://packages.confluent.io/maven/io/confluent/common-config/2.0-SNAPSHOT/maven-metadata.xml
Downloading: http://packages.confluent.io/maven/io/confluent/common/2.0-SNAPSHOT/maven-metadata.xml
Downloading: http://packages.confluent.io/maven/io/confluent/common-utils/2.0-SNAPSHOT/maven-metadata.xml
Downloading: http://packages.confluent.io/maven/org/apache/kafka/kafka_2.10/0.8.2.0-cp/kafka_2.10-0.8.2.0-cp.jar
Downloading: http://repo.maven.apache.org/maven2/org/apache/kafka/kafka_2.10/0.8.2.0-cp/kafka_2.10-0.8.2.0-cp.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kafka-schema-registry-parent ...................... SUCCESS [0.046s]
[INFO] kafka-schema-registry-client ...................... SUCCESS [0.587s]
[INFO] kafka-avro-serializer ............................. FAILURE [2.040s]
[INFO] kafka-schema-registry ............................. SKIPPED
[INFO] kafka-schema-registry-package ..................... SKIPPED

@ewencp
Copy link
Contributor

ewencp commented May 26, 2015

That looks like there's some issue downloading the files -- they definitely exist, but you should see corresponding "Downloaded" lines, and it's complaining about the missing POM for org.apache.kafka:kafka_2.10:jar:0.8.2.0-cp for the same reason. This seems strange if you're able to download the files directly.

Any chance there's a proxy or mirror setting somewhere that -U isn't handling? e.g. if you had Nexus/Artifactory/Archiva that had cached a missing file incorrectly?

In any case, changing the version in the pom.xml to 0.8.2.1 should also work.

@JohnOmernik
Copy link
Author

I changed it to 0.8.2.1-cp and that didn't work. I added the apache registry, and used 0.8.2.0 as my kafka version and that DID work. Will that hurt me long term?

@ewencp ewencp added the invalid label May 27, 2015
@ewencp ewencp added this to the Second Release milestone May 27, 2015
@ewencp ewencp self-assigned this May 27, 2015
@ewencp
Copy link
Contributor

ewencp commented May 27, 2015

Sorry, I probably wasn't clear. When I said to try 0.8.2.1, I meant without the -cp suffix. That is the latest Apache release of Kafka. It turns out that 0.8.2.0-cp and 0.8.2.1 are exactly the same, but since 0.8.2.1 wasn't released when we released v1 of Confluent Platform, we had to tag it with a different number.

Since this dependency is only pulled in during compile time (the runtime jar needs to be provided by the project using the serializers), using a different version that has a matching API should not be a problem.

Since you got this working with that minor change and it seems like it's probably some issue with your environment since we couldn't track down why those downloads weren't working through maven, I'm going to close this for now. Feel free to reopen if you want to work on digging deeper if you think this might still be an issue with the schema-registry code.

@ewencp ewencp closed this as completed May 27, 2015
@satybald
Copy link

I experienace the same problem on my Mac with java7:

[ERROR] Failed to execute goal on project kafka-avro-serializer: Could not resolve dependencies for project io.confluent:kafka-avro-serializer:jar:2.0-SNAPSHOT: Could not find artifact io.confluent:common-config:jar:2.0-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [Help 1]

Full log

mvn -U compile
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-schema-registry:jar:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ io.confluent:kafka-schema-registry-parent:2.0-SNAPSHOT, /Users/satybald/Documents/projects/glispa/avro/schema-registry/pom.xml, line 117, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-schema-registry-client:jar:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ io.confluent:kafka-schema-registry-parent:2.0-SNAPSHOT, /Users/satybald/Documents/projects/glispa/avro/schema-registry/pom.xml, line 117, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-avro-serializer:jar:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ io.confluent:kafka-schema-registry-parent:2.0-SNAPSHOT, /Users/satybald/Documents/projects/glispa/avro/schema-registry/pom.xml, line 117, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-json-serializer:jar:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ io.confluent:kafka-schema-registry-parent:2.0-SNAPSHOT, /Users/satybald/Documents/projects/glispa/avro/schema-registry/pom.xml, line 117, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-schema-registry-package:pom:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ io.confluent:kafka-schema-registry-parent:2.0-SNAPSHOT, /Users/satybald/Documents/projects/glispa/avro/schema-registry/pom.xml, line 117, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for io.confluent:kafka-schema-registry-parent:pom:2.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 117, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] kafka-schema-registry-parent
[INFO] kafka-schema-registry-client
[INFO] kafka-avro-serializer
[INFO] kafka-schema-registry
[INFO] kafka-json-serializer
[INFO] kafka-schema-registry-package
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-schema-registry-parent 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/maven-metadata.xml (646 B at 0.4 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-schema-registry-client 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ kafka-schema-registry-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/satybald/Documents/projects/glispa/avro/schema-registry/client/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ kafka-schema-registry-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building kafka-avro-serializer 2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repository.apache.org/snapshots/io/confluent/common-config/2.0-SNAPSHOT/maven-metadata.xml
Downloading: http://packages.confluent.io/maven/io/confluent/common-config/2.0-SNAPSHOT/maven-metadata.xml
Downloading: http://repository.apache.org/snapshots/io/confluent/common-config/2.0-SNAPSHOT/common-config-2.0-SNAPSHOT.pom
Downloading: http://packages.confluent.io/maven/io/confluent/common-config/2.0-SNAPSHOT/common-config-2.0-SNAPSHOT.pom
[WARNING] The POM for io.confluent:common-config:jar:2.0-SNAPSHOT is missing, no dependency information available
Downloading: http://repository.apache.org/snapshots/io/confluent/common-config/2.0-SNAPSHOT/common-config-2.0-SNAPSHOT.jar
Downloading: http://packages.confluent.io/maven/io/confluent/common-config/2.0-SNAPSHOT/common-config-2.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] kafka-schema-registry-parent ....................... SUCCESS [  2.080 s]
[INFO] kafka-schema-registry-client ....................... SUCCESS [  0.895 s]
[INFO] kafka-avro-serializer .............................. FAILURE [  1.800 s]
[INFO] kafka-schema-registry .............................. SKIPPED
[INFO] kafka-json-serializer .............................. SKIPPED
[INFO] kafka-schema-registry-package ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.180 s
[INFO] Finished at: 2015-07-23T13:02:17+03:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project kafka-avro-serializer: Could not resolve dependencies for project io.confluent:kafka-avro-serializer:jar:2.0-SNAPSHOT: Could not find artifact io.confluent:common-config:jar:2.0-SNAPSHOT in apache.snapshots (http://repository.apache.org/snapshots) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :kafka-avro-serializer

@satybald
Copy link

I tried with wget to download missing jar and found that 2.0-SNAPSHOT version aren't awailable on the maven repo.

http://packages.confluent.io/maven/io/confluent/common-config/2.0-SNAPSHOT/common-config-2.0-SNAPSHOT.jar

However, there's no problem accessing 1.0 jars.

@ewencp
Copy link
Contributor

ewencp commented Jul 23, 2015

@satybald That's actually a different problem -- you don't have the 2.0-SNAPSHOT version of confluent-common (and if you don't have that, you also won't have the snapshot version of rest-utils, which is also required). As mentioned in the development section of the docs, you'll need to build and install both of those repositories as well -- we don't publish snapshot jars to our package repositories.

@satybald
Copy link

@ewencp got it! thanks for this information.

@sngeorge
Copy link

sngeorge commented May 5, 2016

What's the latest confluent development version that can be pulled for Kafka rest proxy - so that the common and rest-utils, schema-registry and kafka-rest gets installed successfully with minimal steps.?
( like 2.0.1 or 2.10-snapshot, master etc)

@ewencp
Copy link
Contributor

ewencp commented May 5, 2016

@sngeorge 0d4da56 is probably the last commit that you can compile without dev versions of other libraries.

@sngeorge
Copy link

sngeorge commented May 6, 2016

I tried that out, but one of the test cases fails while trying to install the schema-registry, could you please let me know if I am missing something here. Thanks.

Versions from pom.xml -

    <jersey.version> 2.19
    <confluent-common.version>2.1.0-SNAPSHOT
    <kafka.version>0.9.0.1-cp1
    <kafka.scala.version>2.11
    <log4j.version>1.7.6
    <restutils.version>2.1.0-SNAPSHOT
    <avro.version>1.7.7
    <jackson.version>2.5.4
    <junit.version>4.12
    <easymock.version>3.3.1
    <powermock.version>1.6.2
    <powermock.api.easymock.version>1.6.2
    <project.build.sourceEncoding>UTF-8
    <maven-assembly.version>2.6

T E S T S

Running io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThreadTest
[2016-05-06 00:31:31,164] INFO SchemaRegistryConfig values:
master.eligibility = true
port = 20721
kafkastore.timeout.ms = 500
kafkastore.init.timeout.ms = 60000
debug = false
kafkastore.zk.session.timeout.ms = 30000
schema.registry.zk.namespace = schema_registry
request.logger.name = io.confluent.rest-utils.requests
metrics.sample.window.ms = 30000
kafkastore.topic = _schemas
avro.compatibility.level = NONE
shutdown.graceful.ms = 1000
access.control.allow.origin =
response.mediatype.preferred = [application/vnd.schemaregistry.v1+json, application/vnd.schemaregistry+json, application/json]
metrics.jmx.prefix = kafka.schema.registry
host.name = snehag195.eng.citrite.net
metric.reporters = []
kafkastore.commit.interval.ms = -1
kafkastore.connection.url = 127.0.0.1:33688
metrics.num.samples = 2
response.mediatype.default = application/vnd.schemaregistry.v1+json
kafkastore.topic.replication.factor = 3
(io.confluent.kafka.schemaregistry.rest.SchemaRegistryConfig:135)
[2016-05-06 00:31:31,700] INFO Initialized the consumer offset to -1 (io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread:86)
[2016-05-06 00:31:32,069] WARN Creating the schema topic _schemas using a replication factor of 1, which is less than the desired one of 3. If this is a production environment, it's crucial to add more brokers and increase the replication factor of the topic. (io.confluent.kafka.schemaregistry.storage.KafkaStore:176)
[2016-05-06 00:31:32,128] INFO [kafka-store-reader-thread-_schemas], Starting (io.confluent.kafka.schemaregistry.storage.KafkaStoreReaderThread:68)
[2016-05-06 00:32:32,267] ERROR Error starting the schema registry (io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication:57)
io.confluent.kafka.schemaregistry.exceptions.SchemaRegistryInitializationException: Error initializing kafka store while initializing schema registry
at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:166)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:55)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:37)
at io.confluent.rest.Application.createServer(Application.java:109)
at io.confluent.kafka.schemaregistry.RestApp.start(RestApp.java:59)
at io.confluent.kafka.schemaregistry.ClusterTestHarness.setUp(ClusterTestHarness.java:154)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreInitializationException: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:155)
at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.init(KafkaSchemaRegistry.java:164)
... 30 more
Caused by: io.confluent.kafka.schemaregistry.storage.exceptions.StoreException: Failed to write Noop record to kafka store.
at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:367)
at io.confluent.kafka.schemaregistry.storage.KafkaStore.waitUntilKafkaReaderReachesLastOffset(KafkaStore.java:224)
at io.confluent.kafka.schemaregistry.storage.KafkaStore.init(KafkaStore.java:153)
... 31 more
Caused by: java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
at org.apache.kafka.clients.producer.KafkaProducer$FutureFailure.(KafkaProducer.java:686)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:449)
at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:339)
at io.confluent.kafka.schemaregistry.storage.KafkaStore.getLatestOffset(KafkaStore.java:362)
... 33 more
Caused by: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] kafka-schema-registry-parent ....................... SUCCESS [ 1.646 s]
[INFO] kafka-schema-registry-client ....................... SUCCESS [ 4.289 s]
[INFO] kafka-avro-serializer .............................. SUCCESS [ 3.963 s]
[INFO] kafka-schema-registry .............................. FAILURE [01:09 min]
[INFO] kafka-json-serializer .............................. SKIPPED
[INFO] kafka-connect-avro-converter ....................... SKIPPED
[INFO] kafka-schema-registry-package ...................... SKIPPED
[INFO] kafka-serde-tools-package .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2016-05-06T00:32:32+00:00
[INFO] Final Memory: 18M/200M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project kafka-schema-registry: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Kafka/confluent-2.0.1/etc/schema-registry/schema-registry/core && /usr/local/openjdk7/jre/bin/java -Djava.awt.headless=true -jar /Kafka/confluent-2.0.1/etc/schema-registry/schema-registry/core/target/surefire/surefirebooter3465910262356292789.jar /Kafka/confluent-2.0.1/etc/schema-registry/schema-registry/core/target/surefire/surefire843309879132849450tmp /Kafka/confluent-2.0.1/etc/schema-registry/schema-registry/core/target/surefire/surefire_2631093823747252429tmp
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :kafka-schema-registry

@ewencp
Copy link
Contributor

ewencp commented May 6, 2016

It's possible that's timing related -- some of the tests run a real ZK + Kafka + Schema Registry setup and if your box isn't beefy enough or is overloaded with other work, they may timeout. You might check the affected test and see if increasing timeouts helps.

@sngeorge
Copy link

sngeorge commented May 6, 2016

Thanks much Ewen.

@bensonlTM
Copy link

I had a similar issue and it turned out to be my Maven configuration. My maven settings.xml is configured to use my company's Maven Mirror and that repository needed to have the confluent Mirror repository added in order for it to download from http://packages.confluent.io/maven. I hope this helps!

@SVD81Tech
Copy link

So here is my problem

  1. I followed the steps on the links http://docs.confluent.io/3.1.2/quickstart.html and http://docs.confluent.io/3.1.2/app-development.html
  2. now to run the sample and do some hands on locally on the java platform i wanted to pull all the confluent jars (even though they are there in the downloaded confluent package )
    my company also had a nexus repo which doesnt have these jars hence i add the repo in my local maven settings.xml
    <repositories> <repository> <id>confluent</id> <url>http://packages.confluent.io/maven/</url> </repository> </repositories>

but it didnt help.
i think i am looking for a online mirror which i can hook up in my settings.xml so that after my company nexus repo the maven will try and download the jars from remote repo.

I also tried installing the required jars one by one in my local repo using below command
mvn install:install-file -Dfile=C:\jars\kafka-avro-serializer-1.0.1.jar -DgroupId=io.confluent -DartifactId=kafka-avro-serializer -Dversion=3.1.2 -Dpackaging=jar

but i dont have patience and time to do this for all the jars

F1 F1 F1 :( :( .
either i am super sily or i am hoping the kafkens / confluent folks will make this little addition to the documentation as so many people are facing similar issue.
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants