Support generic Hadoop Compatible Filesystem (short version)

This is a short version of #388.
UnderFileSystemHdfs.java imports hadoop so we need it here.