hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eli Finkelshteyn <iefin...@gmail.com>
Subject Checking Which Filesystem Being Used?
Date Tue, 07 Feb 2012 22:24:55 GMT
Hi Folks,
This might be a stupid question, but I'm new to Java and Hadoop, so...

Anyway, if I want to check what FileSystem is currently being used at 
some point (i.e. evaluating FileSystem.get(conf)), what would be the 
most elegant way of doing that? Should I just do something like:
     if (FileSystem.get(conf) == "HDFS") {...}
Or is there a better way?


View raw message