How to use Mahout in a Windows environment?

user249210 picture user249210 · Apr 29, 2010 · Viewed 7.1k times · Source

I am trying to use Mahout in an application running on Windows. I want to build clusters from a lucene index using k-means.

As soon as I have to create sequence files (creating vectors from a lucene index), I get a Hadoop-Exception, since Hadoop makes command line calls to programs unknown in a Windows environment (e.g. chmod). Running in Cygwin is not an option, since I want to be able to run the App from eclipse.

So my question is

  • is there a way to avoid having to create sequence files to retrieve my vectors from a lucene index?
  • or is there a way to create sequence files in a Windows environment?
  • Answer

    bajafresh4life picture bajafresh4life · Apr 30, 2010

    The only way you can run Hadoop on a Windows environment is to install Cygwin. For more info, see this blog post:

    http://hayesdavis.net/2008/06/14/running-hadoop-on-windows/

    Cygwin will provide all the command-line utilities (like chmod) that Hadoop relies on. You can still run your Hadoop jobs from within Eclipse if you want.