Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Suggestion: better code snippets on the cluster monitor page #143

Open
gregglind opened this issue Jan 26, 2016 · 1 comment
Open

Suggestion: better code snippets on the cluster monitor page #143

gregglind opened this issue Jan 26, 2016 · 1 comment

Comments

@gregglind
Copy link
Contributor

Right now, the cluster monitor page is sufficient, but not awesome.

Suggestion... have some better code snippets to handle upload, download and connect.

I know the eventual route is to go auto gist / s3 / whatever. Maybe this is a temp solution?

# remember that gregg is the worst at bash!
export TELEMETRYCLUSTER=ec2-54-201-192-120.us-west-2.compute.amazonaws.com; 
export TELDIR=~/telemetry-analysis-files
mkdir -p "${TELDIR}"

echo -n "${TELEMETRYCLUSTER}" > ~/.telemetry-cluster
echo -n "${TELDIR}" > ~/.telemetry-dir

# connect
tel-connect () { ssh -i my-private-key -L 4040:localhost:4040 -L 8888:localhost:8888 hadoop@`cat ~/.telemetry-cluster`; }

# scp down
tel-download () { scp -i my-private-key hadoop@$(cat ~/.telemetry-cluster):~/analyses/* "$(cat ~/.telemetry-dir)"; }

# scp up
tel-upload () { scp -i my-private-key "$(cat ~/.telemetry-dir)"/* hadoop@$(cat ~/.telemetry-cluster):~/analyses/ ; }

export -f tel-connect
export -f tel-upload
export -f tel-download


@gregglind
Copy link
Contributor Author

updated, still want something around this to make this awesomer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant