The new API is cleaner and faster. The old API was deprecated but after a while, it got reverted. Which API is better to use depends on your tasks. I suggest you use the new API wherever possible because it is optimized. But in some cases where you might want to classes like MultipleTxtOutputFormat, which is not present in the new API. In such cases, you can use the old API.