mirror of https://github.com/apache/druid.git
fix some config bugs
This commit is contained in:
parent
70937af7bd
commit
7184e528fd
|
@ -376,10 +376,6 @@ public class InfoResource
|
|||
@QueryParam("interval") final String interval
|
||||
)
|
||||
{
|
||||
// TODO: will likely be all rewritten once Guice introduced
|
||||
if (indexingServiceClient == null) {
|
||||
return Response.status(Response.Status.OK).entity(ImmutableMap.of("error", "no indexing service found")).build();
|
||||
}
|
||||
if (kill != null && Boolean.valueOf(kill)) {
|
||||
indexingServiceClient.killSegments(dataSourceName, new Interval(interval));
|
||||
} else {
|
||||
|
|
|
@ -178,15 +178,15 @@ public class MasterMain
|
|||
lifecycle
|
||||
);
|
||||
|
||||
IndexingServiceClient indexingServiceClient = null;
|
||||
ServiceProvider serviceProvider = null;
|
||||
if (druidMasterConfig.getMergerServiceName() != null) {
|
||||
ServiceProvider serviceProvider = Initialization.makeServiceProvider(
|
||||
serviceProvider = Initialization.makeServiceProvider(
|
||||
druidMasterConfig.getMergerServiceName(),
|
||||
serviceDiscovery,
|
||||
lifecycle
|
||||
);
|
||||
indexingServiceClient = new IndexingServiceClient(httpClient, jsonMapper, serviceProvider);
|
||||
}
|
||||
IndexingServiceClient indexingServiceClient = new IndexingServiceClient(httpClient, jsonMapper, serviceProvider);
|
||||
|
||||
final DruidClusterInfo druidClusterInfo = new DruidClusterInfo(
|
||||
configFactory.build(DruidClusterInfoConfig.class),
|
||||
|
|
|
@ -60,13 +60,13 @@ public abstract class DruidMasterConfig
|
|||
@Config("druid.master.merger.on")
|
||||
public boolean isMergeSegments()
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Config("druid.master.conversion.on")
|
||||
public boolean isConvertSegments()
|
||||
{
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@Config("druid.master.merger.service")
|
||||
|
|
Loading…
Reference in New Issue