Export dataSource from Druid to csv file

Hi everyone.
I am trying to backup dataSource : “statistic-hourly” from Druid. But, I don’t have solution for this. Can anyone help me to export dataSource from druid to csv file. Thanks so much.

Hi Thao,
Druid relies on Deep Storage as a permanent backup of your data (http://druid.io/docs/latest/dependencies/deep-storage.html)

As long as the deep storage has backup or proper redundancy configured, you can recover your data.

Cheers,

Nishant

But can you give me a solution in how to export dataSource to csv file. It is all I need. thanks

The closest to this is the recently added dump-segment tool which can dump your segment contents in json format, you can probably extend that to dump rows in csv format,
related docs - https://github.com/druid-io/druid/blob/master/docs/content/operations/dump-segment.md