当前位置:网站首页>伪分布安装spark
伪分布安装spark
2022-04-23 16:32:00 【sparename】
spark安装(伪分布安装)
上传文件
用xtfp上传文件至/root/softwares
配置文件
cd /root/softwares
#解压
tar -zxvf spark-2.4.0-bin-hadoop2.7.tgz -C /usr/local/
cd /usr/local/
#重命名
mv spark-2.4.0-bin-hadoop2.7/ spark-2.4.0
cd spark-2.4.0/conf/
#配置spark-env.sh文件
cp spark-env.sh.template spark-env.sh
vim spark-env.sh
<!--主节点IP-->
export SPARK_MASTER_HOST=192.168.239.239
<!--任务提交端口-->
export SPARK_MASTER_PORT=7077
<!--每个worker使用2核,视自己的虚拟机创建的时候内核而定-->
export SPARK_WORKER_CORES=2
<!--每个worker使用3g内存,视自己的虚拟机创建的时候内存而定-->
export SPARK_WORKER_MEMORY=1g
<!--修改spark监视窗口的端口默认8080-->
export SPARK_MASTER_WEBUI_PORT=8888
#配置slaves文件
cp slaves.template slaves
vi slaves
#默认slaves现在就主机一台
#由于配的是单机,不是集群,所以不用Slaves(配置worker从机节点),就是localhost,不用改设置
#到spark-config.sh配置jdk环境变量
cd /usr/local/spark-2.4.0/sbin/
vim spark-config.sh
export JAVA_HOME=/usr/local/jdk1.8.0_171
启动spark
到主节点spark的sbin下运行
./start-all.sh
#查看进程
jps
#shell操作
cd /usr/local/spark-2.4.0/bin/
./spark-shell
#访问,验证是否成功
http://192.168.239.239:4040/executors/
http://192.168.239.239:8080/
版权声明
本文为[sparename]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_51830687/article/details/124309052
边栏推荐
- 最詳細的背包問題!!!
- 451. 根据字符出现频率排序
- 捡起MATLAB的第(7)天
- Day (6) of picking up matlab
- Nanny Anaconda installation tutorial
- VMware Workstation cannot connect to the virtual machine. The system cannot find the specified file
- [pyGame games] how did angry birds, a mobile game that became popular all over the world 10 years ago, dominate the list? Classic return
- Solution to the fourth "intelligence Cup" National College Students' IT skills competition (group B of the final)
- 捡起MATLAB的第(4)天
- JSP learning 3
猜你喜欢
Sort by character occurrence frequency 451
Day (7) of picking up matlab
Day (9) of picking up matlab
Review 2021: how to help customers clear the obstacles in the last mile of going to the cloud?
下载并安装MongoDB
The solution of not displaying a whole line when the total value needs to be set to 0 in sail software
安装及管理程序
Cloudy data flow? Disaster recovery on cloud? Last value content sharing years ago
ESP32编译环境的搭建
NVIDIA显卡驱动报错
随机推荐
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
捡起MATLAB的第(4)天
Homewbrew installation, common commands and installation path
Disk management and file system
Oak-d raspberry pie cloud project [with detailed code]
The most detailed Backpack issues!!!
Use if else to judge in sail software - use the title condition to judge
Jour (9) de ramassage de MATLAB
299. 猜数字游戏
捡起MATLAB的第(10)天
Force buckle-746 Climb stairs with minimum cost
Grbl learning (II)
Xinwangda: HEV and Bev super fast charging fist products are shipped on a large scale
MySQL的btree索引和hash索引区别
力扣-198.打家劫舍
How magical is the unsafe class used by all major frameworks?
Countdown 1 day ~ 2022 online conference of cloud disaster tolerance products is about to begin
Review 2021: how to help customers clear the obstacles in the last mile of going to the cloud?
Real time operation of vim editor
漫画:什么是IaaS、PaaS、SaaS?