当前位置:网站首页>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
边栏推荐
- 关于 background-image 渐变gradient()那些事!
- Ali developed three sides, and the interviewer's set of combined punches made me confused on the spot
- Knowledge points and examples of [seven input / output systems]
- 阿里研发三面,面试官一套组合拳让我当场懵逼
- Detailed explanation of file operation (2)
- Use case labeling mechanism of robot framework
- vim编辑器的实时操作
- Day (4) of picking up matlab
- 第十天 异常机制
- Redis "8" implements distributed current limiting and delay queues
猜你喜欢

The font of the soft cell changes color

Day 10 abnormal mechanism

Gartner 發布新興技術研究:深入洞悉元宇宙
![Knowledge points and examples of [seven input / output systems]](/img/5f/759a73836f79ef848f449930dcc1b1.png)
Knowledge points and examples of [seven input / output systems]

各大框架都在使用的Unsafe类,到底有多神奇?

Sort by character occurrence frequency 451

Project framework of robot framework

磁盘管理与文件系统

Best practice of cloud migration in education industry: Haiyun Jiexun uses hypermotion cloud migration products to implement progressive migration for a university in Beijing, with a success rate of 1

Nacos 详解,有点东西
随机推荐
MySQL master-slave synchronization pit avoidance version tutorial
Introduction to how to set up LAN
Detailed explanation of gzip and gunzip decompression parameters
04 Lua 运算符
JSP learning 1
Install MySQL on MAC
Findstr is not an internal or external command workaround
Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin
Redis "8" implements distributed current limiting and delay queues
5-minute NLP: text to text transfer transformer (T5) unified text to text task model
Change the icon size of PLSQL toolbar
Gartner announces emerging technology research: insight into the meta universe
What does cloud disaster tolerance mean? What is the difference between cloud disaster tolerance and traditional disaster tolerance?
阿里研发三面,面试官一套组合拳让我当场懵逼
What is the experience of using prophet, an open source research tool?
Server log analysis tool (identify, extract, merge, and count exception information)
安装及管理程序
MySql主从复制
Sail soft calls the method of dynamic parameter transfer and sets parameters in the title
Deepinv20 installation MariaDB