1.home下建立hadoop
2.在Downloads下解压hadoop-2.6.0.tar.gz
3.将解压后的hadoop-2.6.0移动到/home/hadoop
4.csf@ubuntu:/home$ gedit ~/.bashrc
...
5. . ~/.bashrc
6. csf@ubuntu:/home$ sudo gedit /home/hadoop/etc/hadoop/hadoop-env.sh
...
7.csf@ubuntu:/home$ sudo gedit /home/hadoop/etc/hadoop/core-site.xml
let the content of down insert into :<configuration></configuration>
<
property
>
<
name
>hadoop.tmp.dir</
name
>
<
value
>/app/hadoop/tmp</
value
>
<
description
>Parent directory for other temporary directories.</
description
>
</
property
>
<
property
>
<
name
>fs.defaultFS </
name
>
<
value
>hdfs://localhost:54310</
value
>
<
description
>The name of the default file system. </
description
>
</
property
>
8.
csf@ubuntu:/home$ cd hadoop/etc/hadoop
csf@ubuntu:/home/hadoop/etc/hadoop$ sudo mkdir -p /app/hadoop/tmp
csf@ubuntu:/home/hadoop/etc/hadoop$ sudo chmod 750 /app/hadoop/tmp
9.
9.
csf@ubuntu:/home/hadoop/etc/hadoop$ sudo gedit /etc/profile.d/hadoop.sh
...
10
10
csf@ubuntu:/home/hadoop/etc/hadoop$ sudo chmod +x /etc/profile.d/hadoop.sh