Changeset 100


Ignore:
Timestamp:
Jul 10, 2009, 2:53:11 PM (15 years ago)
Author:
waue
Message:

0.3 v

fix some bug

Location:
nutchez-0.1
Files:
28 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • nutchez-0.1/README

    r94 r100  
    1717 * Where are the program and configuration files
    1818
    19 1. Nutch home is installed on /opt/nutch
    20 2. Nutch conf dir is set on ~/.nutchez/conf
    21 3. Tomcat home is installed on ~/.nutchez/tomcat
    22 4. The final crawl results is located on ~/.nutchez/search
    23 5. The nutchez log will be recorded on ~/.nutchez/log
    24 6. The full path of this README is /etc/nutch/README
     191. Project home is installed on /opt/nutchez
     202. Nutch home is installed on /opt/nutchez/nutch
     213. Nutch conf dir is set on ~/.nutchez/conf
     224. Tomcat home is installed on ~/.nutchez/tomcat
     235. The final crawl results is located on ~/.nutchez/search
     246. The nutchez log will be recorded on ~/.nutchez/log
     257. The full path of this README is /etc/nutch/README
  • nutchez-0.1/bin/nutch

    r75 r100  
    1212#   NUTCH_OPTS      Extra Java runtime options.
    1313#
     14
     15NUTCH_HOME=/opt/nutchez/nutch
     16NUTCH_CONF_DIR=~/.nutchez/conf
     17NUTCH_LOG_DIR=~/.nutchez/log
     18
    1419cygwin=false
    1520case "`uname`" in
     
    7782
    7883# some directories
    79 THIS_DIR=`dirname "$THIS"`
    80 NUTCH_HOME=`cd "$THIS_DIR/.." ; pwd`
     84
     85
    8186
    8287# some Java parameters
  • nutchez-0.1/bin/nutchez

    r94 r100  
    1111
    1212  export JAVA_HOME=/usr/lib/jvm/java-6-sun
    13   export NUTCH_HOME=/opt/nutch
     13  export NUTCH_HOME=/opt/nutchez/nutch
    1414  export NUTCH_CONF_DIR=~/.nutchez/conf
    1515  export NUTCH_LOG_DIR=~/.nutchez/log
    1616
    17 . /opt/nutch/bin/nutchez-func.sh
     17. /opt/nutchez/nutch/bin/nutchez-func.sh
    1818
    1919init_nutchez
     
    146146    #else
    147147    1)
     148      clean_tempfile
    148149      exit
    149150      ;;
     
    157158      ;;
    158159    255)
     160      clean_tempfile
    159161      echo_dialog_v "ESC pressed !!"
    160162      ;;
  • nutchez-0.1/bin/nutchez-func.sh

    r99 r100  
    4949promote_tempfile () {
    5050  echo_dialog_v "7. chang tmp as txt"
    51   rm ~/.nutchez/sav/n.*.txt
     51  rm -f ~/.nutchez/sav/n.*.txt
    5252  mv /tmp/n.urls.tmp ~/.nutchez/sav/n.urls.txt
    5353  mv /tmp/n.robot.tmp ~/.nutchez/sav/n.robot.txt
    5454  mv /tmp/n.crawler.tmp ~/.nutchez/sav/n.crawler.txt
    5555  mv /tmp/n.tomcat.tmp ~/.nutchez/sav/n.tomcat.txt
     56  rm -f /tmp/n.*.tmp
    5657}
    5758
    5859clean_tempfile () {
    5960  echo_dialog_v "7. delete tmp"
    60   rm /tmp/n.*.tmp
     61  rm -f /tmp/n.*.tmp
    6162}
    6263
     
    9394  if ! [ -e ~/.nutchez/tomcat ] ;then
    9495    # isntall tomcat to home
    95     cp -rf /opt/nutch/tomcat ~/.nutchez/
     96    cp -rf /opt/nutchez/tomcat ~/.nutchez/
    9697    chown -R $LOGNAME:$LOGNAME ~/.nutchez/tomcat/
    9798    # make search dir
     
    185186        --yesno "$MSG" 26 51
    186187  RET=$?
    187   echo_dialog_v "final return = $RET"
     188  echo_dialog_v "final return = $RET" 
    188189  return $RET
    189190}
     
    202203  setup_nutchez
    203204  install_tomcat
    204   echo_dialog_v "/opt/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH"
     205  echo_dialog_v "/opt/nutchez/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH"
    205206  echo_dialog_v "nutch conf dir = $NUTCH_CONF_DIR"
    206   /opt/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH -topN 5000 -threads 1000
     207  /opt/nutchez/nutch/bin/nutch crawl ~/.nutchez/urls -dir ~/.nutchez/search -depth $DEPTH -topN 5000 -threads 1000
    207208}
    208209
    209210start_tomcat () {
    210211  echo_dialog_v "8. start_tomcat "
    211   echo_dialog_v "/opt/nutch/tomcat/bin/startup.sh"
     212  echo_dialog_v "/opt/nutchez/nutch/tomcat/bin/startup.sh"
    212213  if [ -e /tmp/search ];then
    213214    rm -rf /tmp/search
  • nutchez-0.1/conf/nutch-site.xml

    r80 r100  
    2323<property>
    2424  <name>plugin.folders</name>
    25   <value>/opt/nutch/plugins</value>
     25  <value>/opt/nutchez/nutch/plugins</value>
    2626  <description>Directories where nutch plugins are located. </description>
    2727</property>
  • nutchez-0.1/debian/changelog

    r94 r100  
    1 nutchez (0.1-2) unstable; urgency=low
     1nutchez (0.1-3) unstable; urgency=low
    22
    3   * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
     3  * Initial release (Closes: #4)  <nnnn is the bug number of your ITP>
     4  *
    45  *
    56
    6  -- Wei-Yu Chen <waue0920@gmail.com>  Tue, 07 Jul 2009 11:22:46 +0800
     7 -- Wei-Yu Chen <waue0920@gmail.com>  Fri, 10 Jul 2009 14:34:53 +0800
  • nutchez-0.1/debian/nutchez.install

    r94 r100  
    22sav   etc/nutch
    33README*   etc/nutch
    4 bin   opt/nutch
    5 lib   opt/nutch
    6 tomcat    opt/nutch
    7 plugins   opt/nutch
    8 *.jar   opt/nutch
    9 *.job   opt/nutch
    10 *.xml   opt/nutch
    11 default.properties  opt/nutch
     4bin   opt/nutchez/nutch
     5lib   opt/nutchez/nutch
     6tomcat    opt/nutchez
     7plugins   opt/nutchez/nutch
     8*.jar   opt/nutchez/nutch
     9*.job   opt/nutchez/nutch
     10*.xml   opt/nutchez/nutch
     11default.properties  opt/nutchez/nutch
  • nutchez-0.1/debian/nutchez.links

    r66 r100  
    1 etc/nutch  opt/nutch/conf
     1etc/nutch  opt/nutchez/nutch/conf
  • nutchez-0.1/debian/nutchez.postinst

    r94 r100  
    88fi
    99
    10 ln -sf /opt/nutch/bin/nutchez /usr/sbin/
    11 ln -sf /opt/nutch/bin/nutchez-func.sh /usr/sbin/
     10ln -sf /opt/nutchez/nutch/bin/nutchez /usr/bin/
     11chmod 777 /opt/nutchez
    1212
    1313show_message(){
  • nutchez-0.1/debian/nutchez.postrm

    r94 r100  
    1111#fi
    1212
    13 for i in `sudo find /home/ -name ".nutchez"`; do
    14   if [ -d $i ];then
    15     echo "delete this dir :  $i"
    16     rm -r $i
    17   fi
    18 done
     13#for i in `sudo find /home/ -name ".nutchez"`; do
     14#  if [ -d $i ];then
     15#    echo "delete this dir :  $i"
     16#    rm -r $i
     17#  fi
     18#done
    1919
    20 rm -f /usr/sbin/nutchez*
     20rm -f /usr/bin/nutchez
    2121
    2222rm -rf /tmp/search
Note: See TracChangeset for help on using the changeset viewer.