Re: How to specify number of Partition using newAPIHadoopFile()

2019-04-30 Thread Prateek Rajput
On Tue, Apr 30, 2019 at 6:48 PM Vatsal Patel wrote: > *Issue: * > > When I am reading sequence file in spark, I can specify the number of > partitions as an argument to the API, below is the way > *public JavaPairRDD sequenceFile(String path, Class > keyClass, Class valueClass, int

Fwd: How to specify number of Partition using newAPIHadoopFile()

2019-04-30 Thread Vatsal Patel
*Issue: * When I am reading sequence file in spark, I can specify the number of partitions as an argument to the API, below is the way *public JavaPairRDD sequenceFile(String path, Class keyClass, Class valueClass, int minPartitions)* *In newAPIHadoopFile(), this support has been removed. below