You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Paul Baclace (JIRA)" <ji...@apache.org> on 2005/12/29 00:05:00 UTC

[jira] Created: (NUTCH-156) nutch-daemon.sh should not overwrite old logs by default

nutch-daemon.sh should not overwrite old logs by default
--------------------------------------------------------

         Key: NUTCH-156
         URL: http://issues.apache.org/jira/browse/NUTCH-156
     Project: Nutch
        Type: Bug
    Versions: 0.8-dev    
 Environment: a;;
    Reporter: Paul Baclace


nutch-daemon.sh creates a log file with the name pattern 

  "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-`hostname`.log"

every time it is run.  This can overwrite a previous log without warning.  As such, it is too easy to accidently lose a log that might contain unique failure information.  

Workaround:   one must remember to put aside the old logs before restarting a daemon.

Suggested fix:
  Change the log name pattern in nutch-daemon.sh to include an ISO date:
   "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-$(hostname)-$(date '+%Y%m%dT%H%M%S').log"



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (NUTCH-156) nutch-daemon.sh should not overwrite old logs by default

Posted by "Paul Baclace (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-156?page=all ]

Paul Baclace updated NUTCH-156:
-------------------------------

    Attachment: nutch-daemon.sh.patch

This is the suggested fix as a patch.

Example log name:

nutch-peb-jobtracker-ia109102.archive.org-20051228T230740.log


> nutch-daemon.sh should not overwrite old logs by default
> --------------------------------------------------------
>
>          Key: NUTCH-156
>          URL: http://issues.apache.org/jira/browse/NUTCH-156
>      Project: Nutch
>         Type: Bug
>     Versions: 0.8-dev
>  Environment: a;;
>     Reporter: Paul Baclace
>  Attachments: nutch-daemon.sh.patch
>
> nutch-daemon.sh creates a log file with the name pattern 
>   "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-`hostname`.log"
> every time it is run.  This can overwrite a previous log without warning.  As such, it is too easy to accidently lose a log that might contain unique failure information.  
> Workaround:   one must remember to put aside the old logs before restarting a daemon.
> Suggested fix:
>   Change the log name pattern in nutch-daemon.sh to include an ISO date:
>    "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-$(hostname)-$(date '+%Y%m%dT%H%M%S').log"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (NUTCH-156) nutch-daemon.sh should not overwrite old logs by default

Posted by "Sami Siren (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-156?page=all ]
     
Sami Siren resolved NUTCH-156:
------------------------------

    Resolution: Won't Fix

i quess the logging is now handled differently, so old logs sre not overwritten anymore

> nutch-daemon.sh should not overwrite old logs by default
> --------------------------------------------------------
>
>          Key: NUTCH-156
>          URL: http://issues.apache.org/jira/browse/NUTCH-156
>      Project: Nutch
>         Type: Bug

>     Versions: 0.8-dev
>  Environment: a;;
>     Reporter: Paul Baclace
>  Attachments: nutch-daemon.sh.patch
>
> nutch-daemon.sh creates a log file with the name pattern 
>   "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-`hostname`.log"
> every time it is run.  This can overwrite a previous log without warning.  As such, it is too easy to accidently lose a log that might contain unique failure information.  
> Workaround:   one must remember to put aside the old logs before restarting a daemon.
> Suggested fix:
>   Change the log name pattern in nutch-daemon.sh to include an ISO date:
>    "$NUTCH_LOG_DIR/nutch-$NUTCH_IDENT_STRING-$command-$(hostname)-$(date '+%Y%m%dT%H%M%S').log"

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira