mirror of https://github.com/apache/druid.git
path should already be a proper uri
works around issues when config cannot properly initialize early in the indexing process
This commit is contained in:
parent
183a133ee4
commit
c4402cc84d
|
@ -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