You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by bizmate <gi...@git.apache.org> on 2016/05/14 13:54:06 UTC

[GitHub] nutch pull request: Nutch requires a logs folder to run exception ...

GitHub user bizmate opened a pull request:

    https://github.com/apache/nutch/pull/109

    Nutch requires a logs folder to run exception free

    When running a inject, throws exception
    
    ```
    hduser@028ce34179ee:/opt/nutch$ bin/nutch inject urls/seed.txt 
    log4j:ERROR setFile(null,true) call failed.
    java.io.FileNotFoundException: /opt/nutch/logs/hadoop.log (No such file or directory)
    	at java.io.FileOutputStream.open(Native Method)
    	at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
    	at java.io.FileOutputStream.<init>(FileOutputStream.java:142)
    	at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    	at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:223)
    	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
    	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
    	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    	at org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    	at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
    	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:277)
    	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
    	at org.apache.nutch.crawl.InjectorJob.<clinit>(InjectorJob.java:64)
    log4j:ERROR Either File or DatePattern options are not set for appender [DRFA].
    ```
    
    Folder is now set in Dockerfile

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bizmate/nutch-official 2.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nutch/pull/109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #109
    
----
commit 61a33fcdb18c989c6e927fd8ce96e8b84de21bd8
Author: bizmate <di...@bizmate.biz>
Date:   2016-05-14T13:40:03Z

    Nutch requires a logs folder

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] nutch pull request: Nutch requires a logs folder to run exception ...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/nutch/pull/109


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---