diff --git a/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java b/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java index cd0915cef13..4b9a8d611fd 100644 --- a/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java +++ b/indexing-service/src/main/java/io/druid/indexing/overlord/http/OverlordResource.java @@ -120,6 +120,14 @@ public class OverlordResource ); } + @GET + @Path("/leader") + @Produces(MediaType.APPLICATION_JSON) + public Response getLeader() + { + return Response.ok(taskMaster.getLeader()).build(); + } + @GET @Path("/task/{taskid}") @Produces(MediaType.APPLICATION_JSON)