Support Questions
Find answers, ask questions, and share your expertise

How to permanently remove disk from hdfs?

Solved Go to solution

How to permanently remove disk from hdfs?

Contributor

Hi!

Can you please help to permanently remove a disk from all the datanodes in working cluster.

DataNode directories

/grid/0,/grid/2,/grid/3,/grid/4,/grid/5,/grid/6,/grid/7,/grid/8,/grid/9,/grid/10,/grid/11,/grid/12,/grid/14,/grid/15

I would like to remove /grid/15.

Thanks in advance!!

with regards,

Gulshan

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to permanently remove disk from hdfs?

@Gulshan Agivetova You can remove the directory from this property through ambari : dfs.datanode.data.dir and do a rolling restart of datanodes. Make sure you don't have any missing/under-replicated blocks before restarting the new datanode.

View solution in original post

2 REPLIES 2

Re: How to permanently remove disk from hdfs?

@Gulshan Agivetova You can remove the directory from this property through ambari : dfs.datanode.data.dir and do a rolling restart of datanodes. Make sure you don't have any missing/under-replicated blocks before restarting the new datanode.

View solution in original post

Re: How to permanently remove disk from hdfs?

Contributor

Oh, great! Thank you very much Sandeep!!