throw spark exception when dealing with symlinks