Support Questions

Find answers, ask questions, and share your expertise

How can one copy a file into HDFS with a different block size to that of existing block size configuration?

How can one copy a file into HDFS with a different block size to that of existing block size configuration?

2 REPLIES 2

@Dukool SHarma

you can set the blocksize while running the hadoop command using dfs.blocksize command.

>bin/hadoop fs -Ddfs.blocksize=134217728 -put data /user/foo

@Dukool SHarma If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.