大家好我面臨一個大問題,設置我的第一次爬行使用Nutch 2.2.1和Hbase 0.90.4似乎nutch是越野車。沒有任何工作。請幫幫我。Nuch 2.2.1 Hbase 0.90.4 ClassNotFoundException錯誤
我從apache下載了Nutch 2.2.1和Hbase 0.90.4,並在編譯之前對配置文件進行了更改。我在註釋掉的的ivy.xml山核心和山 - HBase的這一個
<dependency org="org.apache.gora" name="gora-hbase" rev="0.2" conf="*->default" />
<dependency org="org.apache.gora" name="gora-core" rev="0.2" conf="*->default"/>
做所有的東西后,我跑:
bin/nutch inject urls/seed.txt
我得到異常跟蹤
InjectorJob: starting at 2014-10-03 12:58:16
InjectorJob: Injecting urlDir: urls/seed.txt
InjectorJob: java.lang.ClassNotFoundException: org.apache.gora.hbase.store.HBaseStore
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:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
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.InjectorJob.inject(InjectorJob.java:251)
at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:273)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.nutch.crawl.InjectorJob.main(InjectorJob.java:282)
我將gora-core和gora-hbase的rev版本更改爲0.3,但我得到了同樣的錯誤。因爲看起來nutch找不到HBaseStore,所以我把gora-hbase jar放到了CLASSPATH中,但仍然遇到了同樣的錯誤。
蔭使用Ubuntu 12
我的gora設置rev =「0.3」已啓用,但仍不能解決問題 – Bizmate 2016-05-08 09:17:00