You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by EarthMan <hu...@gmail.com> on 2013/07/26 11:02:51 UTC

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Hello Weder,
Have you solved this problem with nutch 2.2? 
If yes can you share the solution? thank you.

I get the same error below:
Exception in thread "main" java.lang.ClassNotFoundException:
org.apache.gora.sql.store.SqlStore
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:190)
	at
org.apache.nutch.storage.StorageUtils.getDataStoreClass(StorageUtils.java:89)
	at
org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:73)
	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:221)
	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
	at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
	at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)




--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4080535.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Please look at recent list archives.
SqLStore is deprecated.
Thanks
Lewis

On Friday, July 26, 2013, EarthMan <hu...@gmail.com> wrote:
> Hello Weder,
> Have you solved this problem with nutch 2.2?
> If yes can you share the solution? thank you.
>
> I get the same error below:
> Exception in thread "main" java.lang.ClassNotFoundException:
> org.apache.gora.sql.store.SqlStore
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:190)
>         at
>
org.apache.nutch.storage.StorageUtils.getDataStoreClass(StorageUtils.java:89)
>         at
> org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:73)
>         at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:221)
>         at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
>         at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
>         at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
>
>
>
>
> --
> View this message in context:
http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4080535.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>

-- 
*Lewis*

Re:Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by Rui Gao <ga...@163.com>.
Hi,

You can have a look at the ivy/ivy.xml to un-comment the necessary lib, then rebuild your project. However, it seems gora-0.3 isn't compatible with gora-sql-0.1.1-incubating. There are some comments you can read in ivy.xml.

Regards,
Rui








At 2013-07-26 17:02:51,EarthMan <hu...@gmail.com> wrote:
>Hello Weder,
>Have you solved this problem with nutch 2.2? 
>If yes can you share the solution? thank you.
>
>I get the same error below:
>Exception in thread "main" java.lang.ClassNotFoundException:
>org.apache.gora.sql.store.SqlStore
>	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>	at java.security.AccessController.doPrivileged(Native Method)
>	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>	at java.lang.Class.forName0(Native Method)
>	at java.lang.Class.forName(Class.java:190)
>	at
>org.apache.nutch.storage.StorageUtils.getDataStoreClass(StorageUtils.java:89)
>	at
>org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:73)
>	at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:221)
>	at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
>	at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
>	at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
>	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>	at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
>
>
>
>
>--
>View this message in context: http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4080535.html
>Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by EarthMan <hu...@gmail.com>.
This tutorial would be useful for Installing Nutch 2.2 with MySQL to handle
UTF-8
http://nlp.solutions.asia/?p=362



--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4081501.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by EarthMan <hu...@gmail.com>.
Hi Weder,
Thank you very much, that should work.
I find a tutorial "Installing Nutch 2.2 with MySQL to handle UTF-8", it
would be useful for using Nutch 2.2 with MySQL.

EarthMan

2013/7/30 Weder Carlos Vieira [via Lucene] <
ml-node+s472066n4081297h48@n3.nabble.com>

> Hello EarthMan,
>
> Yes, I solved this problem by editing NUTCH_HOME/ivy/ivy.xml.
>
> Do you are using MySQL to store data?
> If yes, just change the line below:
>
> <dependency org=”org.apache.gora” name=”gora-core” rev=”0.3″
> conf=”*->default”/>
>
> To
> <dependency org=”org.apache.gora” name=”gora-core” rev=”0.2.1″
> conf=”*->default”/>
>
> Gora 0.3 doesn't supports MySQL although Gora 0.2.1 yes.
>
>
> Weder
>
>
> On Fri, Jul 26, 2013 at 6:02 AM, EarthMan <[hidden email]<http://user/SendEmail.jtp?type=node&node=4081297&i=0>>
> wrote:
>
> > Hello Weder,
> > Have you solved this problem with nutch 2.2?
> > If yes can you share the solution? thank you.
> >
> > I get the same error below:
> > Exception in thread "main" java.lang.ClassNotFoundException:
> > org.apache.gora.sql.store.SqlStore
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:190)
> >         at
> >
> >
> org.apache.nutch.storage.StorageUtils.getDataStoreClass(StorageUtils.java:89)
>
> >         at
> >
> org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:73)
> >         at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:221)
> >         at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
> >         at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
> >         at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
> >         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> >         at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4080535.html
> > Sent from the Nutch - User mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4081297.html
>  To unsubscribe from Nutch 2.2 - Exception in thread 'main'
> [org.apache.gora.sql.store.SqlStore], click here<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4070333&code=aHVhbmdyb25nY3VuQGdtYWlsLmNvbXw0MDcwMzMzfDEwNTUyMTMxMzg=>
> .
> NAML<http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4081499.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by EarthMan <hu...@gmail.com>.
Thank you.



--
View this message in context: http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4081500.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Re: Nutch 2.2 - Exception in thread 'main' [org.apache.gora.sql.store.SqlStore]

Posted by Weder Carlos Vieira <we...@gmail.com>.
Hello EarthMan,

Yes, I solved this problem by editing NUTCH_HOME/ivy/ivy.xml.

Do you are using MySQL to store data?
If yes, just change the line below:

<dependency org=”org.apache.gora” name=”gora-core” rev=”0.3″
conf=”*->default”/>

To
<dependency org=”org.apache.gora” name=”gora-core” rev=”0.2.1″
conf=”*->default”/>

Gora 0.3 doesn't supports MySQL although Gora 0.2.1 yes.


Weder


On Fri, Jul 26, 2013 at 6:02 AM, EarthMan <hu...@gmail.com> wrote:

> Hello Weder,
> Have you solved this problem with nutch 2.2?
> If yes can you share the solution? thank you.
>
> I get the same error below:
> Exception in thread "main" java.lang.ClassNotFoundException:
> org.apache.gora.sql.store.SqlStore
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:190)
>         at
>
> org.apache.nutch.storage.StorageUtils.getDataStoreClass(StorageUtils.java:89)
>         at
> org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:73)
>         at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:221)
>         at org.apache.nutch.crawl.Crawler.runTool(Crawler.java:68)
>         at org.apache.nutch.crawl.Crawler.run(Crawler.java:136)
>         at org.apache.nutch.crawl.Crawler.run(Crawler.java:250)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at org.apache.nutch.crawl.Crawler.main(Crawler.java:257)
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Nutch-2-2-Exception-in-thread-main-org-apache-gora-sql-store-SqlStore-tp4070333p4080535.html
> Sent from the Nutch - User mailing list archive at Nabble.com.
>