mirror of
https://github.com/apache/sqoop.git
synced 2025-05-21 11:21:39 +08:00
SQOOP-891: Sqoop export from S3 to MySQL fails when S3 is not default filesystem.
(Jurgen Van Gael via Jarek Jarcec Cecho)
This commit is contained in:
parent
403f0aece2
commit
fd756a0c40
@ -224,7 +224,11 @@ public List<InputSplit> getSplits(JobContext job)
|
||||
// times, one time each for each pool in the next loop.
|
||||
List<Path> newpaths = new LinkedList<Path>();
|
||||
for (int i = 0; i < paths.length; i++) {
|
||||
Path p = new Path(paths[i].toUri().getPath());
|
||||
FileSystem fs = paths[i].getFileSystem(conf);
|
||||
|
||||
//the scheme and authority will be kept if the path is
|
||||
//a valid path for a non-default file system
|
||||
Path p = fs.makeQualified(paths[i]);
|
||||
newpaths.add(p);
|
||||
}
|
||||
paths = null;
|
||||
|
Loading…
Reference in New Issue
Block a user