Changes between Version 2 and Version 3 of Hinet131022/Lab7


Ignore:
Timestamp:
Oct 22, 2013, 3:18:00 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hinet131022/Lab7

    v2 v3  
    3232 * 甚至透過這種方式,我們可以讓 Hadoop Client 在不同座 Hadoop 叢集之間做切換
    3333{{{
    34 user@node50:~/hadoop_labs$ cd
    35 user@node50:~$ cp -r hadoop/conf.full hadoop/conf.node0
    36 user@node50:~$ sed -i "s#$(hostname)#node0#g" hadoop/conf.node0/core-site.xml
    37 user@node50:~$ sed -i "s#$(hostname)#node0#g" hadoop/conf.node0/mapred-site.xml
    38 user@node50:~$ export HADOOP_CONF_DIR=~/hadoop/conf.node0/
    39 user@node50:~$ export HADOOP_ROOT_LOGGER=DEBUG,console
    40 user@node50:~$ hadoop fs -ls
    41 user@node50:~$ unset HADOOP_CONF_DIR
    42 user@node50:~$ hadoop fs -ls
    43 user@node50:~$ unset HADOOP_ROOT_LOGGER
     34cd
     35cp -r hadoop/conf.full hadoop/conf.node0
     36sed -i "s#$(hostname)#node0#g" hadoop/conf.node0/core-site.xml
     37sed -i "s#$(hostname)#node0#g" hadoop/conf.node0/mapred-site.xml
     38export HADOOP_CONF_DIR=~/hadoop/conf.node0/
     39export HADOOP_ROOT_LOGGER=DEBUG,console
     40hadoop fs -ls
     41unset HADOOP_CONF_DIR
     42hadoop fs -ls
     43unset HADOOP_ROOT_LOGGER
    4444}}}
    4545