title: What is Nutch 1.10 crawl command for elasticsearch
body: <p>Using Nutch 1.10 (newbie), I am trying to learn how to crawl using Nutch 1.10 and using ElasticSearch as my indexer. Not sure why, but I can not get this crawl command to work:</p>
  
  <pre><code>bin/crawl -i --elastic -D elastic.server.url=http://localhost:9200/elastic/ urls elasticTestCrawl 1
  </code></pre>
  
  <p>UPDATE: just used</p>
  
  <pre><code>bin/crawl -i -D elastic.server.url=http://localhost:9200/elastic/ urls/ elasticTestCrawl/  2
  </code></pre>
  
  <p>--almost succesfully, received following error when it came to the indexing part of the command:</p>
  
  <pre><code>Error running:
    /home/david/apache-nutch-1.10/bin/nutch clean -Delastic.server.url=http://localhost:9200/elastic/ elasticTestCrawl//crawldb
  Failed with exit value 255.
  </code></pre>
  
  <p>What is exit value 255 for nutch 1.x? And why does the space get deleted between "-D and elastic..."</p>
  
  <p>I have these ElasticSearch Properties from <a href="https://www.mind-it.info/integrating-nutch-1-7-elasticsearch/" rel="nofollow">here</a> in my nutch-site.xml file:</p>
  
  <p>If someone can point my to the error of my ways, that would be great!</p>
  
  <p><strong>Update</strong>
  I just posted my own answer below, its the second one. I had already accepted the first answer months ago when I initially got it working. My answer is simply more clear and concise to make it easier (and quicker) to get started with Nutch.</p>