当前位置:网站首页>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 !
边栏推荐
- Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
- OPENCV学习DAY5
- Color recognition of regions of interest in pictures and videos based on OpenCV
- Learning transformer: overall architecture and Implementation
- Aruba learning notes 06 wireless control AC basic configuration (CLI)
- 《动手学深度学习》(七) -- 边界框和锚框
- PHP debugging tool - how to install and use firephp
- js定位大全获取节点的兄弟,父级,子级元素含robot实例
- Leetcode94 detailed explanation of middle order traversal of binary tree
- Six pictures show you why TCP shakes three times?
猜你喜欢

Android Version Description security privacy 13

Aruba learning notes 06 wireless control AC basic configuration (CLI)

Linked list - 24. Exchange nodes in the linked list in pairs

C#/VB. Net: convert word or EXCEL documents to text

Description of MATLAB functions

Linked list - 19. Delete the penultimate node of the linked list
Gin framework uses session and redis to realize distributed session & Gorm operation mysql

Will your NFT disappear? Dfinity provides the best solution for NFT storage

Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS

How to judge and analyze NFT market briefly through NFT go?
随机推荐
[note] what is kernel / user space? Let's start with how the CPU runs the program
gnuplot软件学习笔记
云原生(十二) | Kubernetes篇之Kubernetes基础入门
Jenkins post build script does not execute
It is reported that the prices of some Intel FPGA chip products have increased by up to 20%
The next stop of data visualization platform | gifts from domestic open source data visualization datart "super iron powder"
[don't bother to strengthen learning] video notes (II) 1. What is Q-learning?
It's eleven again. Those jokes about nagging programmers going home for blind dates
Detailed LinkedList
OPENCV学习DAY5
Asyncdata cross domain error after nuxt route switching
Account 1-2
Foreign lead operation takes one month to collect money, and the sideline still needs it
Firewall off and on command
How to improve office efficiency through online collaborative documents
JS locate Daquan to get the brother, parent and child elements of the node, including robot instances
A null pointer exception is reported when the wrapper class inserts into the empty field of the database table
PHP Basics - session control - Session
Data center: started in Alibaba and started in Daas
Li Kou 300 longest increasing subsequence dynamic programming