- Java Deep Learning Projects
- Md. Rezaul Karim
- 126字
- 2021-06-18 19:08:04
Configuring the programming environment
I am assuming that Java is already installed on your machine and the JAVA_HOME is set too. Also, I'm assuming that your IDE has the Maven plugin installed. If so, then just create a Maven project and add the project properties as follows:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
<jdk.version>1.8</jdk.version>
<spark.version>2.3.0</spark.version>
</properties>
In the preceding tag, I specified Spark (that is, 2.3.0), but you can adjust it. Then add the following dependencies in the pom.xml file:
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-mllib_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-graphx_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-yarn_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-shuffle_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-streaming-flume_2.11</artifactId>
<version>${spark.version}</version>
</dependency>
<dependency>
<groupId>com.databricks</groupId>
<artifactId>spark-csv_2.11</artifactId>
<version>1.3.0</version>
</dependency>
</dependencies>
Then if everything goes smoothly, all the JAR files will be downloaded in the project home as Maven dependencies. Alright! Then we can start writing the code.
推薦閱讀
- Microsoft Dynamics CRM Customization Essentials
- 控制與決策系統(tǒng)仿真
- TestStand工業(yè)自動化測試管理(典藏版)
- Hands-On Neural Networks with Keras
- Android游戲開發(fā)案例與關(guān)鍵技術(shù)
- Python:Data Analytics and Visualization
- 網(wǎng)中之我:何明升網(wǎng)絡(luò)社會論稿
- 奇點(diǎn)將至
- Web璀璨:Silverlight應(yīng)用技術(shù)完全指南
- Machine Learning with Spark(Second Edition)
- 計算機(jī)硬件技術(shù)基礎(chǔ)(第2版)
- Access 2007數(shù)據(jù)庫入門與實(shí)例應(yīng)用金典
- 單片機(jī)C51應(yīng)用技術(shù)
- Learning iOS 8 for Enterprise
- 工業(yè)機(jī)器人技術(shù)