Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to permanently remove disk from hdfs?

avatar
Rising Star

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

avatar

@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

avatar

@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.

avatar
Rising Star

Oh, great! Thank you very much Sandeep!!