在三个文件中配置就行了:
core-site.xml
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost/</value> </property></configuration>
hdfs-site.xml
<configuration>
<property> <name>dfs.replication</name> <value>1</value> </property></configuration> mapred-site.xml<configuration>
<property> <name>mapred.job.tracker</name> <value>localhost:8021</value> </property></configuration>然后安装SSH:
~$ sudo apt-get install ssh
下面的目的是使用SSH,无需密码登录。
~$ ssh-keygen -t rsa -p '' -f ~/.ssh/id_rsa
~$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
~$ ssh localhost