Hadoop Common
  1. Hadoop Common
  2. HADOOP-3539

Cygwin: cygpath displays an error message in running bin/hadoop script

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.18.0
    • Component/s: scripts
    • Labels:
      None
    • Environment:

      Cygwin

    • Hadoop Flags:
      Reviewed

      Description

      • When running ./bin/hadoop in cygwin, we see an error message from cypath.
        For example,
        bash-3.2$ ./bin/hadoop namenode -format
        cygpath: cannot create short name of :\cygdrive\d\@sze\hadoop\latest\hadoop-*-tools.jar:\cygdrive\d\@sze\hadoop\latest\build\hadoop-*-tools.jar
        ...
        
      • The output message is confusing for incorrect commands.
        For example,
        bash-3.2$ ./bin/hadoop foo
        cygpath: cannot create short name of :\cygdrive\d\@sze\hadoop\latest\hadoop-*-tools.jar:\cygdrive\d\@sze\hadoop\latest\build\hadoop-*-tools.jar
        java.lang.NoClassDefFoundError: foo
        Exception in thread "main" bash-3.2$ 
        
      1. 3539_20080617.patch
        0.5 kB
        Tsz Wo Nicholas Sze

        Activity

        Hide
        Hudson added a comment -
        Show
        Hudson added a comment - Integrated in Hadoop-trunk #522 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/522/ )
        Hide
        Owen O'Malley added a comment -

        I just committed this patch. Thanks, Nicholas!

        Show
        Owen O'Malley added a comment - I just committed this patch. Thanks, Nicholas!
        Hide
        Tsz Wo Nicholas Sze added a comment -

        3539_20080617.patch: fixed the hadoop script

        Show
        Tsz Wo Nicholas Sze added a comment - 3539_20080617.patch: fixed the hadoop script
        Hide
        Tsz Wo Nicholas Sze added a comment -

        As a consequence, tools like distcp cannot be executed in cygwin by "bin/hadoop distcp ...".

        Show
        Tsz Wo Nicholas Sze added a comment - As a consequence, tools like distcp cannot be executed in cygwin by "bin/hadoop distcp ...".

          People

          • Assignee:
            Tsz Wo Nicholas Sze
            Reporter:
            Tsz Wo Nicholas Sze
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development