Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1920

Test case TestFileChannel fails when flume is built from paths containing the string "hadoop"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.0, 1.4.0, 1.3.1, 1.5.0, 1.6.0
    • 1.6.0
    • Test
    • None

    Description

      When flume is built from a path that contains the string "hadoop" (ie: /home/user/hadoop_components/flume), the test case TestFileChannel fails.

      The reason it fails is because it can't find the correct location of the hadoop jar file - the function findHadoopJar in TestFileChannel.java
      looks for the hadoop jar path by searching for the string "hadoop" in the property java.class.path, and returns the first match of the search.
      This is not necessarily the correct location of the hadoop jar.

      The right thing to do is to look for the name of the hadoop jar in the classpath (ie: hadoop-core-1.1.1.jar), instead of looking for the string "hadoop".

      Attachments

        1. FLUME-1920.patch
          2 kB
          Aline Guedes Pinto
        2. FLUME-1920-1.patch
          2 kB
          Xiang Li
        3. FLUME-1920-2.patch
          4 kB
          Xiang Li

        Issue Links

          Activity

            People

              xiangli Xiang Li
              alinegds Aline Guedes Pinto
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: