Mac下安装Spark
1.Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装好后homebrew路径为 /usr/local/share/doc/homebrew
2.Scala
官网下载scala安装包后解压,路径随意。
编辑/etc/bash_profile添加$SCALA_HOME并修改相应PATH
3.SSH无密码登陆
ssh-keygen -t rsa -P ‘‘ -f ~/.ssh/id_rsa
ssh-keygen表示生成秘钥;-t表示秘钥类型;-P用于提供密语;-f指定生成的秘钥文件。这个命令在”~/.ssh/“文件
结果显示:
Generating public/private rsa key pair. Created directory ‘/var/root/.ssh‘. Your identification has been saved in /var/root/.ssh/id_rsa. Your public key has been saved in /var/root/.ssh/id_rsa.pub. The key fingerprint is: 5f:1c:f4:eb:ba:a5:59:73:41:9a:04:ca:a4:6b:0f:32 [email protected] The key‘s randomart image is: +--[ RSA 2048]----+ | . .. | | + .... | | . o .... | | . ...+. | | E +S oo.. | | + o. . . .| | .. = .| | * o | | =. | +-----------------+
秘钥生成成功。并在~/.ssh创建两个文件id_dsa和id_dsa.pub,是ssh的一对儿私钥和公钥。
接下来,将公钥追加到授权的key中去,输入
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
4.Spark安装
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。