Design exportToHDFS() API (NIY).