private File getAddShipFile(String addShipFile) {
        if (StringUtils.isEmpty(addShipFile) || !new File(addShipFile).exists()) {
            throw new RuntimeException("path " + addShipFile + " is not exist");
        }
        File shipFile = new File(addShipFile);
        if (shipFile.isFile()) {
            return shipFile;
        } else {
            throw new RuntimeException("addShipfile only supports file path,E.g : {\\\"a.keytab\\\",\\\"b.txt\\\"}");
        }
    }
Date: 2020/3/4
Company: www.dtstack.com
@author maqi
launcher/src/main/java/com/dtstack/flink/sql/launcher/executor/YarnJobClusterExecutor.java