当前位置:网站首页>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 !
边栏推荐
- What are the 6% annualized products?
- Detailed sequence traversal of leetcode102 binary tree
- What is the component customization event we are talking about?
- Why does TCP shake hands three times instead of two times (positive version)
- Makefile variables and dynamic library static library
- Li Kou 300 longest increasing subsequence dynamic programming
- 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
- gnuplot软件学习笔记
- Firewalld firewall related commands
- Hands on deep learning (VII) -- bounding box and anchor box
猜你喜欢

What is the component customization event we are talking about?

来阿里一年后我迎来了第一次工作变动....

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

Account 1-3

Android Version Description security privacy 13

Code random notes_ Linked list_ Turn over the linked list in groups of 25K

It is reported that the prices of some Intel FPGA chip products have increased by up to 20%

Cess test online line! The first decentralized storage network to provide multiple application scenarios
![[200 opencv routines] 236. Principal component analysis of feature extraction (openCV)](/img/31/57217a67533d8d37bf86d507996ed7.png)
[200 opencv routines] 236. Principal component analysis of feature extraction (openCV)

OPENCV学习DAY5
随机推荐
Little dolphin "transformed" into a new intelligent scheduling engine, which can be explained in simple terms in the practical development and application of DDS
Replace the function of pow with two-dimensional array (solve the time overrun caused by POW)
ASI-20220222-Implicit PendingIntent
[don't bother to strengthen learning] video notes (II) 1. What is Q-learning?
Vim: use tags file to extend the automatic code completion function of YCM for the third-party library of C language
Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng
PHP Basics - PHP super global variables
Problem: filesystemversionexception: you have version null and I want version 8
Wenxin big model raises a new "sail", and the tide of industrial application has arrived
Dorissql syntax Usage Summary
Definition and initialization of cv:: mat
JS, the return statement used in the for loop should be placed in the function to terminate the loop, similar to the invalid return problem in break & foreach
Introduction to common ansible modules
DSP development, using CCS software to establish engineering and burning
What's the difference between testing / developing programmers' professionalism and salted fish? They don't want to be excellent coders?
Racecar multi-point navigation experiment based on ROS communication mechanism
详解LinkedList
Detailed explanation of the whole process of R & D demand splitting | agile practice
Vector control of permanent magnet synchronous motor (I) -- mathematical model
程序的编译与链接