diff options
author | Sean Owen <sowen@cloudera.com> | 2016-06-14 09:40:07 -0700 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2016-06-14 09:40:07 -0700 |
commit | 6151d2641f91c8e3ec0c324e78afb46cdb2ef111 (patch) | |
tree | e183d9aa95c468b340d8e0b1b4a19ca0982a4148 /yarn/src/test/scala/org | |
parent | 6e8cdef0cf36f6e921d9e1a65c61b66196935820 (diff) | |
download | spark-6151d2641f91c8e3ec0c324e78afb46cdb2ef111.tar.gz spark-6151d2641f91c8e3ec0c324e78afb46cdb2ef111.tar.bz2 spark-6151d2641f91c8e3ec0c324e78afb46cdb2ef111.zip |
[MINOR] Clean up several build warnings, mostly due to internal use of old accumulators
## What changes were proposed in this pull request?
Another PR to clean up recent build warnings. This particularly cleans up several instances of the old accumulator API usage in tests that are straightforward to update. I think this qualifies as "minor".
## How was this patch tested?
Jenkins
Author: Sean Owen <sowen@cloudera.com>
Closes #13642 from srowen/BuildWarnings.
Diffstat (limited to 'yarn/src/test/scala/org')
-rw-r--r-- | yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnAllocatorSuite.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnAllocatorSuite.scala b/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnAllocatorSuite.scala index f4f8bd435d..207dbf56d3 100644 --- a/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnAllocatorSuite.scala +++ b/yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnAllocatorSuite.scala @@ -111,6 +111,7 @@ class YarnAllocatorSuite extends SparkFunSuite with Matchers with BeforeAndAfter } def createContainer(host: String): Container = { + // When YARN 2.6+ is required, avoid deprecation by using version with long second arg val containerId = ContainerId.newInstance(appAttemptId, containerNum) containerNum += 1 val nodeId = NodeId.newInstance(host, 1000) |