You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2019/03/22 22:30:56 UTC
[accumulo] branch master updated: Fix deprecation warnings with
distributed cache
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/master by this push:
new 6aff988 Fix deprecation warnings with distributed cache
6aff988 is described below
commit 6aff9888de12c5ade0dd2b7769aedebfd67a9cc8
Author: Christopher Tubbs <ct...@apache.org>
AuthorDate: Fri Mar 22 18:29:59 2019 -0400
Fix deprecation warnings with distributed cache
---
.../core/clientImpl/mapreduce/lib/DistributedCacheHelper.java | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/core/src/main/java/org/apache/accumulo/core/clientImpl/mapreduce/lib/DistributedCacheHelper.java b/core/src/main/java/org/apache/accumulo/core/clientImpl/mapreduce/lib/DistributedCacheHelper.java
index f99a4ad..ead3c2a 100644
--- a/core/src/main/java/org/apache/accumulo/core/clientImpl/mapreduce/lib/DistributedCacheHelper.java
+++ b/core/src/main/java/org/apache/accumulo/core/clientImpl/mapreduce/lib/DistributedCacheHelper.java
@@ -20,7 +20,6 @@ import java.io.IOException;
import java.net.URI;
import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.fs.Path;
/**
* @since 1.6.0
@@ -30,6 +29,7 @@ public class DistributedCacheHelper {
/**
* @since 1.6.0
*/
+ @SuppressWarnings("deprecation")
public static void addCacheFile(URI uri, Configuration conf) {
org.apache.hadoop.filecache.DistributedCache.addCacheFile(uri, conf);
}
@@ -37,14 +37,9 @@ public class DistributedCacheHelper {
/**
* @since 1.6.0
*/
+ @SuppressWarnings("deprecation")
public static URI[] getCacheFiles(Configuration conf) throws IOException {
return org.apache.hadoop.filecache.DistributedCache.getCacheFiles(conf);
}
- /**
- * @since 1.6.0
- */
- public static Path[] getLocalCacheFiles(Configuration conf) throws IOException {
- return org.apache.hadoop.filecache.DistributedCache.getLocalCacheFiles(conf);
- }
}