hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joep Rottinghuis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-4939) Faulty getLocations input split passed on blindly to topology script
Date Fri, 11 Jan 2013 22:12:12 GMT
Joep Rottinghuis created MAPREDUCE-4939:

             Summary: Faulty getLocations input split passed on blindly to topology script
                 Key: MAPREDUCE-4939
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4939
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions:, 2.0.3-alpha
            Reporter: Joep Rottinghuis

When users implement a (faulty) InputSplit that returns splits that do not map to hostnames,
they get passed on to the topology script.

Call stack on 0.20 equivalent code:

The CachedDNSToSwitchMapping wraps RawScriptBasedMapping (if a topology script is configured).

The arguments (input splits) are simply passed to the topology script as arguments without
any further checks.
The input split could incorrectly return a comma separated list of hosts, or in the worst
case something like
topology fake-hostname; rm -rf *

In 2.0 something similar happens in ScriptBasedMapping.runResolveCommand.
That method should check the input values before executing the command.

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

View raw message