Hi. you can set the block size to the fs.local.block.size configuration and then use it in the hadoop command while uploading the file. You have to mention the block size in bytes (binary). Suppose you want the block size to be 256 MB, then it will be 268435456 bytes. You will have to run the command like this:
hadoop fs -D fs.local.block.size=268435456 -put <file path> <hdfs path>