Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4099490
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:26:26+00:00 2026-05-20T20:26:26+00:00

Am I being thick or is there really no way to invoke Apache Nutch

  • 0

Am I being thick or is there really no way to invoke Apache Nutch through some Java code programmatically? Where is the documentation (or a guide or tutorial) on how to do this? Google has failed me. So I actually tried Bing. (Yes, I know, pathetic.) Ideas? Thanks in advance.

(Also, if Nutch is a crap-shoot any other crawlers written in Java that are proven to be reliable on an internet scale with actual documentation?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:26:27+00:00Added an answer on May 20, 2026 at 8:26 pm

    If you take a look inside bin/nutch script, you’ll see that it invokes a Java class corresponding to your command:

    # figure out which class to run
    if [ "$COMMAND" = "crawl" ] ; then
      CLASS=org.apache.nutch.crawl.Crawl
    elif [ "$COMMAND" = "inject" ] ; then
      CLASS=org.apache.nutch.crawl.Injector
    elif [ "$COMMAND" = "generate" ] ; then
      CLASS=org.apache.nutch.crawl.Generator
    elif [ "$COMMAND" = "freegen" ] ; then
      CLASS=org.apache.nutch.tools.FreeGenerator
    elif [ "$COMMAND" = "fetch" ] ; then
      CLASS=org.apache.nutch.fetcher.Fetcher
    elif [ "$COMMAND" = "fetch2" ] ; then
      CLASS=org.apache.nutch.fetcher.Fetcher2
    elif [ "$COMMAND" = "parse" ] ; then
      CLASS=org.apache.nutch.parse.ParseSegment
    elif [ "$COMMAND" = "readdb" ] ; then
      CLASS=org.apache.nutch.crawl.CrawlDbReader
    elif [ "$COMMAND" = "convdb" ] ; then
      CLASS=org.apache.nutch.tools.compat.CrawlDbConverter
    elif [ "$COMMAND" = "mergedb" ] ; then
      CLASS=org.apache.nutch.crawl.CrawlDbMerger
    elif [ "$COMMAND" = "readlinkdb" ] ; then
      CLASS=org.apache.nutch.crawl.LinkDbReader
    elif [ "$COMMAND" = "readseg" ] ; then
      CLASS=org.apache.nutch.segment.SegmentReader
    elif [ "$COMMAND" = "segread" ] ; then
      echo "[DEPRECATED] Command 'segread' is deprecated, use 'readseg' instead."
      CLASS=org.apache.nutch.segment.SegmentReader
    elif [ "$COMMAND" = "mergesegs" ] ; then
      CLASS=org.apache.nutch.segment.SegmentMerger
    elif [ "$COMMAND" = "updatedb" ] ; then
      CLASS=org.apache.nutch.crawl.CrawlDb
    elif [ "$COMMAND" = "invertlinks" ] ; then
      CLASS=org.apache.nutch.crawl.LinkDb
    elif [ "$COMMAND" = "mergelinkdb" ] ; then
      CLASS=org.apache.nutch.crawl.LinkDbMerger
    elif [ "$COMMAND" = "index" ] ; then
      CLASS=org.apache.nutch.indexer.Indexer
    elif [ "$COMMAND" = "solrindex" ] ; then
      CLASS=org.apache.nutch.indexer.solr.SolrIndexer
    elif [ "$COMMAND" = "dedup" ] ; then
      CLASS=org.apache.nutch.indexer.DeleteDuplicates
    elif [ "$COMMAND" = "solrdedup" ] ; then
      CLASS=org.apache.nutch.indexer.solr.SolrDeleteDuplicates
    elif [ "$COMMAND" = "merge" ] ; then
      CLASS=org.apache.nutch.indexer.IndexMerger
    elif [ "$COMMAND" = "plugin" ] ; then
      CLASS=org.apache.nutch.plugin.PluginRepository
    elif [ "$COMMAND" = "server" ] ; then
      CLASS='org.apache.nutch.searcher.DistributedSearch$Server'
    else
      CLASS=$COMMAND
    fi
    
    # run it
    exec "$JAVA" $JAVA_HEAP_MAX $NUTCH_OPTS -classpath "$CLASSPATH" $CLASS "$@"
    

    From there on, it’s only the question of looking at the API docs and, if necessary, source code for those classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that there is no way to fully protect our code. I also
I don't think this is possible, but I'll ask anyway... Is there some way
Is there a way to do this (psedo code): GetCurrentThread().Items.Add(new RefObject); then later on
Being vaguely familiar with the Java world I was googling for a static analysis
Now it seems like a really simple question and I may just be being
Using Reporting Services in SQL Server 2005: Is there a way to count only
I really like being able to organization my objects like this where Source is
First, my code (It is far from perfect, I don't really know what I
I have inherited some code that is not working as I think it should:
Short version: Is there a simple, built-in way to identify the calling view in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.