当前位置:网站首页>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 !
边栏推荐
- Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng
- Aruba学习笔记06-无线控制AC基础配置(CLI)
- One year after I came to Ali, I ushered in my first job change
- PHP caching system - PHP uses Memcache
- [don't bother with reinforcement learning] video notes (I) 2. Summary of reinforcement learning methods
- JS locate Daquan to get the brother, parent and child elements of the node, including robot instances
- CodeBlocks shortcut key operation Xiaoquan
- [Luogu p5829] [template] mismatch tree (string) (KMP)
- Dorissql syntax Usage Summary
- Understanding of magnetic parameters in Hall sensors
猜你喜欢
![[example] v-contextmenu right click menu component](/img/d7/9287b24a6d9ada01a7f258dd34f0f8.jpg)
[example] v-contextmenu right click menu component

Account 1-3
![[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)](/img/5e/782e5c33accc455994aae044970431.png)
[assembly language practice] solve the unary quadratic equation ax2+bx+c=0 (including source code and process screenshots, parameters can be modified)

MySQL Basics (I) -- SQL Basics

& 和 &&、| 和 || 的区别

Android system security - 5.2-apk V1 signature introduction

Open source summer interview | learn with problems, Apache dolphin scheduler, Wang Fuzheng

Leetcode94 detailed explanation of middle order traversal of binary tree

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

Re6:读论文 LeSICiN: A Heterogeneous Graph-based Approach for Automatic Legal Statute Identification fro
随机推荐
Racecar multi-point navigation experiment based on ROS communication mechanism
Nuggets manufacturing industry, digital commerce cloud supply chain collaborative management system to achieve full chain intelligent management and control
Makefile variables and dynamic library static library
Lung CT segmentation challenge 2017 dataset download and description
PHP debugging tool - socketlog installation and usage
PHP log base - monolog knowledge collation
& 和 &&、| 和 || 的区别
PHP caching system - PHP uses Memcache
MySQL基础篇(一)-- SQL基础
Aruba learning notes 06 wireless control AC basic configuration (CLI)
[don't bother to strengthen learning] video notes (III) 3. SARS (lambda)
Boundless dialogue | participate in the live broadcast on July 25 and win the prize
[assembly language practice] (II). Write a program to calculate the value of expression w=v- (x+y+z-51) (including code and process screenshots)
Map processing background management menu data
代码随想录笔记_链表_25K个一组翻转链表
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
NVIDIA set persistent mode
Vim: use tags file to extend the automatic code completion function of YCM for the third-party library of C language
JS locate Daquan to get the brother, parent and child elements of the node, including robot instances
Scarcity in Web3: how to become a winner in a decentralized world