项目作者: deepak-rai

项目描述 :
Druid(v0.8.3) Docker Image(with druid-datasketches extension and caravel included) — Edit
高级语言: Shell
项目地址: git://github.com/deepak-rai/druid-caravel-docker.git
创建时间: 2017-02-28T04:17:16Z
项目社区:https://github.com/deepak-rai/druid-caravel-docker

开源协议:

下载


Druid(v0.8.3) Docker Image(with druid-datasketches extension and caravel included)

Run a simple Druid cluster

Command to run the docker image :

  1. docker run -t -d --net=host <docker_image>

Druid UI : http://localhost:8081/#/

Caravel UI(credentials - admin/admin) : http://localhost:8088/

Build Druid Docker Image

To build the docker image yourself

  1. git clone https://github.com/deepak-rai/druid-caravel-docker.git
  2. cd docker-druid
  3. docker build -t example-cluster .

Ingesting test data

  • Test data in sample_data is copied into Docker image at /home/druid/sample_data/.
  • To ingest this test data into druid, run following from within the docker:
    1. root@geo-qa1002:/# curl -X 'POST' -H 'Content-Type:application/json' -d @/home/druid/sample_data/spec.json http://localhost:8090/druid/indexer/v1/task
    2. {"task":"index_hadoop_test_data_2017-02-25T04:01:12.810Z"}
  • Sample query command(to be run from within the docker):
    1. root@geo-qa1002:/# curl -X 'POST' -H 'Content-Type:application/json' -d @/home/druid/sample_data/query.json http://localhost:8082/druid/v2/?pretty
    2. [ {
    3. "version" : "v1",
    4. "timestamp" : "2017-01-20T00:00:00.000Z",
    5. "event" : {
    6. "4000_unique_users" : 2.0
    7. }
    8. } ]root@geo-qa1002:/#