Support generic Hadoop Compatible Filesystem (short version)

This is a short version of #388.
I think the same but without it, the test just failed. Help is appreciated.