mirror of https://github.com/apache/druid.git
Merge branch 'druid-0.7.x' of github.com:metamx/druid into druid-0.7.x
This commit is contained in:
commit
4244accab5
|
@ -321,7 +321,7 @@ public class CachingClusteredClient<T> implements QueryRunner<T>
|
||||||
|
|
||||||
final QueryRunner clientQueryable = serverView.getQueryRunner(server);
|
final QueryRunner clientQueryable = serverView.getQueryRunner(server);
|
||||||
if (clientQueryable == null) {
|
if (clientQueryable == null) {
|
||||||
log.makeAlert("WTF!? server[%s] doesn't have a client Queryable?", server).emit();
|
log.error("WTF!? server[%s] doesn't have a client Queryable?", server);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -343,7 +343,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (IOException | InterruptedException | ExecutionException e) {
|
catch (IOException | InterruptedException | ExecutionException e) {
|
||||||
throw new RE(e, "Failure getting results from[%s]", url);
|
throw new RE(e, "Failure getting results from[%s] because of [%s]", url, e.getMessage());
|
||||||
}
|
}
|
||||||
catch (CancellationException e) {
|
catch (CancellationException e) {
|
||||||
throw new QueryInterruptedException("Query cancelled");
|
throw new QueryInterruptedException("Query cancelled");
|
||||||
|
|
|
@ -34,6 +34,6 @@ public abstract class CuratorConfig
|
||||||
public abstract int getZkSessionTimeoutMs();
|
public abstract int getZkSessionTimeoutMs();
|
||||||
|
|
||||||
@Config("druid.curator.compress")
|
@Config("druid.curator.compress")
|
||||||
@Default("false")
|
@Default("true")
|
||||||
public abstract boolean enableCompression();
|
public abstract boolean enableCompression();
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ import com.google.inject.Provider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = LegacyDataSegmentAnnouncerProvider.class)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", defaultImpl = BatchDataSegmentAnnouncerProvider.class)
|
||||||
@JsonSubTypes(value = {
|
@JsonSubTypes(value = {
|
||||||
@JsonSubTypes.Type(name = "legacy", value = LegacyDataSegmentAnnouncerProvider.class),
|
@JsonSubTypes.Type(name = "legacy", value = LegacyDataSegmentAnnouncerProvider.class),
|
||||||
@JsonSubTypes.Type(name = "batch", value = BatchDataSegmentAnnouncerProvider.class)
|
@JsonSubTypes.Type(name = "batch", value = BatchDataSegmentAnnouncerProvider.class)
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class CliBridge extends ServerRunnable
|
||||||
public void configure(Binder binder)
|
public void configure(Binder binder)
|
||||||
{
|
{
|
||||||
binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/bridge");
|
binder.bindConstant().annotatedWith(Names.named("serviceName")).to("druid/bridge");
|
||||||
binder.bindConstant().annotatedWith(Names.named("servicePort")).to(8081);
|
binder.bindConstant().annotatedWith(Names.named("servicePort")).to(8089);
|
||||||
|
|
||||||
ConfigProvider.bind(binder, BridgeCuratorConfig.class);
|
ConfigProvider.bind(binder, BridgeCuratorConfig.class);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue