The source code for this chapter can be found at https://github.com/PacktPublishing/Java-Deep-Learning-Cookbook/tree/master/10_Developing_applications_in_distributed_environment/sourceCode/cookbookapp/src/main/java/com/javacookbook/app.
After cloning our GitHub repository, navigate to the Java-Deep-Learning-Cookbook/10_Developing_applications_in_distributed_environment/sourceCode directory. Then, import the cookbookapp project as a Maven project by importing the pom.xml file.
You need to run either of the following preprocessor scripts (PreProcessLocal.java or PreProcessSpark.java) before running the actual source code: