Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-272

bin/hadoop dfs -rm <dir> crashes in log4j code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.3.1
    • None
    • None

    Description

      When I run "bin/hadoop dfs -rm out-dir" I get the following error messages:

      log4j:ERROR setFile(null,true) call failed.
      java.io.FileNotFoundException: /local/owen/hadoop/run/log (Is a directory)
      at java.io.FileOutputStream.openAppend(Native Method)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
      at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
      at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
      at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
      at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:215)
      at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
      at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
      at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
      at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
      at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:509)
      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
      at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:441)
      at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
      at org.apache.log4j.Logger.getLogger(Logger.java:104)
      at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
      at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
      at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
      at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:370)
      at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:54)
      at org.apache.hadoop.dfs.DFSShell.main(DFSShell.java:307)
      log4j:ERROR Either File or DatePattern options are not set for appender [DRFA].
      Delete failed

      Attachments

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: