title: Nutch in Windows: Failed to set permissions of path
body: <p>I'm trying to user Solr with Nutch on a Windows Machine and I'm getting the following error:</p>
  <pre><code>Exception in thread &quot;main&quot; java.io.IOException: Failed to set permissions of path: c:\temp\mapred\staging\admin-1654213299\.staging to 0700
  </code></pre>
  <p>From a lot of threads I learned, that hadoop which seems to be used by nutch does some <code>chmod</code> magic that will work on Unix machines, but not on Windows.</p>
  <p>This problem exists for more than a year now. I found one thread, where the code line is shown and a fix proposed. Am I really them only one who has this problem? Are all others creating a custom build in order to run nutch on windows? Or is there some option to disable the hadoop stuff or another solution? Maybe another crawler than nutch?</p>
  <p>Here's the stack trace of what I'm doing:</p>
  <pre><code>    admin@WIN-G1BPD00JH42 /cygdrive/c/solr/apache-nutch-1.6
      $ bin/nutch crawl urls -dir crawl -depth 3 -topN 5 -solr http://localhost:8080/solr-4.1.0
      cygpath: can't convert empty path
      crawl started in: crawl
      rootUrlDir = urls
      threads = 10
      depth = 3
      solrUrl=http://localhost:8080/solr-4.1.0
      topN = 5
      Injector: starting at 2013-03-03 17:43:15
      Injector: crawlDb: crawl/crawldb
      Injector: urlDir: urls
      Injector: Converting injected urls to crawl db entries.
      Exception in thread &quot;main&quot; java.io.IOException: Failed to set permissions of path:         c:\temp\mapred\staging\admin-1654213299\.staging to 0700
          at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:689)
          at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:662)
          at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:509)
          at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:344)
          at org.apache.hadoop.fs.FilterFileSystem.mkdirs(FilterFileSystem.java:189)
          at org.apache.hadoop.mapreduce.JobSubmissionFiles.getStagingDir(JobSubmissionFiles.java:116)
          at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:856)
          at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:850)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAs(Unknown Source)
          at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1121)
          at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:850)
          at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:824)
          at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1261)
          at org.apache.nutch.crawl.Injector.inject(Injector.java:281)
          at org.apache.nutch.crawl.Crawl.run(Crawl.java:127)
          at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
          at org.apache.nutch.crawl.Crawl.main(Crawl.java:55)
  </code></pre>