Eli Reisman created GIRAPH-570:
----------------------------------

             Summary: Create YARN RPC Records using BuilderUtils instead of 
populating them by hand
                 Key: GIRAPH-570
                 URL: https://issues.apache.org/jira/browse/GIRAPH-570
             Project: Giraph
          Issue Type: Improvement
    Affects Versions: 0.2.0
            Reporter: Eli Reisman
            Priority: Minor
             Fix For: 0.2.0


Good newbie JIRA. Might need to check as see how far back in the Hadoop-2.0.x 
line the BuilderUtils exist so we know if we are cutting ourselves off from a 
future backport, but if we don't care, this can happen:

Instead of creating and hand-populating each RPC record Giraph uses to request 
resources from YARN like:

{code}
Record x = Records.newRecord( className );
x.setField(blah);
x.setOtherField(blahblah);
// ...and so on
{code}

we can use BuilderUtils:

{code}
Record readyToSend = BuilderUtils.MakeMyNewRecord( blah, blah );
{code}

anyway you get the drill.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to