I have a class (I removes try/catch for readability):
public class HadoopFileSystem { private FileSystem m_fileSystem = null; public HadoopFileSystem()
m_fileSystem = FileSystem.get(l_configuration ); is a static call even if you have two different objects created. You need to find a way to not make this call static for two different objects.
m_fileSystem = FileSystem.get(l_configuration );
Try this out to do away with the problem,
conf.setBoolean("fs.hdfs.impl.disable.cache", true);