Commit 63acaa30 authored by 谢森's avatar 谢森

<dev> 修改异常打印

parent 12cc45a7
......@@ -32,14 +32,14 @@ public class FlinkYarnHaTest {
String username = prop.getProperty(HadoopSecurityUtil.USER_NAME);
String authentication = prop.getProperty(HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION);
if (!ParamUtil.check(yarnConfDir, keytabFile, kerberosPrincipal, krb5Conf, username)) {
throw new RuntimeException(String.format("(Please check the parameters) 请检查参数 [{ " + HadoopSecurityUtil.YARN_CONF_DIR
+ " }],[{ " + HadoopSecurityUtil.ZORK_KEYTAB_FILE_KEY
+ " }],[{ " + HadoopSecurityUtil.ZORK_KERBEROS_PRINCIPAL
+ " }],[{ " + HadoopSecurityUtil.HADOOP_SECURITY_KRB_5_CONF
+ " }],[{ " + HadoopSecurityUtil.USER_NAME
+ " }],[{" + HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION + "}]"
));
if (!ParamUtil.check(yarnConfDir, keytabFile, kerberosPrincipal, krb5Conf, username, authentication)) {
throw new RuntimeException(String.format("(Please check the parameters) 请检查参数 [%s],[%s],[%s],[%s],[%s],[%s]",
HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION,
HadoopSecurityUtil.ZORK_KEYTAB_FILE_KEY,
HadoopSecurityUtil.ZORK_KERBEROS_PRINCIPAL,
HadoopSecurityUtil.HADOOP_SECURITY_KRB_5_CONF,
HadoopSecurityUtil.USER_NAME,
HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment