当前位置:网站首页>spark 安装与使用 educoder
spark 安装与使用 educoder
2022-04-22 04:18:00 【南风不竞呀】
大致顺序是这样,仅供参考,欢迎指正!命令行不能直接复制,所以出错的可能比较大。
第一关:
mkdir /app
cd /opt
tar -zxvf scala-2.12.7.tgz -C /app
vi /etc/profile
SCALA_HOME=/app/scala-2.12.7
export PATH =$PATH:$SCALA_HOME/bin
cd /app
cd scala-2.12.7
scala -version
第2关:安装与配置Spark开发环境
mkdir /app
cd /opt
tar -zxvf spark-2.2.2-bin-hadoop2.7.tgz -C /app
vim /etc/profile
SPARK_HOME=/app/spark-2.2.2-bin-hadoop2.7
export PATH=$PATH:$SPARK_HOME/bin
cd /app/spark-2.2.2-bin-hadoop2.7/conf
cp spark-env.sh.template spark-env.sh
vim spark-env.sh
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_111
export SCALA_HOME=/app/scala-2.12.7
export HADOOP_HOME=/usr/local/hadoop/
export HADOOP_CONF_DIR=/usr/local/hadoop/etc/hadoop
export SPARK_MASTER_IP=machine_name # machine_name 根据自己的主机确定
export SPARK_LOCAL_IP=machine_name # machine_name 根据自己的主机确定(hostname一下将自己的主机号替换!!!!!)
cd /app/spark-2.2.2-bin-hadoop2.7
./sbin/start-all.sh
jps
版权声明
本文为[南风不竞呀]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_56494324/article/details/124322845
边栏推荐
猜你喜欢

Developing grpc application based on well-known micro service framework go micro

L'échange et le partage des données sont au cœur de l'amélioration de l'efficacité de l'utilisation des données dans l'industrie des transports.

sumo 教程——高速公路

专家有料 | 张祖优:腾讯云DevSecOps实践与开源治理探索

Zuo Chengyun - Dachang question brushing class - the minimum number of exchanges of one character on the left and another character on the right

When calling a function, what about passing parameters~

智慧用电安全管理系统

为啥sqlmap能跑出库表跑不出字段

LeetCode_ Rectangle_ Difficulties_ 391. Perfect rectangle

交通行业提升数据利用效率的核心是做好数据交换与共享
随机推荐
交通行業提昇數據利用效率的核心是做好數據交換與共享
Browser overview local cache cookies, etc
How to check whether the version of oraclejdk is charged on the official website
Registration process of New Zealand company and materials required
04-Functions
Introduction to Intel edge software center
Release announcement of HMS core version 6.4.0
02-SparkSQL
Senet | attention mechanism - source code + comments
[recent force buckle] sum of two numbers + same tree
Solution of stm32i2c
DOM event flow and event delegation
Search content warehousing
搜索内容入库
Filebeat collects log data and transfers it to redis. Different es indexes are created according to log fields through logstash
php excel导入时间格式转换
Iptables usage
Dynamic | hanging mirror safety R & D management system has passed CMMI3 international certification
Your mind will change your behavior, and your behavior will change your situation
How does IOT platform realize business configuration center