Running standalone realtime node and indexing service


My Druid cluster setup involves Realtime, Historical, Broker and Coordinator nodes and my Realtime node is ingesting data from Kafka using the Kafka Eight Firehose. I would like to configure some rules to drop older segments.

Would I be able to run the Indexing Service (Overlord, MiddleManager nodes) alongside a standalone Realtime node so as to just make use of the Indexing Service for submitting the kill task to remove older segments ? Please note that I don’t want to use the Indexing Service for ingestion, but just for cleaning up old segments. Ingestion is going to be handled by standalone Realtime nodes.

When I tried to run my Overlord node alongside Realtime nodes, I ran into the following error:

2016-09-09T01:36:48,332 ERROR [main] io.druid.cli.CliRealtime - Error when starting up. Failing. Guice provision errors:

  1. Error injecting constructor, java.lang.NullPointerException

at io.druid.guice.FireDepartmentsProvider.(

while locating io.druid.guice.FireDepartmentsProvider

at io.druid.guice.RealtimeModule.configure(

while locating java.util.List<io.druid.segment.realtime.FireDepartment>

for parameter 0 at io.druid.segment.realtime.RealtimeManager.<init>(

while locating io.druid.segment.realtime.RealtimeManager

at io.druid.guice.RealtimeModule.configure(

while locating io.druid.query.QuerySegmentWalker

for parameter 3 at io.druid.server.QueryResource.<init>(

while locating io.druid.server.QueryResource

1 error

at$3.get( ~[guice-4.0-beta.jar:?]

at ~[guice-4.0-beta.jar:?]

at io.druid.guice.LifecycleModule$2.start( ~[druid-api-]

at io.druid.cli.GuiceRunnable.initLifecycle( [druid-services-]

at [druid-services-]

at io.druid.cli.Main.main( [druid-services-]

Caused by: java.lang.NullPointerException

at ~[?:1.8.0_91]

at com.fasterxml.jackson.core.JsonFactory.createParser( ~[jackson-core-2.4.6.jar:2.4.6]

at com.fasterxml.jackson.databind.ObjectMapper.readValue( ~[jackson-databind-2.4.6.jar:2.4.6]

at io.druid.guice.FireDepartmentsProvider.( ~[druid-server-]


Any suggestions about resolving this error would also be great :slight_smile:


Hi Saravana,

I’m trying to replace my Realtime nodes with the Indexing Service and had similar question. Were you able to run Realtime and Indexing nodes side by side without issue?

you should be able to run realtime nodes & indexing service for kill Tasks together. FWIW, you will need to make sure that you only delete the data which is old, handed over to historical nodes not served by realtime node.

the NPE seems like a config issue, did you changed anything in realtime node config ? could you share the config for more details.