+1 vote
in HDFS by
Can you create multiple files in HDFS with varying block sizes?

1 Answer

0 votes
by

Yes, it is possible to create multiple files in HDFS with different block sizes using an API. The block size can be specified during the time of file creation. Below is the signature of the method that helps achieve this –

public FSDataOutputStream (Path f, boolean overwrite, int buffersize, short replication, long blocksize) throws IO Exception

Related questions

0 votes
0 votes
asked Jul 15, 2022 in CommVault by Robin
0 votes
asked Jun 22, 2023 in HDFS by rajeshsharma
...