Returns the number of parts composing a file in HDFS.
The name of a file in HDFS. The file name can include a path that is either absolute or relative to the current path.
HDFS splits large files into parts, which provide a basis for the parallelization of MapReduce jobs. The more parts an HDFS file has, the more mappers can run in parallel.
The number of parts composing the object, or
0 if the object does not exist in HDFS
This example shows that the ontime_R file in HDFS has one part: