How can one copy a file into HDFS with a different block size to that of existing block size configuration?
Answer Posted / Ram Saheli
To copy a file into HDFS with a different block size, you can use the -D dfs.blocksize.size command when running the hadoop fs -copyFromLocal command. For example: `hadoop fs -copyFromLocal inputfile hdfs://namenode/outputdir -D dfs.blocksize.size=<desired_block_size>`
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category