Hello,
I am using Tranquility to fetch data from Kafka and send it to indexing service for indexing. Everything is working fine related to indexing and segment creation.
But all the task are going to local storage instead of deep storage. This is configuration for overlord and middle manager:
Overlord
druid.host={HOST_IP}:{OVERLORD_PORT}
druid.port=${OVERLORD_PORT}
druid.service=druid/overlord
Run the overlord in local mode with a single peon to execute tasks
#druid.indexer.runner.type=local
#druid.indexer.queue.startDelay=PT0M
#druid.indexer.runner.javaOpts="-server -Xmx256m"
#druid.indexer.fork.property.druid.processing.numThreads=1
#druid.indexer.fork.property.druid.computation.buffer.size=100000000
Run the overlord in remote mode
druid.indexer.runner.type=remote
druid.indexer.runner.minWorkerVersion=0
Upload all task logs to deep storage
druid.indexer.logs.type=log
druid.indexer.logs.directory=/mnt/xvdf/druid/prod/indexing-logs/v1
Store all task state in the metadata storage
druid.indexer.storage.type=metadata
Deep storage (local filesystem for examples - don’t use this in production)
Deep storage (local filesystem for examples - don’t use this in production)
druid.storage.type=s3
druid.storage.bucket=${bucket}
druid.storage.baseKey=druid/prod/segments/
druid.s3.accessKey=${DRUID_S3_ACCESS_KEY}
druid.s3.secretKey=${DRUID_S3_SECRET_KEY}
MiddleManager
druid.host={HOST_IP}:{MIDDLEMANAGER_PORT}
druid.port=${MIDDLEMANAGER_PORT}
druid.service=druid/middlemanager
Store task logs in deep storage
druid.indexer.logs.type=log
druid.indexer.logs.directory=/mnt/xvdf/druid/prod/indexing-logs/v1/
Resources for peons
druid.indexer.runner.javaOpts=-server -Xmx3g -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+PrintGCDetails -XX:+PrintGCTimeStamps
druid.indexer.task.baseDir=/mnt/xvdf/druid/prod/
druid.indexer.task.baseTaskDir=/mnt/xvdb/druid/prod/persistent/task/
Peon properties
druid.indexer.fork.property.druid.monitoring.monitors=[“com.metamx.metrics.JvmMonitor”]
druid.indexer.fork.property.druid.processing.buffer.sizeBytes=536870912
druid.indexer.fork.property.druid.processing.numThreads=2
druid.indexer.fork.property.druid.segmentCache.locations=[{“path”: “/mnt/xvdb/druid/persistent/zk_druid”, “maxSize”: 0}]
druid.indexer.fork.property.druid.server.http.numThreads=50
druid.indexer.fork.property.druid.storage.directory=/mnt/xvdf/druid/prod/indexing-logs/v1
druid.indexer.fork.property.druid.storage.type=log
Deep storage (local filesystem for examples - don’t use this in production)
druid.storage.type=s3
druid.storage.bucket=${bucket}
druid.storage.baseKey=druid/prod/segments/
druid.s3.accessKey=${DRUID_S3_ACCESS_KEY}
druid.s3.secretKey=${DRUID_S3_SECRET_KEY}
druid.worker.capacity=5
druid.worker.ip=${HOST_IP}
druid.worker.version=0
This is the log message from Indexing Task, where I can see it is using local instead of S3.
2016-07-05T23:13:25,772 INFO [apnxs-streaming-lld-2016-07-05T22:00:00.000Z-persist-n-merge] io.druid.segment.realtime.plumber.RealtimePlumber - Pushing [apnxs-streaming-lld_2016-07-05T22:00:00.000Z_2016-07-05T23:00:00.000Z_2016-07-05T21:54:22.071Z] to deep storage
2016-07-05T23:13:25,792 INFO [apnxs-streaming-lld-2016-07-05T22:00:00.000Z-persist-n-merge] io.druid.segment.loading.LocalDataSegmentPusher - Copying segment[apnxs-streaming-lld_2016-07-05T22:00:00.000Z_2016-07-05T23:00:00.000Z_2016-07-05T21:54:22.071Z] to local filesystem at location[/tmp/druid/localStorage/apnxs-streaming-lld/2016-07-05T22:00:00.000Z_2016-07-05T23:00:00.000Z/2016-07-05T21:54:22.071Z/0]
2016-07-05T23:13:25,794 INFO [apnxs-streaming-lld-2016-07-05T22:00:00.000Z-persist-n-merge] io.druid.segment.loading.LocalDataSegmentPusher - Compressing files from[/mnt/xvdb/druid/prod/persistent/task/index_realtime_apnxs-streaming-lld_2016-07-05T22:00:00.000Z_0_0/work/persist/apnxs-streaming-lld/2016-07-05T22:00:00.000Z_2016-07-05T23:00:00.000Z/merged] to [/tmp/druid/localStorage/apnxs-streaming-lld/2016-07-05T22:00:00.000Z_2016-07-05T23:00:00.000Z/2016-07-05T21:54:22.071Z/0/index.zip]
Not able to find why it is using /tmp directory and how to change it.
Thanks,
Navneet