mirror of https://github.com/apache/druid.git
Merge pull request #448 from metamx/hdfs-config-fix
path should already be a proper uri
This commit is contained in:
commit
4d2535258f
|
@ -66,12 +66,7 @@ public class HdfsDataSegmentPusher implements DataSegmentPusher
|
|||
@Override
|
||||
public String getPathForHadoop(String dataSource)
|
||||
{
|
||||
try {
|
||||
return new Path(config.getStorageDirectory(), dataSource).makeQualified(FileSystem.get(hadoopConfig)).toString();
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw Throwables.propagate(e);
|
||||
}
|
||||
return new Path(config.getStorageDirectory(), dataSource).toUri().toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue