This task is sub task of
"1. When trying to make a directory under an existing file, HDFS throws an IOException while LocalFileSystem doesn't.
An IOException seems good here. "
Actually HDFS throws FileNotFoundException in this case (in FSDirectory.mkdirs() ). So I guess we should do the same.