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 to split single hdfs block into partitions rdd?



How to split single hdfs block into partitions rdd?..

Answer / Ritesh Kumar

"In Apache Spark running on Hadoop, you can split a single HDFS block into partitions using RDD (Resilient Distributed Dataset). Here's a simple example:nn```scalanval hdfsRdd = sc.textFile("hdfs://<hostname>/<path>")nval partitionedRdd = hdfsRdd.repartition(<number_of_partitions>)n```"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache HDFS Hadoop Distributed File System Interview Questions

How to Delete file from HDFS?

1 Answers  


Explain NameNode and DataNode in HDFS?

1 Answers  


Explain hdfs?

1 Answers  


Can you explain about the indexing process in hdfs?

1 Answers  


What do you mean by the High Availability of a NameNode in Hadoop HDFS?

1 Answers  


On what basis name node distribute blocks across the data nodes in HDFS?

1 Answers  


What is a block in HDFS? what is the default size in Hadoop 1 and Hadoop 2? Can we change the block size?

1 Answers  


What is the optimal block size in HDFS?

1 Answers  


How is indexing done in Hadoop HDFS?

1 Answers  


Replication causes data redundancy then why is pursued in hdfs?

1 Answers  


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

1 Answers  


Does hdfs enable a customer to peruse a record, which is already opened for writing?

1 Answers  


Categories