Skip to content

Instantly share code, notes, and snippets.

View dalbhanj's full-sized avatar

Peter Dalbhanjan dalbhanj

  • AWS
  • Herndon, VA
View GitHub Profile
@dalbhanj
dalbhanj / get-tcpdump-from-emr-on-eks
Created November 23, 2022 16:21
How to debug EMR on EKS pods (drivers or executors) and get tcpdump for analyzing network bottleneck.
# Credit: https://cloudyuga.guru/hands_on_lab/tcpdump_kubernetes
# install wireshark using brew or through wireshark website for analyzing tcpdump
# use patch method if the pods are backed by deployment controller; use debug method for targeting individual pods
# launch an emr on eks job that can run for few mins.
# for examples, you can visit [eksworkshop](https://www.eksworkshop.com/advanced/430_emr_on_eks/)
$ aws emr-containers start-job-run ...
# once the job is running, you'll job-runner, driver pod and executors spin up
# use below command to connect to the pod of interest and run tcpdump