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

IllegalArgumentException when CombineFileInputFormat is used as job InputFormat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.20.1, 0.20.205.0
    • 0.20.2
    • None
    • None

    Description

      As per my understanding, CombineFileInputFormat is creating splits with rackname as split location.
      When I use CombineFileInputFormat as the InputFormat for job, job initialization fails with following exception :
      2009-04-28 14:10:40,162 ERROR mapred.EagerTaskInitializationListener (EagerTaskInitializationListener.java:run(83)) - Job initialization failed:
      java.lang.IllegalArgumentException: Network location name contains /: /default-rack
      at org.apache.hadoop.net.NodeBase.set(NodeBase.java:76)
      at org.apache.hadoop.net.NodeBase.<init>(NodeBase.java:57)
      at org.apache.hadoop.mapred.JobTracker.addHostToNodeMapping(JobTracker.java:2342)
      at org.apache.hadoop.mapred.JobTracker.resolveAndAddToTopology(JobTracker.java:2336)
      at org.apache.hadoop.mapred.JobInProgress.createCache(JobInProgress.java:344)
      at org.apache.hadoop.mapred.JobInProgress.initTasks(JobInProgress.java:441)
      at org.apache.hadoop.mapred.EagerTaskInitializationListener$InitJob.run(EagerTaskInitializationListener.java:81)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)

      When I changed CombineFileInputFormat to pass just rackname (without '/'), JT wrongly resolves the node as /default-rack/<rack-name>.

      Solution is to pass hostnames holding the block(on the rack), instead of rackname.

      Attachments

        1. patch-5759.txt
          13 kB
          Amareshwari Sriramadasu
        2. patch-5759-1.txt
          11 kB
          Amareshwari Sriramadasu
        3. patch-5759-2.txt
          11 kB
          Amareshwari Sriramadasu
        4. patch-5759-ydist.txt
          12 kB
          Amareshwari Sriramadasu

        Issue Links

          Activity

            People

              amareshwari Amareshwari Sriramadasu
              amareshwari Amareshwari Sriramadasu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: