I have a class (I removes try/catch for readability):
public class HadoopFileSystem {
private FileSystem m_fileSystem = null;
public HadoopFileSystem()
You are creating an object based on a configuration which is hard-coded. This basically means that you're creating 2 identical objects. Because these objects are identical, the JVM will reference to the same object. So h1 and h2 are referencing the same object.
The reason for this is because you're getting an existing instance of an object based on a configuration file. If the configuration is different for h1 and h2, it will not be the same instance anymore.