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
|
@Override
|
||||||
public String getPathForHadoop(String dataSource)
|
public String getPathForHadoop(String dataSource)
|
||||||
{
|
{
|
||||||
try {
|
return new Path(config.getStorageDirectory(), dataSource).toUri().toString();
|
||||||
return new Path(config.getStorageDirectory(), dataSource).makeQualified(FileSystem.get(hadoopConfig)).toString();
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
throw Throwables.propagate(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue