I. Preparatory work:
1. JDK1.7 version and above (it seems that Hadoop only supports more than 1.6 versions, not sure, for the sake of 1.7, I use 1.8)
2.2.7.3 version of Hadoop https://archive.apache.org/dist/hadoop/common/hadoop-2.7.3/download the one with more than 200 m
Two. Configure SSH password-free login
1. Turn on the remote connection for your Mac
System Preferences--shared--Telnet
2. If you have read, and have followed the configuration
, you can skip this step, otherwise:
Open terminal (terminal), enter and always return, ask you yes/no remember to lose yes
ssh-keyagent-t
Jump to ~/.ssh directory after completion
CD ~/. SSH
View the files in the directory
Ls
Make sure you have these two key files in your directory
3. Enter the following code to password-free login
Cat ~/. ssh/id_rsa.pub > ~/. ssh/authorized_keys
4. Verify, enter the following code
ssh localhost
If as shown, direct prompt last login + time is not lost password directly logged in
Mac configuration Hadoop most detailed process