« Return to Thread: Thread safety issue in Path.getFileSystem()

Thread safety issue in Path.getFileSystem()

by bhupesh bansal :: Rate this Message:

Reply to Author | View in Thread

I have two hadoop jobs which makes a Path and tries to get the FileSystem using.
 
    Path destFile = new Path("AAA");
    FileSystem fs = destFile.getFileSystem(new Configuration());

I am seeing this exception .. I am using hadoop-0.20.0.

java.util.ConcurrentModificationException
        at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
        at java.util.AbstractList$Itr.next(AbstractList.java:343)
        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1028)
        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:979)
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:435)
        at org.apache.hadoop.fs.FileSystem.getDefaultUri(FileSystem.java:103)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:95)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:180)
        at org.apache.hadoop.fs.Path.getFileSystem(Path.java:175)

Have folks seen these exceptions before ??

 « Return to Thread: Thread safety issue in Path.getFileSystem()