当前位置:网站首页>Spark Learning: compile spark source code in win10
Spark Learning: compile spark source code in win10
2022-07-24 09:37:00 【I love evening primrose a】
compile Spark Source code
One 、 Environmental preparation
1、JDK1.8
2、scala 2.12.15
3、maven 3.8.5
3、Spark3.2.1
spark Download the latest sourcecode
Two 、 compile
1、 Open source parent pom.xml modify scala/maven/java Corresponding version 


2、 To configure maven Mirror source
Alibaba cloud
3、 stay cmd/powershell Move to the source directory parent pom.xml In the directory
mvn -DskipTests clean package
// Use mvn Skip unit test compilation

3、 ... and 、IDE Import execution SparkPi.scala
1、 stay windows Debugging in environment Spark Program , Need to use winutils.exe, Here is a reference to the following article
Windows debugging 、 Development Spark Program
2、 Report errors NoClassDefFoundError:scala/collection/Seq
The reason is just generated spark The related dependent package was not found , hold assembly\target\scala-2.11\jar Lower generation spark The required jar Package is added to the examples Module in 
3、 Report errors Could not find spark-version-info.properties
newly build spark-version-info.properties To examples Of resources Catalog , Add version information to the file , As shown below 
in addition , You need to specify the deployment mode and main class
Can be local mode :-Dspark.master=local
It can also be a machine on a virtual machine :-Dspark.master=spark://192.168.127.108:7077
perfect !
边栏推荐
- Gin framework uses session and redis to realize distributed session & Gorm operation mysql
- PHP debugging tool - socketlog installation and usage
- Getting started with web security - open source firewall pfsense installation configuration
- The difference between & &, | and |
- SDUT compilation principle experimental code
- A null pointer exception is reported when the wrapper class inserts into the empty field of the database table
- One year after I came to Ali, I ushered in my first job change
- RxJS Beginner Guide
- & 和 &&、| 和 || 的区别
- DP longest common subsequence detailed version (LCS)
猜你喜欢

dp最长公共子序列详细版本(LCS)

03_ UE4 advanced_ illumination

Gnuplot software learning notes

RxJS Beginner Guide

Six pictures show you why TCP shakes three times?

Cess test online line! The first decentralized storage network to provide multiple application scenarios

The difference between & &, | and |
![[MySQL] - deep understanding of index](/img/a6/6ca1356fe11bd33ec7362ce7cdc652.png)
[MySQL] - deep understanding of index

Embedded development: Tools - optimizing firmware using DRT

OPENCV学习DAY5
随机推荐
ASI-20220222-Implicit PendingIntent
Jenkins post build script does not execute
Recursion - if the function calls itself internally, then the function is a recursive function & the effect is the same as that of the loop & the push condition return should be added, otherwise stack
[don't bother to strengthen learning] video notes (III) 2. SARS learning realizes maze walking
OPENCV学习DAY5
Learning transformer: overall architecture and Implementation
Es document CRUD
配置系统环境变量的时候误删了Path怎么办?
[note] what is kernel / user space? Let's start with how the CPU runs the program
SQL 优化原则
Linux deployment mysql8.0
What is the component customization event we are talking about?
科目1-2
Scarcity in Web3: how to become a winner in a decentralized world
Getting started with web security - open source firewall pfsense installation configuration
Scheme and software analysis of dual computer hot standby system "suggestions collection"
PHP Basics - session control - cookies
PHP debugging tool - socketlog installation and usage
SQL server2012 installation method details [easy to understand]
Android system security - 5.3-apk V2 signature introduction