Changeset 241


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.
Location:
hadoop4win-setup
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/hadoop4win-setup.bat

    r235 r241  
    175175echo "=====================================================" 
    176176%CYGWIN_ROOT%\bin\bash --login -c "/bin/hadoop4win-init"
     177%CYGWIN_ROOT%\bin\bash --login -c "/bin/ant-init"
    177178%CYGWIN_ROOT%\bin\bash --login -c "/bin/hbase-init"
    178 %CYGWIN_ROOT%\bin\bash --login -c "/bin/ant-init"
    179179cls
    180180set PATH=%OLDPATH%
  • hadoop4win-setup/my_packages/ant/bin/ant-init

    r236 r241  
    11#!/bin/bash
    22if [ ! -f /usr/src/ant-*.zip ]; then
    3   echo "Hbase tar ball not found at /usr/src/hbase-*.tar.gz!!"
     3  echo "Ant zip file is not found at /usr/src/ant-*.zip!!"
    44  exit
    55fi
    66
    77if [ ! -f /opt/apache-ant* ]; then
    8   cd /opt/
    9   unzip /usr/src/ant-*.zip
    10   ln -s /opt/apache-ant-* /opt/ant
     8  unzip /usr/src/ant-*.zip -d /opt
     9  mv /opt/apache-ant-* /opt/ant
    1110  echo "export PATH=/opt/ant/bin/:\$PATH" >> /etc/profile
    1211fi
  • 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
  • hadoop4win-setup/my_packages/hbase/bin/hbase-init

    r236 r241  
    77if [ ! -f /opt/hase* ]; then
    88  tar zxvf /usr/src/hbase-*.tar.gz -C /opt
    9   ln -s /opt/hbase-* /opt/hbase
     9  mv /opt/hbase-* /opt/hbase
    1010
    1111  cp /opt/hadoop/conf/core-site.xml /opt/hbase/conf
     
    1818  export HBASE_HOME=/opt/hbase
    1919  export HBASE_MANAGES_ZK=true
    20   export HBASE_PID_DIR=c:/hadoop4win/var/hadoop/pid
     20  export HBASE_PID_DIR=/var/hbase/pid
    2121EOF
    2222
     
    2828    <name>hbase.rootdir</name>
    2929    <value>hdfs://localhost:9000/hbase</value>
     30  </property>
     31  <property>
     32    <name>hbase.tmp.dir</name>
     33    <value>/var/hbase</value>
    3034  </property>
    3135  <property>
Note: See TracChangeset for help on using the changeset viewer.