Ignore:
Timestamp:
Apr 1, 2011, 10:29:17 PM (14 years ago)
Author:
jazz
Message:
  • modified hadoop4win-setup.bat
    • change order of hadoop4win-init and ant-init
  • modified my_packages/ant/bin/ant-init
    • fix typo in echo message
    • use unzip "-d" to change directory
  • modified my_packages/hbase/bin/hbase-init
    • setup hbase.tmp.dir and HBASE_PID_DIR
  • modified my_packages/hadoop/bin/hadoop4win-init
    • use mv and cp instead of symbolic link
    • copy example config as pseudo config
    • force to leave safe mode since Hadoop 0.20.2 need extra 30 seconds to check.
    • add sleep 10 seconds since start-hadoop will take 10 seconds.
File:
1 edited

Legend:

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

    r236 r241  
    44
    55if [ ! -x /lib/jvm/jdk* ]; then
     6  echo "Installing Sun JDK ...."
    67  unzip /usr/src/jdk*.zip -d /lib/jvm/
    78fi
    89
    910if [ ! -x /opt/hadoop ]; then
     11  echo "Installing Hadoop ...."
    1012  tar zxvf /usr/src/hadoop-*.tar.gz -C /opt/
    11   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
     13  mv /opt/hadoop-* /opt/hadoop
     14  cp -R /usr/src/conf-examples/ /opt/hadoop/conf-pseudo
     15  mv /opt/hadoop/conf/ /opt/hadoop/conf-local
     16  ln -s /opt/hadoop/conf-pseudo /opt/hadoop/conf
    1517fi
    1618
     
    2931source /etc/profile
    3032/bin/start-hadoop
     33sleep 10
     34/opt/hadoop/bin/hadoop dfsadmin -safemode leave
    3135/opt/hadoop/bin/hadoop fs -mkdir tmp
    3236echo "/bin/stop-hadoop" > ~/.bash_logout
Note: See TracChangeset for help on using the changeset viewer.