Try this:
try {
JobClient.runJob(conf); // Will throw exception about mismatched
key type
throw new AssertionError("descriptive message");
} catch (Exception expected) {
// expected
}
Narrow the caught exception type as appropriate.
On Mar 30, 2007, at 4:30 PM, Tahir Hashmi (JIRA) wrote:
[ https://issues.apache.org/jira/browse/HADOOP-1001?
page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tahir Hashmi updated HADOOP-1001:
---------------------------------
Attachment: TestMapOutputType.java
Here's a JUnit test case that generates the exceptions.
Unfortunately, the exceptions always cause it to be reported as a
failure. I don't know how to make it pass on exception and fail
otherwise. Suggestions?
the output of the map is not type checked against the specified types
---------------------------------------------------------------------
Key: HADOOP-1001
URL: https://issues.apache.org/jira/browse/
HADOOP-1001
Project: Hadoop
Issue Type: Bug
Components: mapred
Affects Versions: 0.11.0
Reporter: Owen O'Malley
Assigned To: Tahir Hashmi
Fix For: 0.13.0
Attachments: 1001.patch, 1001.patch, 1001.patch,
TestMapOutputType.java
The output of the map is not checked against the types specified
in the JobConf leading to hard to diagnose bugs.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.