docker run --name flnk --volumes-from hdp --link hdp flink
external networking is used because of http://bugs.java.com/bugdatabase/view_bug.do?bug_id=5049974 workaround. docker uses underscores in network and host naming ...
docker network create --driver overlay iot.net
docker-compose -p iot up
# docker-compose -p iot exec elastic /bin/bash
curl -XPUT 'http://localhost:9200/iot-kura/' -d '{
"settings": {
"index": {
"number_of_shards": 5,
"number_of_replicas": 1
}
},
"_all": {
"enabled": false
},
"mappings": {
"kura-entry": {
"properties": {
"device_id": {
"type": "string"
},
"unit": {
"type": "string"
},
"value": {
"type": "double"
},
"count": {
"type": "long"
},
"timestamp": {
"type": "date",
"format": "epoch_millis"
},
"location": {
"type": "geo_point"
}
}
}
}
}'
curl 'localhost:9200/_cat/indices?v'
curl -XPOST 'http://localhost:9200/iot-kura/kura-entry?pretty' -d '{
"timestamp": "1466079132988",
"location": {
"lat": 48.1458923,
"lon": 17.1071373
},
"unit": "C",
"count": "120",
"value": "2.3313523654E10",
"device_id": "kura.device.name"
}'
Content type
Image
Digest
Size
400.9 MB
Last updated
almost 10 years ago
docker pull p4km9y/flink