title: Parsing XML files using Hadoop
body: <p>I have a Java application which parses ~8M files. In order to speed up the parsing, the application is created as multithreaded. Each file is parsed in a thread.
  Now I need to run it on Apache Hadoop with two Spark server nodes.
  what is the best practice to do that?<br>
  - Get rid of the threads and convert the thread-based processing into Map Reduce<br>
  - Keep the thread-based processing but implement the Map Reduce inside each thread</p>