Two small impromevents to pipes
-------------------------------

                 Key: HADOOP-3932
                 URL: https://issues.apache.org/jira/browse/HADOOP-3932
             Project: Hadoop Core
          Issue Type: Improvement
          Components: pipes
    Affects Versions: 0.17.1
         Environment: n/a
            Reporter: Leon Mergen


Working with the ..mapred.pipes class a bit today, I found one bug and one 
possible interface improvement:

- Application.java in its constructor assumes that 
DistributedCache.getLocalCacheFiles () always returns non-zero, and returns an 
array with at least one element -- appropriate checks and exceptions should be 
thrown here.
- Submitter.java provides a "submitJob ()" method, yet it acts like it's a 
runJob method (and also invokes mapred.JobClient.runClient ()) -- it should 
provide two interface methods, one runJob () and one submitJob (), who act just 
like the JobClient counterparts.

Here is the small patch that implements both changes, based on the 0.17.1 
release source -- just in case anyone cares for this minor improvement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to