[ 
https://issues.apache.org/jira/browse/TEZ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14093615#comment-14093615
 ] 

Bikas Saha commented on TEZ-1407:
---------------------------------

We should probably move this to MRInputLegacy
configureMRInputWithLegacySplitGeneration().

typo.
+     * org.apache.tez.dag.api.Vertex} on which this Input is ued is the 
responsibility of the user.

MRInputHelpers should probably have this instead of all the methods. What is 
missing in the MRInput configurers that we need to expose these helpers. If we 
are missing functionality then we should look at fixing that instead of 
exposing helpers to Hive. Can any of this code just move to hive.
+  @InterfaceAudience.LimitedPrivate("Hive")

This should go into MRInputHelpers where the rest of such methods are (instead 
of being in MRInput.java)
{code}
+  @InterfaceAudience.LimitedPrivate("Hive")
+  public static MRRuntimeProtos.MRInputUserPayloadProto 
parseMRInputPayload(byte[] bytes)
+      throws IOException {
+    return MRRuntimeProtos.MRInputUserPayloadProto.parseFrom(bytes);
+  }
{code}

If we add configureMRInputWithLegacySplitGeneration() then its as good as any 
other configurer API. So we should add a useMRStyleSplits(String remotePath)  
to the existing configurer instead of a completely new method. OR. We should 
move this method to MRHelpers. This extra method confuses users who are trying 
to use the recommended approach with MRInput IMO. Also it should probably take 
String instead of Path.





> Move MRInput related methods out of MRHelpers and consolidate
> -------------------------------------------------------------
>
>                 Key: TEZ-1407
>                 URL: https://issues.apache.org/jira/browse/TEZ-1407
>             Project: Apache Tez
>          Issue Type: Improvement
>            Reporter: Siddharth Seth
>            Assignee: Siddharth Seth
>            Priority: Blocker
>         Attachments: TEZ-1407.1.txt
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to