@Override
    public boolean check() {
        Preconditions.checkNotNull(this.getUrl(), "impala of URL is required");
        Preconditions.checkNotNull(this.getTableName(), "impala of tableName is required");
        if (this.authMech == 1) {
            Preconditions.checkNotNull(this.getKrb5FilePath(), "impala field of krb5FilePath is required");
            Preconditions.checkNotNull(this.getPrincipal(), "impala field of principal is required");
            Preconditions.checkNotNull(this.getKeyTabFilePath(), "impala field of keyTabFilePath is required");
            Preconditions.checkNotNull(this.getKrbHostFQDN(), "impala field of krbHostFQDN is required");
            Preconditions.checkNotNull(this.getKrbServiceName(), "impala field of krbServiceName is required");
        } else if (this.authMech == 2) {
            Preconditions.checkNotNull(this.getUserName(), "impala field of userName is required");
        }else if (this.authMech == 3) {
            Preconditions.checkNotNull(this.getUserName(), "impala field of userName is required");
            Preconditions.checkNotNull(this.getPassword(), "impala field of password is required");
        }

        if (enablePartition){
            Preconditions.checkNotNull(this.getPartitionfields(), "impala field of partitionfields is required");
            Preconditions.checkNotNull(this.getPartitionfields(), "impala field of partitionfields is required");
            Preconditions.checkNotNull(this.getPartitionfields(), "impala field of partitionfields is required");
        }

        if (getFastCheck()) {
            JdbcResourceCheck.getInstance().checkResourceStatus(this.getCheckProperties());
        }

        return true;
    }
Date: 2019/11/13
Company: www.dtstack.com
@author xiuzhu
impala/impala-side/impala-side-core/src/main/java/com/dtstack/flink/sql/side/impala/table/ImpalaSideTableInfo.java