Ignore:
Timestamp:
Feb 4, 2010, 9:58:23 PM (15 years ago)
Author:
jazz
Message:

細部微調

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init

    r140 r143  
    22mkdir -p /lib/jvm
    33mkdir -p /opt
     4
    45if [ ! -x /lib/jvm/jdk* ]; then
    56  unzip /usr/src/jdk*.zip -d /lib/jvm/
    67fi
     8
    79if [ ! -x /opt/hadoop ]; then
    810  tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/
    911  ln -s /opt/hadoop-* /opt/hadoop
     12  cp -R /usr/src/conf-examples/ /opt/hadoop/
     13  mv /opt/hadoop/conf/ /opt/hadoop/conf-org
     14  ln -s /opt/hadoop/conf-examples/ /opt/hadoop/conf
    1015fi
    11 cp -R /usr/src/conf-examples/ /opt/hadoop/
    12 mv /opt/hadoop/conf/ /opt/hadoop/conf-org
    13 ln -s /opt/hadoop/conf-examples/ /opt/hadoop/conf
     16
    1417export JAVA_HOME=$(dirname /lib/jvm/jdk*/bin/)
    1518echo export JAVA_HOME=$JAVA_HOME >> /opt/hadoop/conf/hadoop-env.sh
Note: See TracChangeset for help on using the changeset viewer.