Skip to content

Instantly share code, notes, and snippets.

@waichee
Last active October 7, 2016 04:29
Show Gist options
  • Save waichee/df0f91c07905b5858f41e55fcb86801e to your computer and use it in GitHub Desktop.
Save waichee/df0f91c07905b5858f41e55fcb86801e to your computer and use it in GitHub Desktop.
# Some Google CLI commands to setup dataproc and Big Query etc
cluster_name="cluster-1"
# create dataproc cluster with Jupyterhub https://cloud.google.com/dataproc/docs/tutorials/jupyter-notebook
gcloud compute ssh --zone="us-central1-c" \
--ssh-flag="-D" --ssh-flag="10000" --ssh-flag="-N" "${cluster_name}-m" \
--initialization-actions \
gs://dataproc-initialization-actions/jupyter/jupyter.sh
# Proxy and access UI of cluster https://cloud.google.com/dataproc/docs/concepts/cluster-web-interfaces
# Query from BQ as External table https://cloud.google.com/bigquery/federated-data-sources#auto-detect
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment