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

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

@gregglind

Description

@gregglind

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions