Skip to content

Instantly share code, notes, and snippets.

@NDari
Last active April 11, 2018 16:38
Show Gist options
  • Select an option

  • Save NDari/d055302deb8aa88dfe512aedd96feb67 to your computer and use it in GitHub Desktop.

Select an option

Save NDari/d055302deb8aa88dfe512aedd96feb67 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# jupyter
ssh -o ServerAliveInterval=10 -o StrictHostKeyChecking=no -i ~/AWS-datascience-EMR.pem -N -L 8889:${1}:8889 hadoop@${1} &
# sparkUI
ssh -o ServerAliveInterval=10 -o StrictHostKeyChecking=no -i ~/AWS-datascience-EMR.pem -N -L 18080:${1}:18080 hadoop@${1} &
# hadoop fs
ssh -o ServerAliveInterval=10 -o StrictHostKeyChecking=no -i ~/AWS-datascience-EMR.pem -N -L 8088:${1}:8088 hadoop@${1} &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment