'chmod' is the program that sets readable permission. It does whatever
Windows magic is required to match the Posix command line semantics.
The cygwin path is not the true windows path. So, when Java runs it gets
the true path which has no Cygwin.

You have to add c:\cygwin\bin to the windows path variables. This happens
in Computer->Properties->Advanced System Settings-> Environment Variables.

Now, for those of you snickering- I am about to hose down my Mac with Linux
because the key mappings make macos unusable, and I'm leaving my Windows
laptop alone.

On Thu, Nov 17, 2011 at 12:08 AM, Sean Owen <[email protected]> wrote:

> This isn't anything to do with chmod, as far as I know: Hadoop uses Java to
> set readable permission, and this is not implemented in Windows.
> chmod is already on the Cygwin path anyway.
>
> It seems pretty normal that Hadoop might want to make its output directory
> writable!
>
> On Thu, Nov 17, 2011 at 4:47 AM, Lance Norskog <[email protected]> wrote:
>
> > The build is crashing in the unit tests, because the tests are attempting
> > to run Hadoop jobs.
> >
> > First, run a build without running the unit tests:
> >
> > mvn -DskipTests=true clean install
> >
> > Next, edit your path so that it includes the windows path of the Cywgin
> > 'chmod.exe' program. This is c:\cygwin\bin\chmod.exe'. This way, when
> Java
> > attempts to run this program, it can find it.
> >
> > Why Hadoop has to do this is beyond understanding, but there it is.
> >
> > Lance
> >
> >
>



-- 
Lance Norskog
[email protected]

Reply via email to