nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Gullo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NUTCH-2259) Nutch 2.x HBase Docker requires a logs folder to run exception free
Date Sun, 15 May 2016 02:24:12 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283772#comment-15283772
] 

Diego Gullo commented on NUTCH-2259:
------------------------------------

Hi [~lewismc]
my PR was a good little input. But with the wrong output. Docker build was not working because
the /opt/nutch link is created later in the file. I have moved this around. 
Added a commit in my repo https://github.com/bizmate/nutch-official/commit/e312d5a83b3300b8ebb1e6148e2292287a427388
with this Jira ticket and going to create a new PR.

Also I have spotted a few different bad practices in the docker files. Once I will manage
to run the container and spin Nutch I will progressively change the Docker file with new PRs.

Image is now available at https://hub.docker.com/r/diegogullo/nutch/ or by running docker
pull diegogullo/nutch:2

An example of docker compose (as per my previous email in the malinglist) https://github.com/bizmate/nutch/blob/master/docker-compose.yml

> Nutch 2.x HBase Docker requires a logs folder to run exception free
> -------------------------------------------------------------------
>
>                 Key: NUTCH-2259
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2259
>             Project: Nutch
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 2.3.1
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>             Fix For: 2.4
>
>
> When running an inject
> {code}
> 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].
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message