Changes between Version 3 and Version 4 of Hinet120814


Ignore:
Timestamp:
Aug 15, 2012, 1:29:01 PM (12 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hinet120814

    v3 v4  
    126126 * 中華電信 hicloud 帳務 - 02-23445568
    127127
    128 = 建立 /etc/hosts =
     128= 串聯多台 Hadoop4Win =
    129129
    130130{{{
    131 $ for ((i=1;i<=50;i++)); do printf "10.131.33.$i G300-P%02d\n" $i; done >> /etc/hosts
     131rm -rf /cygdrive/c/var/hadoop/hadoop-chtti/dfs/data/
     132rm /opt/hadoop/conf
     133for ((i=1;i<=50;i++)); do printf "10.131.33.$i G300-P%02d\n" $i; done >> /etc/hosts
     134cp /opt/hadoop/conf-pseudo /opt/hadoop/conf-full
     135echo > /opt/hadoop/conf-full/core-site.xml << EOF
     136<?xml version="1.0"?>
     137<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
     138<configuration>
     139  <property>
     140    <name>fs.default.name</name>
     141    <value>hdfs://10.131.33.22:9000</value>
     142  </property>
     143  <property>
     144    <name>hadoop.tmp.dir</name>
     145    <value>/var/hadoop/hadoop-${user.name}</value>
     146  </property>
     147</configuration>
     148EOF
     149echo > /opt/hadoop/conf-full/mapred-site.xml << EOF
     150<?xml version="1.0"?>
     151<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
     152<configuration>
     153  <property>
     154    <name>mapred.job.tracker</name>
     155    <value>10.131.33.22:9001</value>
     156  </property>
     157</configuration>
     158EOF
     159ln -s /opt/hadoop/conf-full /opt/hadoop/conf
     160/opt/hadoop/bin/hadoop-daemon.sh start datanode
     161/opt/hadoop/bin/hadoop-daemon.sh start tasktracker
    132162}}}