hadoop - Kafka on Windows - start service error -


i trying cleanly start kafka 2.10 - 0.8.2.1 on windows getting annoying error everytime start it.

i have installed kafka following quick start guide (with exception have installed zookeeper myself). both kafka , zookeeper installed basic, on single machine.

problem when run starting script:

kafka-server-start.bat c:\kafka_2.10-0.8.2.1\config\server.properties

i error:

error

[2015-07-14 17:00:45,197] warn error when freeing index buffer (kafka.log.offsetindex) java.lang.nullpointerexception         @ kafka.log.offsetindex.kafka$log$offsetindex$$forceunmap(offsetindex.scala:301)         @ kafka.log.offsetindex$$anonfun$resize$1.apply(offsetindex.scala:283)         @ kafka.log.offsetindex$$anonfun$resize$1.apply(offsetindex.scala:276)         @ kafka.utils.utils$.inlock(utils.scala:535)         @ kafka.log.offsetindex.resize(offsetindex.scala:276)         @ kafka.log.log.loadsegments(log.scala:179)         @ kafka.log.log.<init>(log.scala:67)         @ kafka.log.logmanager$$anonfun$loadlogs$2$$anonfun$3$$anonfun$apply$7$$anonfun$apply$1.apply$mcv         @ kafka.utils.utils$$anon$1.run(utils.scala:54)         @ java.util.concurrent.executors$runnableadapter.call(executors.java:471)         @ java.util.concurrent.futuretask.run(futuretask.java:262)         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145)         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615)         @ java.lang.thread.run(thread.java:745) [2015-07-14 17:00:45,219] info completed load of log test-0 log end offset 0 (kafka.log.log) 

what observed

when delete kafka log folder, error not appear first time re-run starting script. kafka log folder path:

c:\tmp\kafka-logs

i have tried stop service using provided script, not help. server stop script:

kafka-server-stop.bat

although same error appears when start second time, kafka start-up continues, , seems works normally.

help
how rid of above error?

this exception shouldn't problem during startup if want rid of guess have file jira it.

this seems related kafka-1008 , this commit.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -