HADOOP-11173. Improve error messages for some KeyShell commands.
This commit is contained in:
parent
f43a20c529
commit
fae266bbf1
|
@ -394,6 +394,8 @@ Release 2.7.0 - UNRELEASED
|
||||||
HADOOP-11291. Log the cause of SASL connection failures.
|
HADOOP-11291. Log the cause of SASL connection failures.
|
||||||
(Stephen Chu via cnauroth)
|
(Stephen Chu via cnauroth)
|
||||||
|
|
||||||
|
HADOOP-11173. Improve error messages for some KeyShell commands. (wang)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
HADOOP-11323. WritableComparator#compare keeps reference to byte array.
|
HADOOP-11323. WritableComparator#compare keeps reference to byte array.
|
||||||
|
|
|
@ -298,7 +298,7 @@ public class KeyShell extends Configured implements Tool {
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
out.println("Cannot list keys for KeyProvider: " + provider
|
out.println("Cannot list keys for KeyProvider: " + provider
|
||||||
+ ": " + e.getMessage());
|
+ ": " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -350,12 +350,12 @@ public class KeyShell extends Configured implements Tool {
|
||||||
printProviderWritten();
|
printProviderWritten();
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
out.println("Cannot roll key: " + keyName + " within KeyProvider: "
|
out.println("Cannot roll key: " + keyName + " within KeyProvider: "
|
||||||
+ provider);
|
+ provider + ". " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
out.println("Cannot roll key: " + keyName + " within KeyProvider: "
|
out.println("Cannot roll key: " + keyName + " within KeyProvider: "
|
||||||
+ provider);
|
+ provider + ". " + e1.toString());
|
||||||
throw e1;
|
throw e1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -422,7 +422,7 @@ public class KeyShell extends Configured implements Tool {
|
||||||
out.println(keyName + " has been successfully deleted.");
|
out.println(keyName + " has been successfully deleted.");
|
||||||
printProviderWritten();
|
printProviderWritten();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
out.println(keyName + " has not been deleted.");
|
out.println(keyName + " has not been deleted. " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -484,13 +484,13 @@ public class KeyShell extends Configured implements Tool {
|
||||||
+ options.toString() + ".");
|
+ options.toString() + ".");
|
||||||
printProviderWritten();
|
printProviderWritten();
|
||||||
} catch (InvalidParameterException e) {
|
} catch (InvalidParameterException e) {
|
||||||
out.println(keyName + " has not been created. " + e.getMessage());
|
out.println(keyName + " has not been created. " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
out.println(keyName + " has not been created. " + e.getMessage());
|
out.println(keyName + " has not been created. " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
out.println(keyName + " has not been created. " + e.getMessage());
|
out.println(keyName + " has not been created. " + e.toString());
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue