public String getImpalaJdbcUrl(ImpalaTableInfo impalaTableInfo) {
        Integer authMech = impalaTableInfo.getAuthMech();
        String newUrl = impalaTableInfo.getUrl();
        StringBuilder urlBuffer = new StringBuilder(impalaTableInfo.getUrl());
        if (authMech == EAuthMech.NoAuthentication.getType()) {
            return newUrl;
        } else if (authMech == EAuthMech.Kerberos.getType()) {
            String krbRealm = impalaTableInfo.getKrbRealm();
            String krbHostFqdn = impalaTableInfo.getKrbHostFQDN();
            String krbServiceName = impalaTableInfo.getKrbServiceName();
            urlBuffer.append(";"
                    .concat("AuthMech=1;")
                    .concat("KrbRealm=").concat(krbRealm).concat(";")
                    .concat("KrbHostFQDN=").concat(krbHostFqdn).concat(";")
                    .concat("KrbServiceName=").concat(krbServiceName).concat(";")
            );
            newUrl = urlBuffer.toString();
        } else if (authMech == EAuthMech.UserName.getType()) {
            urlBuffer.append(";"
                    .concat("AuthMech=3;")
                    .concat("UID=").concat(impalaTableInfo.getUserName()).concat(";")
                    .concat("PWD=;")
                    .concat("UseSasl=0")
            );
            newUrl = urlBuffer.toString();
        } else if (authMech == EAuthMech.NameANDPassword.getType()) {
            urlBuffer.append(";"
                    .concat("AuthMech=3;")
                    .concat("UID=").concat(impalaTableInfo.getUserName()).concat(";")
                    .concat("PWD=").concat(impalaTableInfo.getPassword())
            );
            newUrl = urlBuffer.toString();
        } else {
            throw new IllegalArgumentException("The value of authMech is illegal, Please select 0, 1, 2, 3");
        }
        return newUrl;
    }
build Impala Jdbc Url according to authMech

@param impalaTableInfo impala table info
@return jdbc url with auth mech info
impala/impala-sink/src/main/java/com/dtstack/flink/sql/sink/impala/ImpalaSink.java