-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I am trying to execute below query for druid for https enabled broker node. what should be the values of broker node for host?.
Do I need to pass any key or cert file. If yes then how to pass the same. Consider me naive.
let https = require('https');
let druidRequesterFactory = require('plywood-druid-requester').druidRequesterFactory;
let plywood = require('plywood');
let ply = plywood.ply;
let $ = plywood.$;
let External = plywood.External;
let fs = require('fs');
let druidRequester = druidRequesterFactory({
host: ''
});
let context = {
wiki: External.fromJS({ax
engine: 'druid',
source: 'wikipedia',
}, druidRequester)
};
let ex = ply()
.apply("wiki",
$('wiki').filter($("__time").overlap({
start: new Date("2015-09-12T00:46:58.771Z"),
end: new Date("2015-09-12T23:59:59.200Z")
}))
)
.apply('Count', $('wiki').count())
.apply('TotalAdded', '$wiki.sum($added)');
ex.compute(context)
.then(function(data) {
console.log(JSON.stringify(data.toJS(), null, 2));
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels