bigtop-manager-stack/bigtop-manager-stack-extra/src/main/java/org/apache/bigtop/manager/stack/extra/v1_0_0/seatunnel/SeaTunnelMasterScript.java [84:94]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public ShellResult stop(Params params) {
        SeaTunnelParams seatunnelParams = (SeaTunnelParams) params;
        String cmd = MessageFormat.format(
                "ps -ef | grep -v grep | grep {0} | grep master | cut -d' ' -f2 | xargs kill -9",
                seatunnelParams.serviceHome());
        try {
            return LinuxOSUtils.sudoExecCmd(cmd, seatunnelParams.user());
        } catch (Exception e) {
            throw new StackException(e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



bigtop-manager-stack/bigtop-manager-stack-extra/src/main/java/org/apache/bigtop/manager/stack/extra/v1_0_0/seatunnel/SeaTunnelWorkerScript.java [84:94]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public ShellResult stop(Params params) {
        SeaTunnelParams seatunnelParams = (SeaTunnelParams) params;
        String cmd = MessageFormat.format(
                "ps -ef | grep -v grep | grep {0} | grep worker | cut -d' ' -f2 | xargs kill -9",
                seatunnelParams.serviceHome());
        try {
            return LinuxOSUtils.sudoExecCmd(cmd, seatunnelParams.user());
        } catch (Exception e) {
            throw new StackException(e);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



