From 19a1fc6373f0dea56e5845f19990d469428489bc Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Fri, 3 Mar 2017 16:11:10 +0900 Subject: [PATCH] MAPREDUCE-6753. Variable in byte printed directly in mapreduce client. Contributed by Kai Sasaki. --- .../apache/hadoop/mapreduce/security/CredentialsTestJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/security/CredentialsTestJob.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/security/CredentialsTestJob.java index 2141080f288..e66fb2fbf3e 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/security/CredentialsTestJob.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapreduce/security/CredentialsTestJob.java @@ -58,7 +58,6 @@ public class CredentialsTestJob extends Configured implements Tool { String secretName = "alias"+i; // get token storage and a key byte[] secretValue = ts.getSecretKey(new Text(secretName)); - System.out.println(secretValue); if (secretValue == null){ throw new RuntimeException("The key "+ secretName + " is not available. "); @@ -66,6 +65,7 @@ public class CredentialsTestJob extends Configured implements Tool { } String secretValueStr = new String (secretValue); + System.out.println(secretValueStr); if ( !("password"+i).equals(secretValueStr)){ throw new RuntimeException("The key "+ secretName +