hard coded HDFS path in druid_segments table

Hi all,

I just discovered that, Druid is storing HDFS segment path in DB with hard coded URI.

Yes, you can do that by specifying

druid.storage.storageDirectory=/druid

instead of

druid.storage.storageDirectory=hdfs://172.17.0.23:8020/druid/

in your runtime.properties file. But, you have to put appropriate hadoop configuration in the classpath so that FileSystem.getFileSystem(…) call gives the file system instance for “hdfs://172.17.0.23:8020/

– Himanshu

Hi Himanshu,

Good to know that. I am using hostname instead of IP for now.