You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Hotec04 <ha...@dish.com> on 2014/04/28 17:28:14 UTC
HBase returns NoServerForRegionException
Hi HBase-dev,
There are three projects: A, B, and C. A and B are both Maven dependents on
C. They all have the same config files for connecting to
HBase(core-site.xml, hbase-site.xml, and hdfs-site.xml). Right now only B
and C can access to HBase and perform operations on it. HBase always returns
NoServerForRegionException if project A tries to connect to it but A is
using the same API from C.
The HBaseConfiguration.create() returns Configuration: core-default.xml,
core-site.xml, mapred-default.xml, mapred-site.xml, yarn-default.xml,
yarn-site.xml, hbase-default.xml, hbase-site.xml for B and C but the
yarn-default.xml and yarn-site.xml are missing for project A(Even I can see
all the yarns are imported from project C).
My questions are: 1. Are the yarn-default.xml and yarn-site.xml related to
HBase log in? 2. Why A and B depends on C but the
HBaseConfiguration.create() returns different results?
Thanks very much!
Hotec04
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-returns-NoServerForRegionException-tp4058667.html
Sent from the HBase Developer mailing list archive at Nabble.com.
Re: HBase returns NoServerForRegionException
Posted by Hotec04 <ha...@dish.com>.
Hi Ted,
Thanks Ted for helping on this issue. I moved the HBase Operations from
project A to project C which makes more sense from Architecture perspective.
No issues from here now. Have a good day.
Sincerely
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-returns-NoServerForRegionException-tp4058667p4058679.html
Sent from the HBase Developer mailing list archive at Nabble.com.
Re: HBase returns NoServerForRegionException
Posted by Jimmy Xiang <jx...@cloudera.com>.
Does your application B call Configuration.addDefaultResource() somewhere?
Thanks,
Jimmy
On Mon, Apr 28, 2014 at 10:42 AM, Hotec04 <ha...@dish.com> wrote:
> Thank you Ted for looking into it.
>
> The hbase version is cdh4.5.0 and the api is hbase0.94.6-cdh4.5.0. The
> maven
> dependencies on hadoop and hbase are using hadoop-client: 2.0.0-cdh-4.5.0
> and hbase0.94.6-cdh4.5.0.
>
> Sincerely
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/HBase-returns-NoServerForRegionException-tp4058667p4058678.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>
Re: HBase returns NoServerForRegionException
Posted by Hotec04 <ha...@dish.com>.
Thank you Ted for looking into it.
The hbase version is cdh4.5.0 and the api is hbase0.94.6-cdh4.5.0. The maven
dependencies on hadoop and hbase are using hadoop-client: 2.0.0-cdh-4.5.0
and hbase0.94.6-cdh4.5.0.
Sincerely
--
View this message in context: http://apache-hbase.679495.n3.nabble.com/HBase-returns-NoServerForRegionException-tp4058667p4058678.html
Sent from the HBase Developer mailing list archive at Nabble.com.
Re: HBase returns NoServerForRegionException
Posted by Ted Yu <yu...@gmail.com>.
1. Are the yarn-default.xml and yarn-site.xml related to HBase log in?
I don't think so.
Can you pastebin the output of the following command in project A ?
mvn dependency:tree
What hbase version are you using ?
Cheers
On Mon, Apr 28, 2014 at 8:28 AM, Hotec04 <ha...@dish.com> wrote:
> Hi HBase-dev,
>
> There are three projects: A, B, and C. A and B are both Maven dependents on
> C. They all have the same config files for connecting to
> HBase(core-site.xml, hbase-site.xml, and hdfs-site.xml). Right now only B
> and C can access to HBase and perform operations on it. HBase always
> returns
> NoServerForRegionException if project A tries to connect to it but A is
> using the same API from C.
>
> The HBaseConfiguration.create() returns Configuration: core-default.xml,
> core-site.xml, mapred-default.xml, mapred-site.xml, yarn-default.xml,
> yarn-site.xml, hbase-default.xml, hbase-site.xml for B and C but the
> yarn-default.xml and yarn-site.xml are missing for project A(Even I can see
> all the yarns are imported from project C).
>
> My questions are: 1. Are the yarn-default.xml and yarn-site.xml related to
> HBase log in? 2. Why A and B depends on C but the
> HBaseConfiguration.create() returns different results?
>
> Thanks very much!
>
> Hotec04
>
>
>
> --
> View this message in context:
> http://apache-hbase.679495.n3.nabble.com/HBase-returns-NoServerForRegionException-tp4058667.html
> Sent from the HBase Developer mailing list archive at Nabble.com.
>