当前位置:网站首页>伪分布安装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
边栏推荐
- ESP32_Arduino
- Disk management and file system
- 下载并安装MongoDB
- Install redis and deploy redis high availability cluster
- 100 deep learning cases | day 41 - convolutional neural network (CNN): urbansound 8K audio classification (speech recognition)
- 漫画:什么是IaaS、PaaS、SaaS?
- Day (5) of picking up matlab
- VIM uses vundle to install the code completion plug-in (youcompleteme)
- Matplotlib tutorial 05 --- operating images
- About JMeter startup flash back
猜你喜欢
建站常用软件PhpStudy V8.1图文安装教程(Windows版)超详细
第九天 static 抽象类 接口
Grbl learning (I)
Solution of garbled code on idea console
299. Number guessing game
RAID磁盘阵列与RAID5的创建
What is the experience of using prophet, an open source research tool?
Cloud migration practice in the financial industry Ping An financial cloud integrates hypermotion cloud migration solution to provide migration services for customers in the financial industry
How to upgrade openstack across versions
Xinwangda: HEV and Bev super fast charging fist products are shipped on a large scale
随机推荐
Take according to the actual situation, classify and summarize once every three levels, and see the figure to know the demand
Hypermotion cloud migration completes Alibaba cloud proprietary cloud product ecological integration certification
Meaning and usage of volatile
Detailed explanation of gzip and gunzip decompression parameters
Matplotlib tutorial 05 --- operating images
Gartner predicts that the scale of cloud migration will increase significantly; What are the advantages of cloud migration?
Day (6) of picking up matlab
Day (4) of picking up matlab
第十天 异常机制
Cloud migration practice in the financial industry Ping An financial cloud integrates hypermotion cloud migration solution to provide migration services for customers in the financial industry
漫画:什么是IaaS、PaaS、SaaS?
Nacos detailed explanation, something
Day (3) of picking up matlab
Redis "8" implements distributed current limiting and delay queues
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
Day (5) of picking up matlab
建站常用软件PhpStudy V8.1图文安装教程(Windows版)超详细
How to conduct application security test (AST)
第九天 static 抽象类 接口
Postman batch production body information (realize batch modification of data)