Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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
Highlighted

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.

2 REPLIES 2
Highlighted

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.

Re: How to permanently remove disk from hdfs?

Contributor

Oh, great! Thank you very much Sandeep!!

Don't have an account?
Coming from Hortonworks? Activate your account here