小雨点点789 发表于 2016-12-9 11:19:05

hadoop的初始配置

  在三个文件中配置就行了:
  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
页: [1]
查看完整版本: hadoop的初始配置