---
title: "From SSH to REST: A Security-Driven Modernization of Slack’s EMR Data Pipelines"
description: "Slack replaced 700+ SSH-based Airflow operators that ran jobs directly on EMR master nodes with REST-based submission through Quarry, its internal job gateway."
url: "https://swe.quest/articles/from-ssh-to-rest-a-security-driven-modernization-of-slack-s-emr-data-pipelines-36e08660699cdbd7"
canonical: "https://slack.engineering/from-ssh-to-rest-a-security-driven-modernization-of-slacks-emr-data-pipelines/"
source: "Slack Engineering"
published: "2026-05-05"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["data-pipelines","security","refactoring","cloud","scheduling"]
---

# From SSH to REST: A Security-Driven Modernization of Slack’s EMR Data Pipelines

A post on [Slack Engineering](https://swe.quest/sources/slack.md), published 2026-05-05, 13 min read, Case study. Original: [https://slack.engineering/from-ssh-to-rest-a-security-driven-modernization-of-slacks-emr-data-pipelines/](https://slack.engineering/from-ssh-to-rest-a-security-driven-modernization-of-slacks-emr-data-pipelines/)

## Summary

Slack replaced 700+ SSH-based Airflow operators that ran jobs directly on EMR master nodes with REST-based submission through Quarry, its internal job gateway. The migration covered 8 data regions over 3 quarters with zero downtime. The key enabler was YARN Distributed Shell, which runs arbitrary shell commands (aws s3 sync, distcp, Python scripts) in managed YARN containers via the standard ResourceManager REST API, while Spark and Hive moved to Livy and HiveServer2. Moving to real YARN submission exposed problems SSH had hidden: vmem check failures, fixed by disabling yarn.nodemanager.vmem-check-enabled, and network-segment dependencies on key-management endpoints. Multi-region rollout multiplied the testing and coordination effort.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)

## Prerequisites

- Apache Airflow ([easy posts on Data pipelines](https://swe.quest/tags/data-pipelines.md?difficulty=easy))
- Hadoop YARN
- AWS EMR ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

AWS EMR, YARN Distributed Shell, Apache Airflow, Quarry, Apache Livy, HiveServer2, SSH, Slack

## Related posts

- [Unlocking Efficiency and Performance: Navigating the Spark 3 and EMR 6 Upgrade Journey at Slack](https://swe.quest/articles/unlocking-efficiency-and-performance-navigating-the-spark-3-and-emr-6-upgrade-56a4dac14be6617c.md): Slack Engineering · 2024-07-02 · Medium · 9 min read · Data pipelines, Analytics & OLAP, Performance engineering, Cloud platforms, Refactoring & migrations
  Slack migrated 60+ EMR clusters serving 40+ teams from EMR 5 (Spark 2.4/Hive 2) to EMR 6 with Spark 3 as the single compute engine.
- [How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline](https://swe.quest/articles/how-grab-built-scarlet-the-ai-teammate-that-turns-a-slack-message-into-a-cb0afbb754a543cf.md): Grab Engineering · 2026-11-23 · Medium · 12 min read · AI agents, Data pipelines, Testing, Identity & auth, LLMs
  Grab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill.
- [Data Lineage at Slack](https://swe.quest/articles/data-lineage-at-slack-fbf2aa4b9e9054d0.md): Slack Engineering · 2021-08-17 · Medium · 8 min read · Data pipelines, Privacy, Analytics & OLAP
  Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite).
- [Remote Development at Slack](https://swe.quest/articles/remote-development-at-slack-6777fb2e88a1e9d8.md): Slack Engineering · 2022-06-28 · Medium · 8 min read · Developer productivity, Cloud platforms, Developer tools
  Slack moved webapp development off laptops (where Hack/HHVM, a 30-minute clone and Docker-based setups were slow and brittle) onto short-lived AWS EC2 remote environments accessed through VSCode Remote SSH.
- [Break Stuff on Purpose](https://swe.quest/articles/break-stuff-on-purpose-87dc2221ffb9f4a6.md): Slack Engineering · 2024-12-10 · Medium · 5 min read · Chaos engineering, Incidents & postmortems, Observability, SRE
  Slack's internal Kibana cluster failed in January 2024 after running out of disk, a consequence of co-locating its Elasticsearch storage on the same hosts as the application.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
