Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3690

BlockPlacementPolicyDefault incorrectly casts LOG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • None
    • None
    • Reviewed

    Description

      The hadoop-tools tests, eg TestCopyListing, fails with

      Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SimpleLog cannot be cast to org.apache.commons.logging.impl.Log4JLogger
              at org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.<clinit>(BlockPlacementPolicyDefault.java:55)
      

      caused by this cast

        private static final String enableDebugLogging =
          "For more information, please enable DEBUG log level on "
          + ((Log4JLogger)LOG).getLogger().getName();
      

      Attachments

        1. hdfs-3690.txt
          2 kB
          Eli Collins

        Issue Links

          Activity

            People

              eli Eli Collins
              eli Eli Collins
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: