You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Harshal <p....@gmail.com> on 2009/04/10 15:01:04 UTC
Add second partition to HDFS
Hi,
On a particular datanode I have /dev/sda1 (root partition) which hdfs shows
properly. Now I have added another disk which is appearing as /dev/sdb1,
what changes I need to make in hadoop-site.xml so that the second disk is
also used ?
--Harshal
Re: Add second partition to HDFS
Posted by Alex Loddengaard <al...@cloudera.com>.
Make sure you bounce the datanode daemon once you change the configuration
file as well.
Alex
On Fri, Apr 10, 2009 at 8:23 AM, Ravi Phulari <rp...@yahoo-inc.com>wrote:
> Add your second disk name in dfs.data.dir .
> Refer - http://hadoop.apache.org/core/docs/r0.19.1/cluster_setup.html
>
> dfs.data.dir = Comma separated list of paths on the local filesystem of a
> DataNode where it should store its blocks. If this is a comma-delimited list
> of directories, then data will be stored in all named directories, typically
> on different devices.
>
> --
> Ravi
>
> On 4/10/09 6:01 AM, "Harshal" <p....@gmail.com> wrote:
>
> Hi,
>
> On a particular datanode I have /dev/sda1 (root partition) which hdfs shows
> properly. Now I have added another disk which is appearing as /dev/sdb1,
> what changes I need to make in hadoop-site.xml so that the second disk is
> also used ?
>
>
> --Harshal
>
>
> Ravi
> --
>
>
Re: Add second partition to HDFS
Posted by Ravi Phulari <rp...@yahoo-inc.com>.
Add your second disk name in dfs.data.dir .
Refer - http://hadoop.apache.org/core/docs/r0.19.1/cluster_setup.html
dfs.data.dir = Comma separated list of paths on the local filesystem of a DataNode where it should store its blocks. If this is a comma-delimited list of directories, then data will be stored in all named directories, typically on different devices.
--
Ravi
On 4/10/09 6:01 AM, "Harshal" <p....@gmail.com> wrote:
Hi,
On a particular datanode I have /dev/sda1 (root partition) which hdfs shows
properly. Now I have added another disk which is appearing as /dev/sdb1,
what changes I need to make in hadoop-site.xml so that the second disk is
also used ?
--Harshal
Ravi
--