You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by AnilKumar B <ak...@gmail.com> on 2014/01/23 18:35:31 UTC

HDFS federation configuration

Hi,

We tried setting up HDFS name node federation set up with 2 name nodes. I
am facing few issues.

Can any one help me in understanding below points?

1) how can we configure different namespaces to different name node? Where
exactly we need to configure this?

2) After formatting each NN with one cluster id, Do we need to set this
cluster id in hdfs-site.xml?

3) I am getting exception like, data dir already locked by one of the NN,
But when don't specify data.dir, then it's not showing exception. So what
could be the issue?

Thanks & Regards,
B Anil Kumar.

Re: HDFS federation configuration

Posted by AnilKumar B <ak...@gmail.com>.
Thanks Suresh.

I followed the link it's clear now.

But client side configuration is not covered on the doc.

Thanks & Regards,
B Anil Kumar.


On Thu, Jan 23, 2014 at 11:44 PM, Suresh Srinivas <su...@hortonworks.com>wrote:

> Have you looked at -
> http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
> ?
>
>
>
> On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com>wrote:
>
>> Hi,
>>
>> We tried setting up HDFS name node federation set up with 2 name nodes. I
>> am facing few issues.
>>
>> Can any one help me in understanding below points?
>>
>> 1) how can we configure different namespaces to different name node?
>> Where exactly we need to configure this?
>>
> See the documentation. If it is not clear, please open a jira.
>
>
>>
>> 2) After formatting each NN with one cluster id, Do we need to set this
>> cluster id in hdfs-site.xml?
>>
> There is no need to set the cluster id in hdfs-site.xml
>
>
>>
>> 3) I am getting exception like, data dir already locked by one of the NN,
>> But when don't specify data.dir, then it's not showing exception. So what
>> could be the issue?
>>
>
> Are you running the two namenode processes on the same machine?
>
>>
>>  Thanks & Regards,
>> B Anil Kumar.
>>
>
>
>
> --
> http://hortonworks.com/download/
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by AnilKumar B <ak...@gmail.com>.
Thanks Suresh.

I followed the link it's clear now.

But client side configuration is not covered on the doc.

Thanks & Regards,
B Anil Kumar.


On Thu, Jan 23, 2014 at 11:44 PM, Suresh Srinivas <su...@hortonworks.com>wrote:

> Have you looked at -
> http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
> ?
>
>
>
> On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com>wrote:
>
>> Hi,
>>
>> We tried setting up HDFS name node federation set up with 2 name nodes. I
>> am facing few issues.
>>
>> Can any one help me in understanding below points?
>>
>> 1) how can we configure different namespaces to different name node?
>> Where exactly we need to configure this?
>>
> See the documentation. If it is not clear, please open a jira.
>
>
>>
>> 2) After formatting each NN with one cluster id, Do we need to set this
>> cluster id in hdfs-site.xml?
>>
> There is no need to set the cluster id in hdfs-site.xml
>
>
>>
>> 3) I am getting exception like, data dir already locked by one of the NN,
>> But when don't specify data.dir, then it's not showing exception. So what
>> could be the issue?
>>
>
> Are you running the two namenode processes on the same machine?
>
>>
>>  Thanks & Regards,
>> B Anil Kumar.
>>
>
>
>
> --
> http://hortonworks.com/download/
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by AnilKumar B <ak...@gmail.com>.
Thanks Suresh.

I followed the link it's clear now.

But client side configuration is not covered on the doc.

Thanks & Regards,
B Anil Kumar.


On Thu, Jan 23, 2014 at 11:44 PM, Suresh Srinivas <su...@hortonworks.com>wrote:

> Have you looked at -
> http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
> ?
>
>
>
> On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com>wrote:
>
>> Hi,
>>
>> We tried setting up HDFS name node federation set up with 2 name nodes. I
>> am facing few issues.
>>
>> Can any one help me in understanding below points?
>>
>> 1) how can we configure different namespaces to different name node?
>> Where exactly we need to configure this?
>>
> See the documentation. If it is not clear, please open a jira.
>
>
>>
>> 2) After formatting each NN with one cluster id, Do we need to set this
>> cluster id in hdfs-site.xml?
>>
> There is no need to set the cluster id in hdfs-site.xml
>
>
>>
>> 3) I am getting exception like, data dir already locked by one of the NN,
>> But when don't specify data.dir, then it's not showing exception. So what
>> could be the issue?
>>
>
> Are you running the two namenode processes on the same machine?
>
>>
>>  Thanks & Regards,
>> B Anil Kumar.
>>
>
>
>
> --
> http://hortonworks.com/download/
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by AnilKumar B <ak...@gmail.com>.
Thanks Suresh.

I followed the link it's clear now.

But client side configuration is not covered on the doc.

Thanks & Regards,
B Anil Kumar.


On Thu, Jan 23, 2014 at 11:44 PM, Suresh Srinivas <su...@hortonworks.com>wrote:

> Have you looked at -
> http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
> ?
>
>
>
> On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com>wrote:
>
>> Hi,
>>
>> We tried setting up HDFS name node federation set up with 2 name nodes. I
>> am facing few issues.
>>
>> Can any one help me in understanding below points?
>>
>> 1) how can we configure different namespaces to different name node?
>> Where exactly we need to configure this?
>>
> See the documentation. If it is not clear, please open a jira.
>
>
>>
>> 2) After formatting each NN with one cluster id, Do we need to set this
>> cluster id in hdfs-site.xml?
>>
> There is no need to set the cluster id in hdfs-site.xml
>
>
>>
>> 3) I am getting exception like, data dir already locked by one of the NN,
>> But when don't specify data.dir, then it's not showing exception. So what
>> could be the issue?
>>
>
> Are you running the two namenode processes on the same machine?
>
>>
>>  Thanks & Regards,
>> B Anil Kumar.
>>
>
>
>
> --
> http://hortonworks.com/download/
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by Suresh Srinivas <su...@hortonworks.com>.
Have you looked at -
http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
?



On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com> wrote:

> Hi,
>
> We tried setting up HDFS name node federation set up with 2 name nodes. I
> am facing few issues.
>
> Can any one help me in understanding below points?
>
> 1) how can we configure different namespaces to different name node? Where
> exactly we need to configure this?
>
See the documentation. If it is not clear, please open a jira.


>
> 2) After formatting each NN with one cluster id, Do we need to set this
> cluster id in hdfs-site.xml?
>
There is no need to set the cluster id in hdfs-site.xml


>
> 3) I am getting exception like, data dir already locked by one of the NN,
> But when don't specify data.dir, then it's not showing exception. So what
> could be the issue?
>

Are you running the two namenode processes on the same machine?

>
> Thanks & Regards,
> B Anil Kumar.
>



-- 
http://hortonworks.com/download/

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by Suresh Srinivas <su...@hortonworks.com>.
Have you looked at -
http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
?



On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com> wrote:

> Hi,
>
> We tried setting up HDFS name node federation set up with 2 name nodes. I
> am facing few issues.
>
> Can any one help me in understanding below points?
>
> 1) how can we configure different namespaces to different name node? Where
> exactly we need to configure this?
>
See the documentation. If it is not clear, please open a jira.


>
> 2) After formatting each NN with one cluster id, Do we need to set this
> cluster id in hdfs-site.xml?
>
There is no need to set the cluster id in hdfs-site.xml


>
> 3) I am getting exception like, data dir already locked by one of the NN,
> But when don't specify data.dir, then it's not showing exception. So what
> could be the issue?
>

Are you running the two namenode processes on the same machine?

>
> Thanks & Regards,
> B Anil Kumar.
>



-- 
http://hortonworks.com/download/

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by Suresh Srinivas <su...@hortonworks.com>.
Have you looked at -
http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
?



On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com> wrote:

> Hi,
>
> We tried setting up HDFS name node federation set up with 2 name nodes. I
> am facing few issues.
>
> Can any one help me in understanding below points?
>
> 1) how can we configure different namespaces to different name node? Where
> exactly we need to configure this?
>
See the documentation. If it is not clear, please open a jira.


>
> 2) After formatting each NN with one cluster id, Do we need to set this
> cluster id in hdfs-site.xml?
>
There is no need to set the cluster id in hdfs-site.xml


>
> 3) I am getting exception like, data dir already locked by one of the NN,
> But when don't specify data.dir, then it's not showing exception. So what
> could be the issue?
>

Are you running the two namenode processes on the same machine?

>
> Thanks & Regards,
> B Anil Kumar.
>



-- 
http://hortonworks.com/download/

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: HDFS federation configuration

Posted by Suresh Srinivas <su...@hortonworks.com>.
Have you looked at -
http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-hdfs/Federation.html
?



On Thu, Jan 23, 2014 at 9:35 AM, AnilKumar B <ak...@gmail.com> wrote:

> Hi,
>
> We tried setting up HDFS name node federation set up with 2 name nodes. I
> am facing few issues.
>
> Can any one help me in understanding below points?
>
> 1) how can we configure different namespaces to different name node? Where
> exactly we need to configure this?
>
See the documentation. If it is not clear, please open a jira.


>
> 2) After formatting each NN with one cluster id, Do we need to set this
> cluster id in hdfs-site.xml?
>
There is no need to set the cluster id in hdfs-site.xml


>
> 3) I am getting exception like, data dir already locked by one of the NN,
> But when don't specify data.dir, then it's not showing exception. So what
> could be the issue?
>

Are you running the two namenode processes on the same machine?

>
> Thanks & Regards,
> B Anil Kumar.
>



-- 
http://hortonworks.com/download/

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.