Referring to this question, Write a file in hdfs with Java, i am able to write the file to HDFS
, but the output file has only one partition. How to set number of partitions that output file is going to contain?
Asked
Active
Viewed 102 times
0

vdep
- 3,541
- 4
- 28
- 54
-
You can use partitioner for this... – KayV Dec 15 '17 at 12:30
-
What do you mean by partitions? Give an example – OneCricketeer Dec 15 '17 at 14:25
-
partitions?, Number of splits that a HDFS file is distributed into, or the number of part files it has. – vdep Dec 15 '17 at 15:14