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

<dev> 修改异常打印

parent 12cc45a7
...@@ -32,14 +32,14 @@ public class FlinkYarnHaTest { ...@@ -32,14 +32,14 @@ public class FlinkYarnHaTest {
String username = prop.getProperty(HadoopSecurityUtil.USER_NAME); String username = prop.getProperty(HadoopSecurityUtil.USER_NAME);
String authentication = prop.getProperty(HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION); String authentication = prop.getProperty(HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION);
if (!ParamUtil.check(yarnConfDir, keytabFile, kerberosPrincipal, krb5Conf, username)) { if (!ParamUtil.check(yarnConfDir, keytabFile, kerberosPrincipal, krb5Conf, username, authentication)) {
throw new RuntimeException(String.format("(Please check the parameters) 请检查参数 [{ " + HadoopSecurityUtil.YARN_CONF_DIR throw new RuntimeException(String.format("(Please check the parameters) 请检查参数 [%s],[%s],[%s],[%s],[%s],[%s]",
+ " }],[{ " + HadoopSecurityUtil.ZORK_KEYTAB_FILE_KEY HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION,
+ " }],[{ " + HadoopSecurityUtil.ZORK_KERBEROS_PRINCIPAL HadoopSecurityUtil.ZORK_KEYTAB_FILE_KEY,
+ " }],[{ " + HadoopSecurityUtil.HADOOP_SECURITY_KRB_5_CONF HadoopSecurityUtil.ZORK_KERBEROS_PRINCIPAL,
+ " }],[{ " + HadoopSecurityUtil.USER_NAME HadoopSecurityUtil.HADOOP_SECURITY_KRB_5_CONF,
+ " }],[{" + HadoopSecurityUtil.HADOOP_SECURITY_AUTHENTICATION + "}]" 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