How to Increase HDFS Block Size for Existing Data: A Step-by-Step Workflow
Hi,
I tried looking in to the community but could not get proper answer for this question.
How can I change the block size for the existing files in HDFS? I want to increase the block size.
I see the solution as distcp and I understood that we have to use distcp to move the files, folders and subfolders to a new temporary location with new block size and then remove the files, folders, etc for which block size has to be increased and copy the files from temporary location back to original location.
The above methodology might have side effects such as overhead of HDFS by adding duplicate copies of the files and change in permissions while copying files from temporary location and etc.
Is they any way which is efficient enough to replace the existing files with the same name and same privileges but with increased block size?
Thanks to all for your time on this question.



