1. unset current HADOOP_CONF_DIR if set

2.
$ sudo mv [conf dir path] /etc/hadoop-0.20/

3.
$ sudo update-alternatives --install /etc/hadoop-0.20/conf hadoop-0.20-conf /etc/hadoop-0.20/[conf dir name] [priority]

4. (Not sure) restart your machine (Testing on my machine with reboot, it is applied while on server without reboot, it isn't)

5. To query Hadoop configuration alternatives
$ sudo update-alternatives --display hadoop-0.20-conf 

6. When running a test from eclipse, add the "-conf <path to conf dir>" option.
7. Run an example (hadoop must be installed locally)
    @$ hadoop jar /usr/lib/hadoop/hadoop-*-examples.jar pi 10 100000000@
    Follow the progress of the example on the console, on the cluster's "MapReduce administration page":http://[namenode]:50030/ or using the Job Browser provided by "Hue":http://[namenode]:8088/
저작자 표시 비영리 변경 금지
◀ PREV : [1] : ... [11] : [12] : [13] : [14] : [15] : [16] : [17] : [18] : [19] : ... [434] : NEXT ▶

카테고리

JH & HJ (434)
Travel (102)
idea (0)
Lecture (2)
Life (132)
Programming (189)
career (0)

달력

«   2012/05   »
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31