You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Stefan Groschupf (JIRA)" <ji...@apache.org> on 2006/06/19 15:36:29 UTC
[jira] Created: (NUTCH-307) wrong configured log4j.properties
wrong configured log4j.properties
---------------------------------
Key: NUTCH-307
URL: http://issues.apache.org/jira/browse/NUTCH-307
Project: Nutch
Type: Bug
Reporter: Stefan Groschupf
Priority: Blocker
Fix For: 0.8-dev
In nutch/conf is only one log4j.properties and it define:
log4j.appender.DRFA.File=${nutch.log.dir}/${nutch.log.file}
nutch.log.dir and nutch.log.file is only defined in the bin/nutch script.
In case of starting a distributed nutch instance with bin/start-all the remove tasktracker crash with:
java.io.FileNotFoundException: / (Is a directory)
cr06: at java.io.FileOutputStream.openAppend(Native Method)
cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
cr06: at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
cr06: at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
cr06: at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
cr06: at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
since the hadoop scripts used to start the tasktrackers and datanodes never define the nutch log properties but the log4j.properties require such a definition.
I suggest to leave the log4j.properties as it is in hadoop but define the hadoop property names in the bin/nutch script instead of intriduce new variable names.
--
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-307) wrong configured log4j.properties
Posted by "Jerome Charron (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NUTCH-307?page=all ]
Jerome Charron resolved NUTCH-307:
----------------------------------
Resolution: Fixed
Assign To: Jerome Charron
Nutch now uses Hadoop var names for the file name used by DRFA logging.
> wrong configured log4j.properties
> ---------------------------------
>
> Key: NUTCH-307
> URL: http://issues.apache.org/jira/browse/NUTCH-307
> Project: Nutch
> Type: Bug
> Reporter: Stefan Groschupf
> Assignee: Jerome Charron
> Priority: Blocker
> Fix For: 0.8-dev
>
> In nutch/conf is only one log4j.properties and it define:
> log4j.appender.DRFA.File=${nutch.log.dir}/${nutch.log.file}
> nutch.log.dir and nutch.log.file is only defined in the bin/nutch script.
> In case of starting a distributed nutch instance with bin/start-all the remove tasktracker crash with:
> java.io.FileNotFoundException: / (Is a directory)
> cr06: at java.io.FileOutputStream.openAppend(Native Method)
> cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> cr06: at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
> cr06: at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
> cr06: at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
> cr06: at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
> since the hadoop scripts used to start the tasktrackers and datanodes never define the nutch log properties but the log4j.properties require such a definition.
> I suggest to leave the log4j.properties as it is in hadoop but define the hadoop property names in the bin/nutch script instead of intriduce new variable names.
--
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] Commented: (NUTCH-307) wrong configured log4j.properties
Posted by "Jerome Charron (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/NUTCH-307?page=comments#action_12416895 ]
Jerome Charron commented on NUTCH-307:
--------------------------------------
Hi Stefan,
Thanks for this feedback. In fact, as I mentioned in a previous mail (http://www.mail-archive.com/nutch-dev%40lucene.apache.org/msg03907.html) I had some hesitations about using the hadoop properties instead of introducing some nutch properties.
I change this right now!
> wrong configured log4j.properties
> ---------------------------------
>
> Key: NUTCH-307
> URL: http://issues.apache.org/jira/browse/NUTCH-307
> Project: Nutch
> Type: Bug
> Reporter: Stefan Groschupf
> Priority: Blocker
> Fix For: 0.8-dev
>
> In nutch/conf is only one log4j.properties and it define:
> log4j.appender.DRFA.File=${nutch.log.dir}/${nutch.log.file}
> nutch.log.dir and nutch.log.file is only defined in the bin/nutch script.
> In case of starting a distributed nutch instance with bin/start-all the remove tasktracker crash with:
> java.io.FileNotFoundException: / (Is a directory)
> cr06: at java.io.FileOutputStream.openAppend(Native Method)
> cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> cr06: at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> cr06: at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
> cr06: at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
> cr06: at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
> cr06: at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
> since the hadoop scripts used to start the tasktrackers and datanodes never define the nutch log properties but the log4j.properties require such a definition.
> I suggest to leave the log4j.properties as it is in hadoop but define the hadoop property names in the bin/nutch script instead of intriduce new variable names.
--
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