当前位置:网站首页>Pseudo Distributed installation spark
Pseudo Distributed installation spark
2022-04-23 16:39:00 【sparename】
spark install ( Pseudo Distributed installation )
Upload files
use xtfp Upload the file to /root/softwares
The configuration file
cd /root/softwares
# decompression
tar -zxvf spark-2.4.0-bin-hadoop2.7.tgz -C /usr/local/
cd /usr/local/
# rename
mv spark-2.4.0-bin-hadoop2.7/ spark-2.4.0
cd spark-2.4.0/conf/
# To configure spark-env.sh file
cp spark-env.sh.template spark-env.sh
vim spark-env.sh
<!-- Master node IP-->
export SPARK_MASTER_HOST=192.168.239.239
<!-- Task submission port -->
export SPARK_MASTER_PORT=7077
<!-- Every worker Use 2 nucleus , It depends on the kernel when your virtual machine is created -->
export SPARK_WORKER_CORES=2
<!-- Every worker Use 3g Memory , It depends on the memory when your virtual machine is created -->
export SPARK_WORKER_MEMORY=1g
<!-- modify spark The default port of the monitoring window is 8080-->
export SPARK_MASTER_WEBUI_PORT=8888
# To configure slaves file
cp slaves.template slaves
vi slaves
# Default slaves Now let's have a mainframe
# Because it is equipped with a single machine , Not the cluster , So there's no need to Slaves( To configure worker Slave node ), Namely localhost, Don't change the settings
# To spark-config.sh To configure jdk environment variable
cd /usr/local/spark-2.4.0/sbin/
vim spark-config.sh
export JAVA_HOME=/usr/local/jdk1.8.0_171
start-up spark
To the master node spark Of sbin Run under
./start-all.sh
# Check the process
jps
#shell operation
cd /usr/local/spark-2.4.0/bin/
./spark-shell
# visit , Verify success
http://192.168.239.239:4040/executors/
http://192.168.239.239:8080/
版权声明
本文为[sparename]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231631547869.html
边栏推荐
- Summary according to classification in sail software
- Installation and management procedures
- What does cloud disaster tolerance mean? What is the difference between cloud disaster tolerance and traditional disaster tolerance?
- Day (3) of picking up matlab
- Gartner 发布新兴技术研究:深入洞悉元宇宙
- The most detailed Backpack issues!!!
- MySQL master-slave synchronization pit avoidance version tutorial
- Take according to the actual situation, classify and summarize once every three levels, and see the figure to know the demand
- Use case execution of robot framework
- 深度学习100例 | 第41天-卷积神经网络(CNN):UrbanSound8K音频分类(语音识别)
猜你喜欢

Ali developed three sides, and the interviewer's set of combined punches made me confused on the spot

What is the experience of using prophet, an open source research tool?

Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out

Six scenarios of cloud migration

Project framework of robot framework

DanceNN:字节自研千亿级规模文件元数据存储系统概述

Summary according to classification in sail software

Deepinv20 installation MariaDB

Disk management and file system

loggie 源码分析 source file 模块主干分析
随机推荐
Nacos 详解,有点东西
LVM and disk quota
The font of the soft cell changes color
On the security of key passing and digital signature
Report FCRA test question set and answers (11 wrong questions)
Solution of garbled code on idea console
loggie 源码分析 source file 模块主干分析
The most detailed knapsack problem!!!
Download and install mongodb
关于局域网如何组建介绍
Installation and management procedures
logback的配置文件加载顺序
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
最詳細的背包問題!!!
Findstr is not an internal or external command workaround
基于GPU实例的Nanopore数据预处理
Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out
Construction of promtail + Loki + grafana log monitoring system
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme