Changeset 140 for hadoop4win-setup


Ignore:
Timestamp:
Feb 4, 2010, 3:36:39 AM (15 years ago)
Author:
jazz
Message:

開另一個視窗避免 CTRL+C 把 java 子程序全砍了 - 暫時無法在 Cygwin 網站找到解法
http://www.mail-archive.com/cygwin@cygwin.com/msg104921.html

Location:
hadoop4win-setup
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • hadoop4win-setup/cygwin_mirror/cygwin.pkg.list

    r132 r140  
    3636libgmp3              4.3.1-3             OK
    3737libiconv2            1.13.1-1            OK
    38 libintl2             0.12.1-3            OK
    3938libintl3             0.14.5-1            OK
    4039libintl8             0.17-11             OK
  • hadoop4win-setup/my_packages/hadoop/bin/hadoop4win-init

    r139 r140  
    1515echo export JAVA_HOME=$JAVA_HOME >> /opt/hadoop/conf/hadoop-env.sh
    1616echo export HADOOP_HOME=/opt/hadoop >> /opt/hadoop/conf/hadoop-env.sh
    17 ln -s $JAVA_HOME/bin/javac /bin/
    18 ln -s /opt/hadoop/bin/hadoop /bin/
    19 ln -s /opt/hadoop/bin/hadoop-config.sh /bin/
     17echo export HADOOP_CLASSPATH=/opt/hadoop >> /opt/hadoop/conf/hadoop-env.sh
     18echo export HADOOP_CONF_DIR=/opt/hadoop/conf >> /opt/hadoop/conf/hadoop-env.sh
     19echo export JAVA_HOME=$JAVA_HOME >> /etc/profile
     20echo "export PATH=/opt/hadoop/bin/:$JAVA_HOME/bin:\$PATH" >> /etc/profile
    2021cd $JAVA_HOME
    2122chmod a+x `find . -name "*.exe"`
     
    2425cd /opt/hadoop
    2526bin/hadoop namenode -format
    26 /opt/hadoop/bin/hadoop-daemon.sh start namenode
    27 /opt/hadoop/bin/hadoop-daemon.sh start datanode
    28 /opt/hadoop/bin/hadoop-daemon.sh start jobtracker
    29 /opt/hadoop/bin/hadoop-daemon.sh start tasktracker
     27/bin/start-hadoop
     28bin/hadoop fs -mkdir tmp
     29echo "/bin/stop-hadoop" > ~/.bash_logout
     30echo "/bin/stop-hadoop" > /etc/skel/.bash_logout
    3031cygstart http://localhost:50070
    3132cygstart http://localhost:50030
    32 bin/hadoop fs -mkdir tmp
    3333exit
  • hadoop4win-setup/my_packages/hadoop/bin/start-hadoop

    r129 r140  
    11#!/bin/bash
    2 /opt/hadoop/bin/hadoop-daemon.sh start namenode
    3 /opt/hadoop/bin/hadoop-daemon.sh start datanode
    4 /opt/hadoop/bin/hadoop-daemon.sh start jobtracker
    5 /opt/hadoop/bin/hadoop-daemon.sh start tasktracker
    6 cygstart http://localhost:50070
    7 cygstart http://localhost:50030
     2cygstart --showminnoactive /bin/bash -c /bin/start-hadoop-daemon
     3for ((i=1;i<=10;i++)); do sleep 1; printf "."; done
     4printf "\n"
     5jps
Note: See TracChangeset for help on using the changeset viewer.