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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.