You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Rui Gao <ga...@163.com> on 2013/07/21 06:02:00 UTC

[2.2.1] org.apache.hadoop.hbase.MasterNotRunningException

Hi,

I try to setup Nutch2.2.1 + hbase-0.94.9 + eclipse + cygwin on Windows XP. I have hbase configured properly, and I am able to test it via it's shell. But when I run the InjectorJob in eclipse, there are some exceptions:
InjectorJob: starting at 2013-07-21 11:49:28
InjectorJob: Injecting urlDir: urls/dev
InjectorJob: org.apache.gora.util.GoraException: java.lang.RuntimeException: org.apache.hadoop.hbase.MasterNotRunningException
    at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
    at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
    at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
    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)
Caused by: java.lang.RuntimeException: org.apache.hadoop.hbase.MasterNotRunningException
    at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
    at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
    at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
    ... 7 more
Caused by: org.apache.hadoop.hbase.MasterNotRunningException
    at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:394)
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
    at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:109)
    ... 9 more

Another thing confuses me is that I can't find any configuration item about the host of the hbase. Is nutch able to use a remote hbase? Thanks.

Best Regards,
Rui


Re:Re: [2.2.1] org.apache.hadoop.hbase.MasterNotRunningException

Posted by Rui Gao <ga...@163.com>.
Thanks. will try it later.








At 2013-07-21 12:21:10,"Lewis John Mcgibbney" <le...@gmail.com> wrote:
>Hi Rui,
>You can't use this version of HBase in your search stack with Nutch 2.x
>right now.
>You need to downgrade quitte significantly to 0.90.x
>Thanks
>Lewis
>
>On Saturday, July 20, 2013, Rui Gao <ga...@163.com> wrote:
>> Hi,
>>
>> I try to setup Nutch2.2.1 + hbase-0.94.9 + eclipse + cygwin on Windows
>XP. I have hbase configured properly, and I am able to test it via it's
>shell. But when I run the InjectorJob in eclipse, there are some exceptions:
>> InjectorJob: starting at 2013-07-21 11:49:28
>> InjectorJob: Injecting urlDir: urls/dev
>> InjectorJob: org.apache.gora.util.GoraException:
>java.lang.RuntimeException:
>org.apache.hadoop.hbase.MasterNotRunningException
>>     at
>org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
>>     at
>org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
>>     at
>org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
>>     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)
>> Caused by: java.lang.RuntimeException:
>org.apache.hadoop.hbase.MasterNotRunningException
>>     at
>org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
>>     at
>org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
>>     at
>org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
>>     ... 7 more
>> Caused by: org.apache.hadoop.hbase.MasterNotRunningException
>>     at
>org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:394)
>>     at
>org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>>     at
>org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:109)
>>     ... 9 more
>>
>> Another thing confuses me is that I can't find any configuration item
>about the host of the hbase. Is nutch able to use a remote hbase? Thanks.
>>
>> Best Regards,
>> Rui
>>
>>
>
>-- 
>*Lewis*

Re: [2.2.1] org.apache.hadoop.hbase.MasterNotRunningException

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Rui,
You can't use this version of HBase in your search stack with Nutch 2.x
right now.
You need to downgrade quitte significantly to 0.90.x
Thanks
Lewis

On Saturday, July 20, 2013, Rui Gao <ga...@163.com> wrote:
> Hi,
>
> I try to setup Nutch2.2.1 + hbase-0.94.9 + eclipse + cygwin on Windows
XP. I have hbase configured properly, and I am able to test it via it's
shell. But when I run the InjectorJob in eclipse, there are some exceptions:
> InjectorJob: starting at 2013-07-21 11:49:28
> InjectorJob: Injecting urlDir: urls/dev
> InjectorJob: org.apache.gora.util.GoraException:
java.lang.RuntimeException:
org.apache.hadoop.hbase.MasterNotRunningException
>     at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
>     at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
>     at
org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:75)
>     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)
> Caused by: java.lang.RuntimeException:
org.apache.hadoop.hbase.MasterNotRunningException
>     at
org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:127)
>     at
org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
>     at
org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
>     ... 7 more
> Caused by: org.apache.hadoop.hbase.MasterNotRunningException
>     at
org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:394)
>     at
org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
>     at
org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:109)
>     ... 9 more
>
> Another thing confuses me is that I can't find any configuration item
about the host of the hbase. Is nutch able to use a remote hbase? Thanks.
>
> Best Regards,
> Rui
>
>

-- 
*Lewis*