You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Gabriele Kahlout <ga...@mysimpatico.com> on 2011/03/21 14:43:08 UTC

Re: Unable to extract PDF content

I'm also having the same issue with nutch-1.2.

$ bin/nutch org.apache.nutch.parse.ParserChecker
http://www.egamaster.com/datos/politica_fr.pdf
---------
Url
---------------
http://www.egamaster.com/datos/politica_fr.pdf---------
ParseData
---------
Version: 5
Status: *failed*(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@2918958e
Title:
Outlinks: 0
Content Metadata:
Parse Metadata:

$ bin/nutch org.apache.nutch.parse.ParserChecker
http://wsdownload.bbc.co.uk/learningenglish/pdf/2011/03/110303122858_110303_6min_heart.pdf
Exception in thread "main" java.lang.NullPointerException
    at org.apache.nutch.parse.ParserChecker.main(ParserChecker.java:84)


$ java -jar /usr/local/bin/tika-app-0.9.jar
http://www.egamaster.com/datos/politica_fr.pdf
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="xmpTPg:NPages" content="1"/>
<meta name="Creation-Date" content="2009-01-15T11:50:32Z"/>
....



<property>
  <name>http.content.limit</name>
<value>*200000* <!--  65536--></value>
  <description>The length limit for downloaded content using the http
  protocol, in bytes. If this value is nonnegative (>=0), content longer
  than it will be truncated; otherwise, no truncation at all. Do not
  confuse this setting with the file.content.limit setting.
  </description>
</property>


 <mime-type type="application/pdf">
    <alias type="application/x-pdf"/>
    <acronym>PDF</acronym>
    <comment>Portable Document Format</comment>
    <magic priority="50">
      <match value="%PDF-" type="string" offset="0"/>
    </magic>
    <glob pattern="*.pdf"/>
  </mime-type>

<property>
  <name>plugin.includes</name>

<value>protocol-http|urlfilter-regex|parse-(text|html|js|tika)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-tf|urlnormalizer-(pass|regex|basic)</value>
  <description>Regular expression naming plugin directory names to
  include.  Any plugin not matching this expression is excluded.
  In any case you need at least include the nutch-extensionpoints plugin. By
  default Nutch includes crawling just HTML and plain text via HTTP,
  and basic indexing and search plugins. In order to use HTTPS please enable
  protocol-httpclient, but be aware of possible intermittent problems with
the
  underlying commons-httpclient library. Nutch now also includes integration
with Tika
  to leverage Tika's parsing capabilities for multiple content types. The
existing Nutch
  parser implementations will likely be phased out in the next release or
so, as such, it is
  a good idea to begin migrating away from anything not provided by
parse-tika.
  </description>
</property>

-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Unable to extract PDF content

Posted by Markus Jelsma <ma...@openindex.io>.
bin/nutch org.apache.nutch.parse.ParserChecker -dumpText 
http://singinst.org/upload/artificial-intelligence-risk.pdf

No problems at all with branch-1.2 and 1.3 with standard configuration.

Gabriele's URL works as well without issues:

bin/nutch org.apache.nutch.parse.ParserChecker -dumpText 
http://www.egamaster.com/datos/politica_fr.pdf

What's going on with your configurations?

> Hi Gabriele
> 
> Was wondering if you have had a chance to try checking out, building branch
> and trying out same crawl with it?
> ________________________________________
> From: Gabriele Kahlout [gabriele@mysimpatico.com]
> Sent: 31 March 2011 09:59
> To: Julien Nioche
> Cc: user@nutch.apache.org
> Subject: Re: Unable to extract PDF content
> 
> I'm still not able to parse those pdfs, although they are fetched:
> 
> QueueFeeder finished: total 3 records + hit by time limit :0
> fetching http://www.egamaster.com/datos/politica_fr.pdf
> fetching http://singinst.org/upload/artificial-intelligence-risk.pdf
> -finishing thread FetcherThread, activeThreads=6
> fetching
> http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670
> .pdf -finishing thread FetcherThread, activeThreads=6
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=4
> -finishing thread FetcherThread, activeThreads=3
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> *Error parsing:
> http://singinst.org/upload/artificial-intelligence-risk.pdf: failed(2,0):
> expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@3d3c33b7*
> -finishing thread FetcherThread, activeThreads=2
> *Error parsing: http://www.egamaster.com/datos/politica_fr.pdf:
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@2bf8f8c8*
> -finishing thread FetcherThread, activeThreads=1
> -activeThreads=1, spinWaiting=0, fetchQueues.totalSize=0
> *Error parsing:
> http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670
> .pdf: failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@4b6c06dd*
> -finishing thread FetcherThread, activeThreads=0
> -activeThreads=0, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=0
> Fetcher: finished at 2011-03-31 10:50:37, elapsed: 00:00:14
> 
> Statistics for CrawlDb: crawl/crawldb/0
> *TOTAL urls: 3*
> retry 0: 3
> min score: 1.0
> avg score: 1.0
> max score: 1.0
> *status 2 (db_fetched): 3*
> CrawlDb statistics: done
> 
> 
> 
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
> 
> Winner: Times Higher Education’s Widening Participation Initiative of the
> Year 2009 and Herald Society’s Education Initiative of the Year 2009.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,
> en.html
> 
> Winner: Times Higher Education’s Outstanding Support for Early Career
> Researchers of the Year 2010, GCU as a lead with Universities Scotland
> partners.
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691
> ,en.html

RE: Unable to extract PDF content

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
http://www.sepa.org.uk/climate_change/publications.aspx
http://www.scotland.gov.uk/Publications/Recent
http://www.carbontrust.co.uk/publications/pages/home.aspx

these sites all have an array of links to pdf's

I have been crawling and picking up pdf's on nutch-1.2 and branch so I know that they contain working links.
________________________________________
From: Gabriele Kahlout [gabriele@mysimpatico.com]
Sent: 06 April 2011 21:11
To: McGibbney, Lewis John
Cc: user@nutch.apache.org
Subject: Re: Unable to extract PDF content

Would you share some working public pdf links so that I'm trying on the same material?


Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

Re: Unable to extract PDF content

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
Would you share some working public pdf links so that I'm trying on the same
material?

On Wed, Apr 6, 2011 at 10:09 PM, McGibbney, Lewis John <
Lewis.McGibbney@gcu.ac.uk> wrote:

> Hi Gabriele,
>
> So it is the same PDF's which are causing the bother :0| even between
> Nutch-1.2 and branch
>
> I have not applied the patch and all pdf's seem to be parsing fine with
> branch. I am interested to understand what the problem is with these
> particular pdf files. I know that we should be able to parse both normal as
> well as encrypted pdf, however on the surface it appears the files are
> normal in nature, two of pdf version 1.3 and one of version 1.4. Although I
> have not attempted to parse any version 1.3 files the 1.4 and above files
> parse without any hitches so I doubt that this is the problem. I am also
> unfamiliar with the 'expected' and 'actual' values you are getting as
> output, wondering if you might be able to get more information on this
> output from somewhere.
> ________________________________________
> From: Gabriele Kahlout [gabriele@mysimpatico.com]
> Sent: 06 April 2011 19:04
> To: user@nutch.apache.org
> Cc: McGibbney, Lewis John
> Subject: Re: Unable to extract PDF content
>
> I've finally tried with nutch-1.3 branch applying NUTCH-967-1.3.patch[1]
> and I get the same issue. Does it work for you?
>
> bin/nutch parse crawl/segments/0/20110406195251
> ParseSegment: starting at 2011-04-06 19:53:15
> ParseSegment: segment: crawl/segments/0/20110406195251
> Error parsing:
> http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf:
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@5d469658
> Error parsing: http://singinst.org/upload/artificial-intelligence-risk.pdf:
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@108f2ca6
> Error parsing: http://www.egamaster.com/datos/politica_fr.pdf:
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@13647278
> ParseSegment: finished at 2011-04-06 19:53:23, elapsed: 00:00:08
>
> [1]
> https://issues.apache.org/jira/secure/attachment/12474966/NUTCH-967-1.3.patch
>
>
>
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
>
> Winner: Times Higher Education’s Widening Participation Initiative of the
> Year 2009 and Herald Society’s Education Initiative of the Year 2009.
>
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
>
> Winner: Times Higher Education’s Outstanding Support for Early Career
> Researchers of the Year 2010, GCU as a lead with Universities Scotland
> partners.
>
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

RE: Unable to extract PDF content

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Hi Gabriele,

So it is the same PDF's which are causing the bother :0| even between Nutch-1.2 and branch

I have not applied the patch and all pdf's seem to be parsing fine with branch. I am interested to understand what the problem is with these particular pdf files. I know that we should be able to parse both normal as well as encrypted pdf, however on the surface it appears the files are normal in nature, two of pdf version 1.3 and one of version 1.4. Although I have not attempted to parse any version 1.3 files the 1.4 and above files parse without any hitches so I doubt that this is the problem. I am also unfamiliar with the 'expected' and 'actual' values you are getting as output, wondering if you might be able to get more information on this output from somewhere.
________________________________________
From: Gabriele Kahlout [gabriele@mysimpatico.com]
Sent: 06 April 2011 19:04
To: user@nutch.apache.org
Cc: McGibbney, Lewis John
Subject: Re: Unable to extract PDF content

I've finally tried with nutch-1.3 branch applying NUTCH-967-1.3.patch[1] and I get the same issue. Does it work for you?

bin/nutch parse crawl/segments/0/20110406195251
ParseSegment: starting at 2011-04-06 19:53:15
ParseSegment: segment: crawl/segments/0/20110406195251
Error parsing: http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf: failed(2,0): expected='endstream' actual='' org.apache.pdfbox.io.PushBackInputStream@5d469658
Error parsing: http://singinst.org/upload/artificial-intelligence-risk.pdf: failed(2,0): expected='endstream' actual='' org.apache.pdfbox.io.PushBackInputStream@108f2ca6
Error parsing: http://www.egamaster.com/datos/politica_fr.pdf: failed(2,0): expected='endstream' actual='' org.apache.pdfbox.io.PushBackInputStream@13647278
ParseSegment: finished at 2011-04-06 19:53:23, elapsed: 00:00:08

[1] https://issues.apache.org/jira/secure/attachment/12474966/NUTCH-967-1.3.patch



Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

Re: Unable to extract PDF content

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
I've finally tried with nutch-1.3 branch applying NUTCH-967-1.3.patch[1] and
I get the same issue. Does it work for you?

bin/nutch parse crawl/segments/0/20110406195251
ParseSegment: starting at 2011-04-06 19:53:15
ParseSegment: segment: crawl/segments/0/20110406195251
Error parsing:
http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@5d469658
Error parsing: http://singinst.org/upload/artificial-intelligence-risk.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@108f2ca6
Error parsing: http://www.egamaster.com/datos/politica_fr.pdf: failed(2,0):
expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@13647278
ParseSegment: finished at 2011-04-06 19:53:23, elapsed: 00:00:08

[1]
https://issues.apache.org/jira/secure/attachment/12474966/NUTCH-967-1.3.patch

On Thu, Mar 31, 2011 at 11:11 AM, McGibbney, Lewis John <
Lewis.McGibbney@gcu.ac.uk> wrote:

> Hi Gabriele
>
> Was wondering if you have had a chance to try checking out, building branch
> and trying out same crawl with it?
> ________________________________________
> From: Gabriele Kahlout [gabriele@mysimpatico.com]
> Sent: 31 March 2011 09:59
> To: Julien Nioche
> Cc: user@nutch.apache.org
> Subject: Re: Unable to extract PDF content
>
> I'm still not able to parse those pdfs, although they are fetched:
>
> QueueFeeder finished: total 3 records + hit by time limit :0
> fetching http://www.egamaster.com/datos/politica_fr.pdf
> fetching http://singinst.org/upload/artificial-intelligence-risk.pdf
> -finishing thread FetcherThread, activeThreads=6
> fetching
>
> http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf
> -finishing thread FetcherThread, activeThreads=6
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=5
> -finishing thread FetcherThread, activeThreads=4
> -finishing thread FetcherThread, activeThreads=3
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
> *Error parsing:
> http://singinst.org/upload/artificial-intelligence-risk.pdf:
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@3d3c33b7*
> -finishing thread FetcherThread, activeThreads=2
> *Error parsing: http://www.egamaster.com/datos/politica_fr.pdf:
> failed(2,0):
> expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@2bf8f8c8*
> -finishing thread FetcherThread, activeThreads=1
> -activeThreads=1, spinWaiting=0, fetchQueues.totalSize=0
> *Error parsing:
>
> http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf
> :
> failed(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@4b6c06dd*
> -finishing thread FetcherThread, activeThreads=0
> -activeThreads=0, spinWaiting=0, fetchQueues.totalSize=0
> -activeThreads=0
> Fetcher: finished at 2011-03-31 10:50:37, elapsed: 00:00:14
>
> Statistics for CrawlDb: crawl/crawldb/0
> *TOTAL urls: 3*
> retry 0: 3
> min score: 1.0
> avg score: 1.0
> max score: 1.0
> *status 2 (db_fetched): 3*
> CrawlDb statistics: done
>
>
>
> Glasgow Caledonian University is a registered Scottish charity, number
> SC021474
>
> Winner: Times Higher Education’s Widening Participation Initiative of the
> Year 2009 and Herald Society’s Education Initiative of the Year 2009.
>
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html
>
> Winner: Times Higher Education’s Outstanding Support for Early Career
> Researchers of the Year 2010, GCU as a lead with Universities Scotland
> partners.
>
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

RE: Unable to extract PDF content

Posted by "McGibbney, Lewis John" <Le...@gcu.ac.uk>.
Hi Gabriele

Was wondering if you have had a chance to try checking out, building branch and trying out same crawl with it?
________________________________________
From: Gabriele Kahlout [gabriele@mysimpatico.com]
Sent: 31 March 2011 09:59
To: Julien Nioche
Cc: user@nutch.apache.org
Subject: Re: Unable to extract PDF content

I'm still not able to parse those pdfs, although they are fetched:

QueueFeeder finished: total 3 records + hit by time limit :0
fetching http://www.egamaster.com/datos/politica_fr.pdf
fetching http://singinst.org/upload/artificial-intelligence-risk.pdf
-finishing thread FetcherThread, activeThreads=6
fetching
http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf
-finishing thread FetcherThread, activeThreads=6
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=4
-finishing thread FetcherThread, activeThreads=3
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
*Error parsing: http://singinst.org/upload/artificial-intelligence-risk.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@3d3c33b7*
-finishing thread FetcherThread, activeThreads=2
*Error parsing: http://www.egamaster.com/datos/politica_fr.pdf: failed(2,0):
expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@2bf8f8c8*
-finishing thread FetcherThread, activeThreads=1
-activeThreads=1, spinWaiting=0, fetchQueues.totalSize=0
*Error parsing:
http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@4b6c06dd*
-finishing thread FetcherThread, activeThreads=0
-activeThreads=0, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=0
Fetcher: finished at 2011-03-31 10:50:37, elapsed: 00:00:14

Statistics for CrawlDb: crawl/crawldb/0
*TOTAL urls: 3*
retry 0: 3
min score: 1.0
avg score: 1.0
max score: 1.0
*status 2 (db_fetched): 3*
CrawlDb statistics: done



Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education’s Widening Participation Initiative of the Year 2009 and Herald Society’s Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education’s Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html

Re: Unable to extract PDF content

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
I'm still not able to parse those pdfs, although they are fetched:

QueueFeeder finished: total 3 records + hit by time limit :0
fetching http://www.egamaster.com/datos/politica_fr.pdf
fetching http://singinst.org/upload/artificial-intelligence-risk.pdf
-finishing thread FetcherThread, activeThreads=6
fetching
http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf
-finishing thread FetcherThread, activeThreads=6
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=5
-finishing thread FetcherThread, activeThreads=4
-finishing thread FetcherThread, activeThreads=3
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=3, spinWaiting=0, fetchQueues.totalSize=0
*Error parsing: http://singinst.org/upload/artificial-intelligence-risk.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@3d3c33b7*
-finishing thread FetcherThread, activeThreads=2
*Error parsing: http://www.egamaster.com/datos/politica_fr.pdf: failed(2,0):
expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@2bf8f8c8*
-finishing thread FetcherThread, activeThreads=1
-activeThreads=1, spinWaiting=0, fetchQueues.totalSize=0
*Error parsing:
http://news.softpedia.com/newsPDF/Functional-Artificial-Leaf-Created-191670.pdf:
failed(2,0): expected='endstream' actual=''
org.apache.pdfbox.io.PushBackInputStream@4b6c06dd*
-finishing thread FetcherThread, activeThreads=0
-activeThreads=0, spinWaiting=0, fetchQueues.totalSize=0
-activeThreads=0
Fetcher: finished at 2011-03-31 10:50:37, elapsed: 00:00:14

Statistics for CrawlDb: crawl/crawldb/0
*TOTAL urls: 3*
retry 0: 3
min score: 1.0
avg score: 1.0
max score: 1.0
*status 2 (db_fetched): 3*
CrawlDb statistics: done



On Mon, Mar 21, 2011 at 4:28 PM, Gabriele Kahlout
<ga...@mysimpatico.com>wrote:

> Otherwise trying your instructions is not working out. When will nutch-1.3
> be released?
>
>
> On Mon, Mar 21, 2011 at 4:07 PM, Gabriele Kahlout <
> gabriele@mysimpatico.com> wrote:
>
>> I've tried with a small file and it worked:
>>
>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>> http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3&hl=en
>> [1] 15177
>> michaela:nutch-1.2 simpatico$ ---------
>> Url
>> ---------------
>>
>> http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3---------
>> ParseData
>> ---------
>> Version: 5
>> Status: success(1,0)
>> Title: Moved Temporarily
>> Outlinks: 1
>>   outlink: toUrl:
>> https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3anchor: here
>> Content Metadata: X-Frame-Options=SAMEORIGIN Date=Mon, 21 Mar 2011
>> 15:05:06 GMT X-XSS-Protection=1; mode=block Expires=Mon, 21 Mar 2011
>> 15:05:06 GMT Location=
>> https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3Via=1.0 cerbero.localdomain:800 (squid/2.6.STABLE21) Connection=close
>> Content-Type=text/html; charset=UTF-8 X-Cache=MISS from cerbero.localdomain
>> Server=GSE X-Content-Type-Options=nosniff Cache-Control=private, max-age=0
>> Parse Metadata: CharEncodingForConversion=utf-8 OriginalCharEncoding=utf-8
>>
>>
>>
>> On Mon, Mar 21, 2011 at 3:34 PM, Julien Nioche <
>> lists.digitalpebble@gmail.com> wrote:
>>
>>> I've tried both URLs with nutch-1.3 with
>>>
>>> <property>
>>>   <name>http.content.limit</name>
>>>   <value>-1</value>
>>>   <description/>
>>> </property>
>>>
>>> and ./nutch org.apache.nutch.parse.ParserChecker ran without any
>>> problems.
>>>
>>> It could be that the nutch-site.xml is loaded from conf/ then overriden
>>> by the one found in the job file (which is the reason why we separated the
>>> runtime/deploy from runtime/local in nutch 1.3 and 2.0). Try deleting the
>>> job file or generating a fresh one with 'ant job' and see if this fixes the
>>> issue.
>>>
>>> Julien
>>>
>>>
>>> On 21 March 2011 13:43, Gabriele Kahlout <ga...@mysimpatico.com>wrote:
>>>
>>>> I'm also having the same issue with nutch-1.2.
>>>>
>>>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>>>> http://www.egamaster.com/datos/politica_fr.pdf
>>>> ---------
>>>> Url
>>>> ---------------
>>>> http://www.egamaster.com/datos/politica_fr.pdf---------
>>>> ParseData
>>>> ---------
>>>> Version: 5
>>>> Status: *failed*(2,0): expected='endstream' actual=''
>>>> org.apache.pdfbox.io.PushBackInputStream@2918958e
>>>> Title:
>>>> Outlinks: 0
>>>> Content Metadata:
>>>> Parse Metadata:
>>>>
>>>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>>>> http://wsdownload.bbc.co.uk/learningenglish/pdf/2011/03/110303122858_110303_6min_heart.pdf
>>>> Exception in thread "main" java.lang.NullPointerException
>>>>     at org.apache.nutch.parse.ParserChecker.main(ParserChecker.java:84)
>>>>
>>>>
>>>> $ java -jar /usr/local/bin/tika-app-0.9.jar
>>>> http://www.egamaster.com/datos/politica_fr.pdf
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>>> <head>
>>>> <meta name="xmpTPg:NPages" content="1"/>
>>>> <meta name="Creation-Date" content="2009-01-15T11:50:32Z"/>
>>>> ....
>>>>
>>>>
>>>>
>>>> <property>
>>>>   <name>http.content.limit</name>
>>>> <value>*200000* <!--  65536--></value>
>>>>   <description>The length limit for downloaded content using the http
>>>>   protocol, in bytes. If this value is nonnegative (>=0), content longer
>>>>   than it will be truncated; otherwise, no truncation at all. Do not
>>>>   confuse this setting with the file.content.limit setting.
>>>>   </description>
>>>> </property>
>>>>
>>>>
>>>>  <mime-type type="application/pdf">
>>>>     <alias type="application/x-pdf"/>
>>>>     <acronym>PDF</acronym>
>>>>     <comment>Portable Document Format</comment>
>>>>     <magic priority="50">
>>>>       <match value="%PDF-" type="string" offset="0"/>
>>>>     </magic>
>>>>     <glob pattern="*.pdf"/>
>>>>   </mime-type>
>>>>
>>>> <property>
>>>>   <name>plugin.includes</name>
>>>>
>>>> <value>protocol-http|urlfilter-regex|parse-(text|html|js|tika)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-tf|urlnormalizer-(pass|regex|basic)</value>
>>>>   <description>Regular expression naming plugin directory names to
>>>>   include.  Any plugin not matching this expression is excluded.
>>>>   In any case you need at least include the nutch-extensionpoints
>>>> plugin. By
>>>>   default Nutch includes crawling just HTML and plain text via HTTP,
>>>>   and basic indexing and search plugins. In order to use HTTPS please
>>>> enable
>>>>   protocol-httpclient, but be aware of possible intermittent problems
>>>> with the
>>>>   underlying commons-httpclient library. Nutch now also includes
>>>> integration with Tika
>>>>   to leverage Tika's parsing capabilities for multiple content types.
>>>> The existing Nutch
>>>>   parser implementations will likely be phased out in the next release
>>>> or so, as such, it is
>>>>   a good idea to begin migrating away from anything not provided by
>>>> parse-tika.
>>>>   </description>
>>>> </property>
>>>>
>>>> --
>>>> Regards,
>>>> K. Gabriele
>>>>
>>>> --- unchanged since 20/9/10 ---
>>>> P.S. If the subject contains "[LON]" or the addressee acknowledges the
>>>> receipt within 48 hours then I don't resend the email.
>>>> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
>>>> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>>>>
>>>> If an email is sent by a sender that is not a trusted contact or the
>>>> email does not contain a valid code then the email is not received. A valid
>>>> code starts with a hyphen and ends with "X".
>>>> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
>>>> L(-[a-z]+[0-9]X)).
>>>>
>>>>
>>>
>>>
>>> --
>>> *
>>> *Open Source Solutions for Text Engineering
>>>
>>> http://digitalpebble.blogspot.com/
>>> http://www.digitalpebble.com
>>>
>>
>>
>>
>> --
>> Regards,
>> K. Gabriele
>>
>> --- unchanged since 20/9/10 ---
>> P.S. If the subject contains "[LON]" or the addressee acknowledges the
>> receipt within 48 hours then I don't resend the email.
>> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
>> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>>
>> If an email is sent by a sender that is not a trusted contact or the email
>> does not contain a valid code then the email is not received. A valid code
>> starts with a hyphen and ends with "X".
>> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
>> L(-[a-z]+[0-9]X)).
>>
>>
>
>
> --
> Regards,
> K. Gabriele
>
> --- unchanged since 20/9/10 ---
> P.S. If the subject contains "[LON]" or the addressee acknowledges the
> receipt within 48 hours then I don't resend the email.
> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>
> If an email is sent by a sender that is not a trusted contact or the email
> does not contain a valid code then the email is not received. A valid code
> starts with a hyphen and ends with "X".
> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
> L(-[a-z]+[0-9]X)).
>
>


-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Unable to extract PDF content

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
Otherwise trying your instructions is not working out. When will nutch-1.3
be released?

On Mon, Mar 21, 2011 at 4:07 PM, Gabriele Kahlout
<ga...@mysimpatico.com>wrote:

> I've tried with a small file and it worked:
>
> $ bin/nutch org.apache.nutch.parse.ParserChecker
> http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3&hl=en
> [1] 15177
> michaela:nutch-1.2 simpatico$ ---------
> Url
> ---------------
>
> http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3---------
> ParseData
> ---------
> Version: 5
> Status: success(1,0)
> Title: Moved Temporarily
> Outlinks: 1
>   outlink: toUrl:
> https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3anchor: here
> Content Metadata: X-Frame-Options=SAMEORIGIN Date=Mon, 21 Mar 2011 15:05:06
> GMT X-XSS-Protection=1; mode=block Expires=Mon, 21 Mar 2011 15:05:06 GMT
> Location=
> https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3Via=1.0 cerbero.localdomain:800 (squid/2.6.STABLE21) Connection=close
> Content-Type=text/html; charset=UTF-8 X-Cache=MISS from cerbero.localdomain
> Server=GSE X-Content-Type-Options=nosniff Cache-Control=private, max-age=0
> Parse Metadata: CharEncodingForConversion=utf-8 OriginalCharEncoding=utf-8
>
>
> On Mon, Mar 21, 2011 at 3:34 PM, Julien Nioche <
> lists.digitalpebble@gmail.com> wrote:
>
>> I've tried both URLs with nutch-1.3 with
>>
>> <property>
>>   <name>http.content.limit</name>
>>   <value>-1</value>
>>   <description/>
>> </property>
>>
>> and ./nutch org.apache.nutch.parse.ParserChecker ran without any problems.
>>
>> It could be that the nutch-site.xml is loaded from conf/ then overriden by
>> the one found in the job file (which is the reason why we separated the
>> runtime/deploy from runtime/local in nutch 1.3 and 2.0). Try deleting the
>> job file or generating a fresh one with 'ant job' and see if this fixes the
>> issue.
>>
>> Julien
>>
>>
>> On 21 March 2011 13:43, Gabriele Kahlout <ga...@mysimpatico.com>wrote:
>>
>>> I'm also having the same issue with nutch-1.2.
>>>
>>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>>> http://www.egamaster.com/datos/politica_fr.pdf
>>> ---------
>>> Url
>>> ---------------
>>> http://www.egamaster.com/datos/politica_fr.pdf---------
>>> ParseData
>>> ---------
>>> Version: 5
>>> Status: *failed*(2,0): expected='endstream' actual=''
>>> org.apache.pdfbox.io.PushBackInputStream@2918958e
>>> Title:
>>> Outlinks: 0
>>> Content Metadata:
>>> Parse Metadata:
>>>
>>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>>> http://wsdownload.bbc.co.uk/learningenglish/pdf/2011/03/110303122858_110303_6min_heart.pdf
>>> Exception in thread "main" java.lang.NullPointerException
>>>     at org.apache.nutch.parse.ParserChecker.main(ParserChecker.java:84)
>>>
>>>
>>> $ java -jar /usr/local/bin/tika-app-0.9.jar
>>> http://www.egamaster.com/datos/politica_fr.pdf
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>> <head>
>>> <meta name="xmpTPg:NPages" content="1"/>
>>> <meta name="Creation-Date" content="2009-01-15T11:50:32Z"/>
>>> ....
>>>
>>>
>>>
>>> <property>
>>>   <name>http.content.limit</name>
>>> <value>*200000* <!--  65536--></value>
>>>   <description>The length limit for downloaded content using the http
>>>   protocol, in bytes. If this value is nonnegative (>=0), content longer
>>>   than it will be truncated; otherwise, no truncation at all. Do not
>>>   confuse this setting with the file.content.limit setting.
>>>   </description>
>>> </property>
>>>
>>>
>>>  <mime-type type="application/pdf">
>>>     <alias type="application/x-pdf"/>
>>>     <acronym>PDF</acronym>
>>>     <comment>Portable Document Format</comment>
>>>     <magic priority="50">
>>>       <match value="%PDF-" type="string" offset="0"/>
>>>     </magic>
>>>     <glob pattern="*.pdf"/>
>>>   </mime-type>
>>>
>>> <property>
>>>   <name>plugin.includes</name>
>>>
>>> <value>protocol-http|urlfilter-regex|parse-(text|html|js|tika)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-tf|urlnormalizer-(pass|regex|basic)</value>
>>>   <description>Regular expression naming plugin directory names to
>>>   include.  Any plugin not matching this expression is excluded.
>>>   In any case you need at least include the nutch-extensionpoints plugin.
>>> By
>>>   default Nutch includes crawling just HTML and plain text via HTTP,
>>>   and basic indexing and search plugins. In order to use HTTPS please
>>> enable
>>>   protocol-httpclient, but be aware of possible intermittent problems
>>> with the
>>>   underlying commons-httpclient library. Nutch now also includes
>>> integration with Tika
>>>   to leverage Tika's parsing capabilities for multiple content types. The
>>> existing Nutch
>>>   parser implementations will likely be phased out in the next release or
>>> so, as such, it is
>>>   a good idea to begin migrating away from anything not provided by
>>> parse-tika.
>>>   </description>
>>> </property>
>>>
>>> --
>>> Regards,
>>> K. Gabriele
>>>
>>> --- unchanged since 20/9/10 ---
>>> P.S. If the subject contains "[LON]" or the addressee acknowledges the
>>> receipt within 48 hours then I don't resend the email.
>>> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
>>> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>>>
>>> If an email is sent by a sender that is not a trusted contact or the
>>> email does not contain a valid code then the email is not received. A valid
>>> code starts with a hyphen and ends with "X".
>>> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
>>> L(-[a-z]+[0-9]X)).
>>>
>>>
>>
>>
>> --
>> *
>> *Open Source Solutions for Text Engineering
>>
>> http://digitalpebble.blogspot.com/
>> http://www.digitalpebble.com
>>
>
>
>
> --
> Regards,
> K. Gabriele
>
> --- unchanged since 20/9/10 ---
> P.S. If the subject contains "[LON]" or the addressee acknowledges the
> receipt within 48 hours then I don't resend the email.
> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>
> If an email is sent by a sender that is not a trusted contact or the email
> does not contain a valid code then the email is not received. A valid code
> starts with a hyphen and ends with "X".
> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
> L(-[a-z]+[0-9]X)).
>
>


-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Unable to extract PDF content

Posted by Gabriele Kahlout <ga...@mysimpatico.com>.
I've tried with a small file and it worked:

$ bin/nutch org.apache.nutch.parse.ParserChecker
http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3&hl=en
[1] 15177
michaela:nutch-1.2 simpatico$ ---------
Url
---------------
http://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3---------
ParseData
---------
Version: 5
Status: success(1,0)
Title: Moved Temporarily
Outlinks: 1
  outlink: toUrl:
https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3anchor:
here
Content Metadata: X-Frame-Options=SAMEORIGIN Date=Mon, 21 Mar 2011 15:05:06
GMT X-XSS-Protection=1; mode=block Expires=Mon, 21 Mar 2011 15:05:06 GMT
Location=
https://docs.google.com/leaf?id=0B7OkJm_8TIzzMDA0NzgxMzMtYTk0Ni00MTcwLTk0MTgtZjE0OGM4NDE5MWQ3Via=1.0
cerbero.localdomain:800 (squid/2.6.STABLE21) Connection=close
Content-Type=text/html; charset=UTF-8 X-Cache=MISS from cerbero.localdomain
Server=GSE X-Content-Type-Options=nosniff Cache-Control=private, max-age=0
Parse Metadata: CharEncodingForConversion=utf-8 OriginalCharEncoding=utf-8


On Mon, Mar 21, 2011 at 3:34 PM, Julien Nioche <
lists.digitalpebble@gmail.com> wrote:

> I've tried both URLs with nutch-1.3 with
>
> <property>
>   <name>http.content.limit</name>
>   <value>-1</value>
>   <description/>
> </property>
>
> and ./nutch org.apache.nutch.parse.ParserChecker ran without any problems.
>
> It could be that the nutch-site.xml is loaded from conf/ then overriden by
> the one found in the job file (which is the reason why we separated the
> runtime/deploy from runtime/local in nutch 1.3 and 2.0). Try deleting the
> job file or generating a fresh one with 'ant job' and see if this fixes the
> issue.
>
> Julien
>
>
> On 21 March 2011 13:43, Gabriele Kahlout <ga...@mysimpatico.com> wrote:
>
>> I'm also having the same issue with nutch-1.2.
>>
>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>> http://www.egamaster.com/datos/politica_fr.pdf
>> ---------
>> Url
>> ---------------
>> http://www.egamaster.com/datos/politica_fr.pdf---------
>> ParseData
>> ---------
>> Version: 5
>> Status: *failed*(2,0): expected='endstream' actual=''
>> org.apache.pdfbox.io.PushBackInputStream@2918958e
>> Title:
>> Outlinks: 0
>> Content Metadata:
>> Parse Metadata:
>>
>> $ bin/nutch org.apache.nutch.parse.ParserChecker
>> http://wsdownload.bbc.co.uk/learningenglish/pdf/2011/03/110303122858_110303_6min_heart.pdf
>> Exception in thread "main" java.lang.NullPointerException
>>     at org.apache.nutch.parse.ParserChecker.main(ParserChecker.java:84)
>>
>>
>> $ java -jar /usr/local/bin/tika-app-0.9.jar
>> http://www.egamaster.com/datos/politica_fr.pdf
>> <?xml version="1.0" encoding="UTF-8"?>
>> <html xmlns="http://www.w3.org/1999/xhtml">
>> <head>
>> <meta name="xmpTPg:NPages" content="1"/>
>> <meta name="Creation-Date" content="2009-01-15T11:50:32Z"/>
>> ....
>>
>>
>>
>> <property>
>>   <name>http.content.limit</name>
>> <value>*200000* <!--  65536--></value>
>>   <description>The length limit for downloaded content using the http
>>   protocol, in bytes. If this value is nonnegative (>=0), content longer
>>   than it will be truncated; otherwise, no truncation at all. Do not
>>   confuse this setting with the file.content.limit setting.
>>   </description>
>> </property>
>>
>>
>>  <mime-type type="application/pdf">
>>     <alias type="application/x-pdf"/>
>>     <acronym>PDF</acronym>
>>     <comment>Portable Document Format</comment>
>>     <magic priority="50">
>>       <match value="%PDF-" type="string" offset="0"/>
>>     </magic>
>>     <glob pattern="*.pdf"/>
>>   </mime-type>
>>
>> <property>
>>   <name>plugin.includes</name>
>>
>> <value>protocol-http|urlfilter-regex|parse-(text|html|js|tika)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-tf|urlnormalizer-(pass|regex|basic)</value>
>>   <description>Regular expression naming plugin directory names to
>>   include.  Any plugin not matching this expression is excluded.
>>   In any case you need at least include the nutch-extensionpoints plugin.
>> By
>>   default Nutch includes crawling just HTML and plain text via HTTP,
>>   and basic indexing and search plugins. In order to use HTTPS please
>> enable
>>   protocol-httpclient, but be aware of possible intermittent problems with
>> the
>>   underlying commons-httpclient library. Nutch now also includes
>> integration with Tika
>>   to leverage Tika's parsing capabilities for multiple content types. The
>> existing Nutch
>>   parser implementations will likely be phased out in the next release or
>> so, as such, it is
>>   a good idea to begin migrating away from anything not provided by
>> parse-tika.
>>   </description>
>> </property>
>>
>> --
>> Regards,
>> K. Gabriele
>>
>> --- unchanged since 20/9/10 ---
>> P.S. If the subject contains "[LON]" or the addressee acknowledges the
>> receipt within 48 hours then I don't resend the email.
>> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
>> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>>
>> If an email is sent by a sender that is not a trusted contact or the email
>> does not contain a valid code then the email is not received. A valid code
>> starts with a hyphen and ends with "X".
>> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
>> L(-[a-z]+[0-9]X)).
>>
>>
>
>
> --
> *
> *Open Source Solutions for Text Engineering
>
> http://digitalpebble.blogspot.com/
> http://www.digitalpebble.com
>



-- 
Regards,
K. Gabriele

--- unchanged since 20/9/10 ---
P.S. If the subject contains "[LON]" or the addressee acknowledges the
receipt within 48 hours then I don't resend the email.
subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧ time(x)
< Now + 48h) ⇒ ¬resend(I, this).

If an email is sent by a sender that is not a trusted contact or the email
does not contain a valid code then the email is not received. A valid code
starts with a hyphen and ends with "X".
∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
L(-[a-z]+[0-9]X)).

Re: Unable to extract PDF content

Posted by Julien Nioche <li...@gmail.com>.
I've tried both URLs with nutch-1.3 with

<property>
  <name>http.content.limit</name>
  <value>-1</value>
  <description/>
</property>

and ./nutch org.apache.nutch.parse.ParserChecker ran without any problems.

It could be that the nutch-site.xml is loaded from conf/ then overriden by
the one found in the job file (which is the reason why we separated the
runtime/deploy from runtime/local in nutch 1.3 and 2.0). Try deleting the
job file or generating a fresh one with 'ant job' and see if this fixes the
issue.

Julien

On 21 March 2011 13:43, Gabriele Kahlout <ga...@mysimpatico.com> wrote:

> I'm also having the same issue with nutch-1.2.
>
> $ bin/nutch org.apache.nutch.parse.ParserChecker
> http://www.egamaster.com/datos/politica_fr.pdf
> ---------
> Url
> ---------------
> http://www.egamaster.com/datos/politica_fr.pdf---------
> ParseData
> ---------
> Version: 5
> Status: *failed*(2,0): expected='endstream' actual=''
> org.apache.pdfbox.io.PushBackInputStream@2918958e
> Title:
> Outlinks: 0
> Content Metadata:
> Parse Metadata:
>
> $ bin/nutch org.apache.nutch.parse.ParserChecker
> http://wsdownload.bbc.co.uk/learningenglish/pdf/2011/03/110303122858_110303_6min_heart.pdf
> Exception in thread "main" java.lang.NullPointerException
>     at org.apache.nutch.parse.ParserChecker.main(ParserChecker.java:84)
>
>
> $ java -jar /usr/local/bin/tika-app-0.9.jar
> http://www.egamaster.com/datos/politica_fr.pdf
> <?xml version="1.0" encoding="UTF-8"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta name="xmpTPg:NPages" content="1"/>
> <meta name="Creation-Date" content="2009-01-15T11:50:32Z"/>
> ....
>
>
>
> <property>
>   <name>http.content.limit</name>
> <value>*200000* <!--  65536--></value>
>   <description>The length limit for downloaded content using the http
>   protocol, in bytes. If this value is nonnegative (>=0), content longer
>   than it will be truncated; otherwise, no truncation at all. Do not
>   confuse this setting with the file.content.limit setting.
>   </description>
> </property>
>
>
>  <mime-type type="application/pdf">
>     <alias type="application/x-pdf"/>
>     <acronym>PDF</acronym>
>     <comment>Portable Document Format</comment>
>     <magic priority="50">
>       <match value="%PDF-" type="string" offset="0"/>
>     </magic>
>     <glob pattern="*.pdf"/>
>   </mime-type>
>
> <property>
>   <name>plugin.includes</name>
>
> <value>protocol-http|urlfilter-regex|parse-(text|html|js|tika)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-tf|urlnormalizer-(pass|regex|basic)</value>
>   <description>Regular expression naming plugin directory names to
>   include.  Any plugin not matching this expression is excluded.
>   In any case you need at least include the nutch-extensionpoints plugin.
> By
>   default Nutch includes crawling just HTML and plain text via HTTP,
>   and basic indexing and search plugins. In order to use HTTPS please
> enable
>   protocol-httpclient, but be aware of possible intermittent problems with
> the
>   underlying commons-httpclient library. Nutch now also includes
> integration with Tika
>   to leverage Tika's parsing capabilities for multiple content types. The
> existing Nutch
>   parser implementations will likely be phased out in the next release or
> so, as such, it is
>   a good idea to begin migrating away from anything not provided by
> parse-tika.
>   </description>
> </property>
>
> --
> Regards,
> K. Gabriele
>
> --- unchanged since 20/9/10 ---
> P.S. If the subject contains "[LON]" or the addressee acknowledges the
> receipt within 48 hours then I don't resend the email.
> subject(this) ∈ L(LON*) ∨ ∃x. (x ∈ MyInbox ∧ Acknowledges(x, this) ∧
> time(x) < Now + 48h) ⇒ ¬resend(I, this).
>
> If an email is sent by a sender that is not a trusted contact or the email
> does not contain a valid code then the email is not received. A valid code
> starts with a hyphen and ends with "X".
> ∀x. x ∈ MyInbox ⇒ from(x) ∈ MySafeSenderList ∨ (∃y. y ∈ subject(x) ∧ y ∈
> L(-[a-z]+[0-9]X)).
>
>


-- 
*
*Open Source Solutions for Text Engineering

http://digitalpebble.blogspot.com/
http://www.digitalpebble.com