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

wrong configured log4j.properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.8
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              jerome.charron Jerome Charron
              joa23 Stefan Groschupf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: