hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lok <fula...@gmail.com>
Subject Getting NameNode instance from DistributedFileSystem
Date Mon, 13 Feb 2012 09:29:56 GMT
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!

Mime
View raw message