MAPREDUCE-6753. Variable in byte printed directly in mapreduce client. Contributed by Kai Sasaki.

(cherry picked from commit 19a1fc6373)
This commit is contained in:
Akira Ajisaka 2017-03-03 16:11:10 +09:00
parent e563cd8692
commit e2fb9538f0
1 changed files with 1 additions and 1 deletions

View File

@ -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 +