-
Notifications
You must be signed in to change notification settings - Fork 50
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
running example #2
Comments
Hi, thanks for heads up. I actually haven't tried it with the Confluent On Mon, Apr 11, 2016 at 10:44 PM, PPhiri [email protected] wrote:
|
OK, I've just realised that the confluent tech.preview is based on Kafka 0.9.x - I will have to create a branch of the demo itself because the APIs are slightly different.. |
Thanks. No I didn't have kafka trunk, will try a clone and see. On Mon, Apr 11, 2016, 5:53 PM Michal Harish [email protected]
|
demo backported to the API version bundled with confluent platform tech.preview alpha; under 'cp' branch; tested and updated README.md setup guide |
Hi Michal, Thanks for the updates to github, instructions are clearer. There is still I will redouble my efforts on the Confluent site and see if there was any Thanks. On Tue, Apr 12, 2016 at 5:38 AM, Michal Harish [email protected]
|
It should be looking for connect-api-0.9.1.0-cp1.jar, if you are on the cp branch the build.gradle contains ext.kafkaVersion='0.9.1.0-cp1' and there is a dependency compile group: 'org.apache.kafka', name: 'connect-api', version: kafkaVersion |
Ok, I saw that in the java folder. What needs to change in build.gradle to Thanks. On Tue, Apr 12, 2016 at 12:39 PM, Michal Harish [email protected]
|
What I mean is: I have already changed it and it works correctly for me. ./gradlew clean build
|
I believe I do, just downloaded it yesterday and have not made any hduser@hduser-VirtualBox:/usr/local/hello-kafka-streams$ ./gradlew clean FAILURE: Build failed with an exception.
file:/home/hduser/.m2/repository/org/apache/kafka/connect-runtime/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/home/hduser/.m2/repository/org/apache/kafka/connect-runtime/0.10.1.0-SNAPSHOT/connect-runtime-0.10.1.0-SNAPSHOT.pom file:/home/hduser/.m2/repository/org/apache/kafka/connect-runtime/0.10.1.0-SNAPSHOT/connect-runtime-0.10.1.0-SNAPSHOT.jar https://repo1.maven.org/maven2/org/apache/kafka/connect-runtime/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/connect-runtime-0.10.1.0-SNAPSHOT.jar file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/connect-runtime.jar
file:/home/hduser/.m2/repository/org/apache/kafka/connect-api/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/home/hduser/.m2/repository/org/apache/kafka/connect-api/0.10.1.0-SNAPSHOT/connect-api-0.10.1.0-SNAPSHOT.pom file:/home/hduser/.m2/repository/org/apache/kafka/connect-api/0.10.1.0-SNAPSHOT/connect-api-0.10.1.0-SNAPSHOT.jar https://repo1.maven.org/maven2/org/apache/kafka/connect-api/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/connect-api-0.10.1.0-SNAPSHOT.jar file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/connect-api.jar
file:/home/hduser/.m2/repository/org/apache/kafka/kafka-streams/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/home/hduser/.m2/repository/org/apache/kafka/kafka-streams/0.10.1.0-SNAPSHOT/kafka-streams-0.10.1.0-SNAPSHOT.pom file:/home/hduser/.m2/repository/org/apache/kafka/kafka-streams/0.10.1.0-SNAPSHOT/kafka-streams-0.10.1.0-SNAPSHOT.jar https://repo1.maven.org/maven2/org/apache/kafka/kafka-streams/0.10.1.0-SNAPSHOT/maven-metadata.xml file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/kafka-streams-0.10.1.0-SNAPSHOT.jar file:/usr/local/confluent-2.1.0-alpha1/share/java/kafka/kafka-streams.jar
BUILD FAILED I just cloned app today, after the changes you made so should be working Thanks. On Tue, Apr 12, 2016 at 1:40 PM, Michal Harish [email protected]
|
I have pushed the fix today so you need to pull. Can you pase here how your
|
Yes, here it is: apply plugin: 'application' ext.javaVersion = '1.8' sourceCompatibility = 1.8 build.dependsOn startScripts task wrapper(type: Wrapper) { repositories { dependencies { jar { Is this one good or does not match the new fix? On Tue, Apr 12, 2016 at 2:01 PM, Michal Harish [email protected]
|
yeah, your copy is not up-to-date. this is how the file looks in the repo: cp/build.gradle This should bring you up to date and clean: git checkout cp && git reset --hard && git pull Then again ./gradlew build |
Ok, will get it now. Is my file path correct for repositories? Thanks. On Tue, Apr 12, 2016 at 2:08 PM, Michal Harish [email protected]
|
yeah the dirs looks ok but after reset --hard you'll need to change it back to /usr/local |
I got new files to work with and am now running into some compilation java hduser@hduser-VirtualBox:/usr/local/hello-kafka-streams$ sudo ./gradlew ^ FAILURE: Build failed with an exception.
I am going through the java files to see if I can spot any differences, so Thanks. On Tue, Apr 12, 2016 at 2:22 PM, Michal Harish [email protected]
|
The log says that classes are not found > your dependencies are not loading > you haven't updated the dirs path after the resetting your copy. Anyways, closing this issue, the backport to confluent branch is done. |
Thanks Michal. You have been a great help. On Tue, Apr 12, 2016, 4:50 PM Michal Harish [email protected]
|
Hi Michal, I know you closed this issue but had a couple questions based on the error org.apache.kafka.common.????
Thanks for the help. On Tue, Apr 12, 2016 at 4:50 PM, Michal Harish [email protected]
|
I followed the instructions to run this example with some limited success. Tow things are not quite clear to me;
a). the instruction to update gradle.properties in confluent is not clear - how to do it
b) my attempt to compile example resulted in a failure - missing Kafka-streams/0.10.1.0-SNAPSHOT jar file.
If I use confluent-alpha1 instead of the not yet released Kafka 0.10.1.0, how do I connect the example to the running Kafka instance?
The text was updated successfully, but these errors were encountered: