giraph-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Reisman (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GIRAPH-570) Create YARN RPC Records using BuilderUtils instead of populating them by hand
Date Sat, 16 Mar 2013 19:08:14 GMT
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

Mime
View raw message