maven - kafka spout configuration error -


system environment:

storm 0.9.2 incubating

apache maven 3.0.5

java version: 1.7.0_55, vendor: oracle corporation

os name: "linux", version: "3.13.0-24-generic", arch: "i386", family: "unix"

here code:

        config conf = new config();         conf.setdebug(true);            string zkconnstring = "localhost:2181";         string topic = "tap";         brokerhosts hosts = new zkhosts(zkconnstring);           spoutconfig kafkaspoutconfig = new spoutconfig (hosts, topic, "/" + topic,  uuid.randomuuid().tostring());         kafkaspoutconfig.buffersizebytes = 1024 * 1024 * 4;         kafkaspoutconfig.fetchsizebytes = 1024 * 1024 * 4;          kafkaspoutconfig.ignorezkoffsets = true; 

i did storm kafka integration need ignore zookeeper offsetskafkaspoutconfig.ignorezkoffsets = true; when tried build using maven got error.

cannot find symbol   symbol:   variable ignorezkoffsets   location: variable kafkaspoutconfig of type storm.kafka.spoutconfig [info] 1 error [info] ------------------------------------------------------------- [info] ------------------------------------------------------------------------ [info] build failure 

how ignore zkoffests? please give example use zkoffests..

you importing wrong package spoutconfig.

try using org.apache.storm.kafka.spoutconfig (available in storm-core maven dependency) instead of storm.kafka.spoutconfig (available in storm-kafka maven dependency).


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -