You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Anshuman Mor <mo...@gmail.com> on 2011/09/12 16:28:58 UTC
Not able to index url which is giving http 302
Hi All,
I am using nutch 1.3/1.4 and trying to index one lithium based forum site,
but I am getting http 302 (Moved temporarily).
I have changed the values of 'http.redirect.max' also but nothing happend.
This site has also got basic authentication which I am properly configuring
in httpclient-auth.xml, and not getting any error wrt to authentication.
I get the page properly when I use wget command with --http-user and
--http-password.
Can any one please help me to get rid of this problem.
Regards,
Anshuman Mor
--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-index-url-which-is-giving-http-302-tp3329755p3329755.html
Sent from the Nutch - User mailing list archive at Nabble.com.
Re: Not able to index url which is giving http 302
Posted by lewis john mcgibbney <le...@gmail.com>.
This looks pretty tricky. I am not experienced with using http-client in
general and we could do with getting a wiki page established to comment on
the re-direct policies and scenarios as there is quite a bit of confusion
within the community as to what some 'states' actually mean and how to
crawl/index the pages.
To address you problem specifically, as you said your log output suggests
that basic authentication passes but that nothing is fetched due to the
redirect. How large is the site you are trying to crawl? Does your
http.content.limit property accommodate this?
Where are you getting the info on the 302 redirect moved temp? from reading
or dumping crawldb stats, surely there must be more information available to
narrow the problem area down here.
On Tue, Sep 13, 2011 at 10:41 AM, Anshuman Mor <mo...@gmail.com>wrote:
> Hi Lewis,
>
> My Fault, sorry for that..<br/>
>
> I had enabled some of the logging for httpclient. Please find attached log
> file.<br/>
>
> Please let me know if you need more information on this.<br/>
> http://lucene.472066.n3.nabble.com/file/n3332184/hadoop.log hadoop.log
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Not-able-to-index-url-which-is-giving-http-302-tp3329755p3332184.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>
--
*Lewis*
Re: Not able to index url which is giving http 302
Posted by Anshuman Mor <mo...@gmail.com>.
Hi Lewis,
My Fault, sorry for that..<br/>
I had enabled some of the logging for httpclient. Please find attached log
file.<br/>
Please let me know if you need more information on this.<br/>
http://lucene.472066.n3.nabble.com/file/n3332184/hadoop.log hadoop.log
--
View this message in context: http://lucene.472066.n3.nabble.com/Not-able-to-index-url-which-is-giving-http-302-tp3329755p3332184.html
Sent from the Nutch - User mailing list archive at Nabble.com.
Re: Not able to index url which is giving http 302
Posted by lewis john mcgibbney <le...@gmail.com>.
There is no log output which would suggest anything else other than nothing?
If we had some log output, then we know where to look for a solution.
If we don't have log output this is a case for a patch.
Sorry for my simple logic on this one, but I am keen to ensure that we are
able to provide suitable logging output for matter like this...if possible.
On Mon, Sep 12, 2011 at 3:28 PM, Anshuman Mor <mo...@gmail.com>wrote:
> Hi All,
>
> I am using nutch 1.3/1.4 and trying to index one lithium based forum site,
> but I am getting http 302 (Moved temporarily).
>
>
> I have changed the values of 'http.redirect.max' also but nothing happend.
>
>
> This site has also got basic authentication which I am properly configuring
> in httpclient-auth.xml, and not getting any error wrt to authentication.
>
>
> I get the page properly when I use wget command with --http-user and
> --http-password.
>
>
> Can any one please help me to get rid of this problem.
>
>
> Regards,
>
> Anshuman Mor
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Not-able-to-index-url-which-is-giving-http-302-tp3329755p3329755.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
--
*Lewis*