Like Jeff said, it is not an issue with security per se -- it is that
Hadoop wants to execute *nix-style binaries like 'chmod' as part of
its operations. Unfortunately Windows is the odd man out here --
Linux, Unix variants, OS X all have these binaries.

It's not Mahout that requires it -- indeed all of our code is just
pure Java and should have no platform dependence. It is Hadoop, which
is unfortunately a major, key dependency of the project. That said
once you have a compiled .jar, if you are not using Hadoop-related
jobs in Mahout, there should be no problem. For instance if you used
the core collaborative filtering classes in Mahout, you would see no
such problem at run-time since the core classes do not relate to
Hadoop.

Fortunately, Cygwin (cygwin.com) exists. Cygwin is, to me, a must-have
for Windows developers. It gives you a mini-*nix environment by
providing binaries like chmod compiled for Windows. Install it, and,
then either:

1) run all of the Mahout build commands inside the Cygwin bash command line, or
2) add all the binaries in C:\cygwin\usr\bin to your Windows path,
then uses the Windows command line

I think that's all that's needed? Again like Jeff said, shouldn't be
hard to do this and work around this difference in Windows.
Sean

On Fri, Apr 17, 2009 at 5:22 AM, Niraj <[email protected]> wrote:
> Maybe it is just vista , I am having problems with security
> and changing file permissions. I am the administrator on the machine I am
> running.
>
> Some errors include
>
> 1. org.apache.hadoop.util.Shell$ExitCodeException: chmod: changing
> permissions of `C:\\Software\\Mahout\\trunk\\core\\output\\state-0\\part-0':
> Permission denied
>
> 2.testEvaluate(org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest)  Time
> elapsed: 1.654 sec  <<< ERROR!
> org.apache.hadoop.util.Shell$ExitCodeException: chmod: changing permissions
> of `C:\\Software\\Mahout\\trunk\\core\\input\\population': Permission denied
>

Reply via email to