In Spark, either SparkContext or JavaSparkContext, there is one parameter, which is minPartitions when sc.textFile is called. what does this parameter mean?
minPartitionswill be transferred to Hadoop InputFormat.getSplits. A parameter is a hint, so you can get more or less sections, depending on the implementation of Hadoop InputFormat.
minPartitions
InputFormat.getSplits
InputFormat