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

chmod in ant package target fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.15.0
    • 0.16.0
    • build
    • None

    Description

      If you checkout the trunk to a folder long than /tmp (in my case it is "/home/adrian/workspace/hadoop-trunk") and you execute the command:

      ant clean package

      You get the following error:

      BUILD FAILED
      /home/adrian/workspace/hadoop-trunk/build.xml:730: Execute failed: java.io.IOException: Cannot run program "chmod": java.io.IOException: error=7, Argument list too long

      I also tried this from the folder "/tmp/trunk" and the package target worked fine so I imagine the argument list is becoming too long due to the folder being longer. A simple fix for this should be to set the "parallel" attribute on chmod to false.

      Attachments

        1. HADOOP-2271-1.patch
          0.4 kB
          Adrian Woodhead

        Activity

          People

            adrianw Adrian Woodhead
            adrianw Adrian Woodhead
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: