1.Homebrew
OS X is an indispensable suite manager, and it makes the best use of the various libraries available to the system to shorten the compilation time of the package, and the management of the package is much clearer and more flexible due to its almost no redundancy. Install: Open terminal window, paste the following script
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
After installation, the homebrew path is/usr/local/share/doc/homebrew.
2.Scala
Download the Scala installation package and unzip the path at random.
Edit/etc/bash_profile Add $scala_home and modify the corresponding path
3.SSH No password login
Ssh-keygen-t Rsa-p "-F ~/.ssh/id_rsa
The Ssh-keygen represents the generated secret key;-T denotes the secret key type;-P is used to provide the cipher;-f Specifies the generated key file. This command is in the "~/.ssh/" file
The results show:
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 | | =. | +-----------------+
The secret key was generated successfully. and create two files in ~/.ssh Id_dsa and Id_dsa.pub, which is a pair of SSH private and public keys.
Next, append the public key to the authorized key and enter
Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
4.Spark Installation
Install Spark under Mac