Skip to content

Query the data from HTTPS enabled druid cluster #14

@averma111

Description

@averma111

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));

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions