Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

For ORC File what determines the number of mappers?

avatar
New Member

For Orc file, how does yarn determine number of mapper. Is this based on the files in the hdfs?

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Aron,

Initially getsplits method splits the data based on the blocks in HDFS.But it was changed so that splitting is based on stripes of orc file.

https://issues.apache.org/jira/browse/HIVE-5102

The above link provides the complete link for details and source code for OrcInputformat and getSplit Method

View solution in original post

3 REPLIES 3

avatar
Master Mentor

OrcInputFormat is an implementation of InputFormat interface, where method getSplits determines the number of mappers https://hive.apache.org/javadocs/r0.13.1/api/ql/org/apache/hadoop/hive/ql/io/orc/OrcInputFormat.html.

avatar
Expert Contributor

@Aron,

Initially getsplits method splits the data based on the blocks in HDFS.But it was changed so that splitting is based on stripes of orc file.

https://issues.apache.org/jira/browse/HIVE-5102

The above link provides the complete link for details and source code for OrcInputformat and getSplit Method

avatar
New Member