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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3.0, 1.4.0, 1.3.1, 1.5.0, 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: Test
    • Labels:
      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

              • Assignee:
                water Xiang Li
                Reporter:
                alinegds Aline Guedes Pinto
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: