Giter VIP home page Giter VIP logo

Comments (8)

frankyaorenjie avatar frankyaorenjie commented on June 26, 2024

zookeeper-3.3.4 is in pom.xml. I'm not sure what you mean about zkClient? If some dependencies are missing, maven cannot build jar file successfully - actually you have built it.

As for the exception, it seems like you have some mistakes in parameters in flume conf file. Would you like to paste your flume conf file here?

from flume-kafka.

greatpatton avatar greatpatton commented on June 26, 2024

Here is my flume config file:

agent.sinks.loggerSink.type = com.vipshop.flume.sink.kafka.KafkaSink

#Specify the channel the sink should use
agent.sinks.loggerSink.channel = memoryChannel
agent.sinks.loggerSink.zkconnect = 10.192.57.12:2181,10.192.57.13:2181,10.192.57.14:2181,10.192.57.15:2181,10.192.57.16:2181
agent.sinks.loggerSink.topic = test4
agent.sinks.loggerSink.batchsize = 200

For ZKclient, it may be caused by the fact that I'm not compiling on the same machine than the one I run my tests. It was missing zkclient jar, and I was not able to find it on my compiling machine but I may have done a mistake.

from flume-kafka.

frankyaorenjie avatar frankyaorenjie commented on June 26, 2024

In my code, I only parse one zookeeper ip. Can you just use one ip for zkconnect parameter and test again?

from flume-kafka.

greatpatton avatar greatpatton commented on June 26, 2024

I did the test and get the same exception.

On Tue, Sep 3, 2013 at 12:12 PM, Frank Yao [email protected] wrote:

In my code, I only parse one zookeeper ip. Can you just use one ip for
zkconnect parameter and test again?


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-23701974
.

from flume-kafka.

frankyaorenjie avatar frankyaorenjie commented on June 26, 2024

I think this is not caused by this project but by your kafka. Things are like that in http://mail-archives.apache.org/mod_mbox/kafka-users/201306.mbox/%[email protected]%3E

Could you reset your kafka (delete all topics on disk and restart kafka)?

from flume-kafka.

greatpatton avatar greatpatton commented on June 26, 2024

OK found it!

I was using kafka_0.8 before moving to kafka_0.7.2 to test your code. It seems that the structure is slightly modified in zookeeper (However I was still able to use the queue). After cleaning up zookeeper structure and kafka I'm able to get a connection.

Thanks for your help!

from flume-kafka.

frankyaorenjie avatar frankyaorenjie commented on June 26, 2024

oh yes, this project is based on kafka-0.7.2 because 0.7.X is more mature than 0.8. Plus, we use 0.7.2 in our production environment.:)

from flume-kafka.

wayne666 avatar wayne666 commented on June 26, 2024

how to solve the problem? Thx

from flume-kafka.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.