7d425b190a
The test fix is to allocate a `Resource` object only after the resource types have been initialized. Otherwise the YARN classes get in a weird state and throw a different exception than expected, because the resource has a different view of the registered resources. I also removed a test for a null resource since that seems unnecessary and made the fix more complicated. All the other changes are just cleanup; basically simplify the tests by defining what is being tested and deriving the resource type registration and the SparkConf from that data, instead of having redundant definitions in the tests. Ran tests with Hadoop 3 (and also without it). Closes #22751 from vanzin/SPARK-20327.fix. Authored-by: Marcelo Vanzin <vanzin@cloudera.com> Signed-off-by: Imran Rashid <irashid@cloudera.com> |
||
---|---|---|
.. | ||
src | ||
pom.xml |