Hi folks, I'm using the FileSystem class to connect to a HDFS installation. I'm also checking the instance if it's of DistributedFileSystem.
FileSystem fs = FileSystem.get(uri, conf, "hadoop"); > > DistributedFileSystem dfs = null; > > if (fs instanceof DistributedFileSystem) { > ... > Was wondering if there's a way to obtain an instance of the NameNode class via the DistributedFileSystem or do I need to use ClientProtocol (which doesn't seem likely as the InterfaceAudience is set to Private)? Thanks!