提交Druid Supervisor数据源创建任务时遇No FileSystem for scheme: HTTP错误
Looks like you've hit a classic protocol mix-up in your Druid-HDFS setup! Let's break down what's going wrong and fix it step by step.
Root Cause of the Error
The error No FileSystem for scheme: http occurs because you've configured Druid to use an HTTP URI for HDFS storage—but HDFS uses its own dedicated hdfs:// scheme, not http://. The http://hadoopmachince:9000/... value you set is actually the web UI endpoint of HDFS, not the proper filesystem access URI.
Step-by-Step Fixes
Correct the HDFS Storage Path Configuration
Open yourcommon.runtime.propertiesfile, locate the problematic line:druid.storage.storageDirectory=http://hadoopmachince:9000/druid/segmentsReplace it with the valid HDFS scheme:
druid.storage.storageDirectory=hdfs://hadoopmachince:9000/druid/segmentsBefore restarting services, make sure the target directory exists in HDFS and Druid has write permissions. Run these HDFS commands to set it up:
hadoop fs -mkdir -p /druid/segments hadoop fs -chown -R druid:druid /druid/segments(Swap
druid:druidwith the user/group your Druid services run under if different.)Verify HDFS Connectivity & Dependencies
- Check if Druid nodes can reach the HDFS NameNode: run
telnet hadoopmachince 9000to confirm the port is open and accessible. - Ensure Druid can access HDFS core configuration files. Copy
core-site.xmlandhdfs-site.xmlfrom your Hadoop cluster into Druid'sconf/druid/_commondirectory—this lets Druid auto-detect HDFS settings without manual URI adjustments. - For imply-2.3.9, HDFS dependencies are included by default, but if issues persist, double-check that
hadoop-hdfs-2.7.3.jarand related Hadoop jars are present in Druid'slibfolder.
- Check if Druid nodes can reach the HDFS NameNode: run
Restart Druid Services
After updating the configuration, restart the Druid services that handle storage operations: Coordinator, Overlord, and Historical nodes. This ensures the new HDFS settings are loaded properly.
Additional Checks
If you still run into issues:
- Confirm your HDFS cluster is healthy (check NameNode and DataNode statuses)
- Verify the HDFS NameNode hostname
hadoopmachinceis resolvable from all Druid nodes (add it to/etc/hostsif DNS isn't set up)
内容的提问来源于stack exchange,提问作者Sudhanshu Lenka

