Skip to content

deepak-rai/druid-caravel-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Run a simple Druid cluster

Command to run the docker image :

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

git clone https://github.com/deepak-rai/druid-caravel-docker.git
cd docker-druid
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:
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
{"task":"index_hadoop_test_data_2017-02-25T04:01:12.810Z"}
  • Sample query command(to be run from within the docker):
root@geo-qa1002:/# curl -X 'POST' -H 'Content-Type:application/json' -d @/home/druid/sample_data/query.json http://localhost:8082/druid/v2/?pretty
[ {
  "version" : "v1",
  "timestamp" : "2017-01-20T00:00:00.000Z",
  "event" : {
    "4000_unique_users" : 2.0
  }
} ]root@geo-qa1002:/#

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages