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 can one copy a file into HDFS with a different block size to that of existing block size configuration?

Highlighted

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

New Contributor

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

2 REPLIES 2

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

@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

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

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

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