Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 configu..

Answer / 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

More Apache HDFS Hadoop Distributed File System Interview Questions

What is the throughput? How does hdfs give great throughput?

1 Answers  


Why do we need hdfs?

1 Answers  


What is the optimal block size in HDFS?

1 Answers  


If I create a folder in HDFS, will there be metadata created corresponding to the folder? If yes, what will be the size of metadata created for a directory?

1 Answers  


Why HDFS performs replication, although it results in data redundancy in Hadoop?

1 Answers  


What do you mean by metadata in HDFS? Where is it stored in Hadoop?

1 Answers  


Explain the difference between mapreduce engine and hdfs cluster?

1 Answers  


How do you do a file system check in hdfs?

1 Answers  


How to create directory in HDFS?

1 Answers  


What is secondary namenode?

1 Answers  


Can multiple clients write into an HDFS file concurrently in hadoop?

1 Answers  


Explain what is a difference between an input split and hdfs block?

1 Answers  


Categories