Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2259

Nutch 2.x HBase Docker requires a logs folder to run exception free

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 2.4
    • docker
    • None

    Description

      When running an inject

      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].
      

      Attachments

        Activity

          People

            lewismc Lewis John McGibbney
            lewismc Lewis John McGibbney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: