You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2019/01/07 19:21:12 UTC
[GitHub] mikewalch closed pull request #874: Fix MapReduce bug
mikewalch closed pull request #874: Fix MapReduce bug
URL: https://github.com/apache/accumulo/pull/874
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapred/AccumuloOutputFormat.java b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapred/AccumuloOutputFormat.java
index f380c05fd2..d29ed16c79 100644
--- a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapred/AccumuloOutputFormat.java
+++ b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapred/AccumuloOutputFormat.java
@@ -16,8 +16,6 @@
*/
package org.apache.accumulo.hadoop.mapred;
-import static org.apache.accumulo.hadoopImpl.mapred.AccumuloOutputFormatImpl.getClientInfo;
-
import java.io.IOException;
import org.apache.accumulo.core.client.Accumulo;
@@ -46,7 +44,7 @@
@Override
public void checkOutputSpecs(FileSystem ignored, JobConf job) throws IOException {
- ClientInfo clientInfo = getClientInfo(job);
+ ClientInfo clientInfo = AccumuloOutputFormatImpl.getClientInfo(job);
String principal = clientInfo.getPrincipal();
AuthenticationToken token = clientInfo.getAuthenticationToken();
try (AccumuloClient c = Accumulo.newClient().from(clientInfo.getProperties()).build()) {
diff --git a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapreduce/AccumuloOutputFormat.java b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapreduce/AccumuloOutputFormat.java
index 601b671fff..a33e93f44a 100644
--- a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapreduce/AccumuloOutputFormat.java
+++ b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoop/mapreduce/AccumuloOutputFormat.java
@@ -16,8 +16,6 @@
*/
package org.apache.accumulo.hadoop.mapreduce;
-import static org.apache.accumulo.hadoopImpl.mapreduce.AbstractInputFormat.getClientInfo;
-
import java.io.IOException;
import org.apache.accumulo.core.client.Accumulo;
@@ -57,7 +55,7 @@
@Override
public void checkOutputSpecs(JobContext job) throws IOException {
- ClientInfo clientInfo = getClientInfo(job);
+ ClientInfo clientInfo = AccumuloOutputFormatImpl.getClientInfo(job);
String principal = clientInfo.getPrincipal();
AuthenticationToken token = clientInfo.getAuthenticationToken();
try (AccumuloClient c = Accumulo.newClient().from(clientInfo.getProperties()).build()) {
diff --git a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/AccumuloOutputFormatImpl.java b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/AccumuloOutputFormatImpl.java
index c1aa3335f7..8750d74f5f 100644
--- a/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/AccumuloOutputFormatImpl.java
+++ b/hadoop-mapreduce/src/main/java/org/apache/accumulo/hadoopImpl/mapreduce/AccumuloOutputFormatImpl.java
@@ -88,7 +88,7 @@ public static void setClientInfo(Job job, ClientInfo info) {
*
* @since 2.0.0
*/
- protected static ClientInfo getClientInfo(JobContext context) {
+ public static ClientInfo getClientInfo(JobContext context) {
return OutputConfigurator.getClientInfo(CLASS, context.getConfiguration());
}
diff --git a/minicluster/src/main/java/org/apache/accumulo/cluster/standalone/StandaloneClusterControl.java b/minicluster/src/main/java/org/apache/accumulo/cluster/standalone/StandaloneClusterControl.java
index 13c33f7882..8c43f6c3ea 100644
--- a/minicluster/src/main/java/org/apache/accumulo/cluster/standalone/StandaloneClusterControl.java
+++ b/minicluster/src/main/java/org/apache/accumulo/cluster/standalone/StandaloneClusterControl.java
@@ -23,8 +23,6 @@
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
-import java.net.URL;
-import java.security.CodeSource;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services