| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
⚠️ NOTICE: See best practices of using initialization actions in production.
Install PyPI packages into user Python environment using pip command.
Note: when using this initialization action with automation, pinning package versions (see examples) is strongly encouraged to make cluster environment hermetic.
Installing one package at head
REGION=<region>
CLUSTER_NAME=<cluster_name>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region ${REGION} \
--metadata 'PIP_PACKAGES=pandas' \
--initialization-actions gs://goog-dataproc-initialization-actions-${REGION}/python/pip-install.shInstalling several packages with version selectors
REGION=<region>
CLUSTER_NAME=<cluster_name>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region ${REGION} \
--metadata 'PIP_PACKAGES=pandas==0.23.0 scipy==1.1.0' \
--initialization-actions gs://goog-dataproc-initialization-actions-${REGION}/python/pip-install.shInstall Conda packages into user Python environment using conda command.
Note: when using this initialization action with automation, pinning package versions (see examples) is strongly encouraged to make cluster environment hermetic.
Installing one package at head
REGION=<region>
CLUSTER_NAME=<cluster_name>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region ${REGION} \
--metadata 'CONDA_PACKAGES=scipy' \
--initialization-actions gs://goog-dataproc-initialization-actions-${REGION}/python/conda-install.shInstalling several packages with version selectors
REGION=<region>
CLUSTER_NAME=<cluster_name>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region ${REGION} \
--metadata 'CONDA_PACKAGES=scipy=0.15.0 curl=7.26.0' \
--initialization-actions gs://goog-dataproc-initialization-actions-${REGION}/python/conda-install.shInstalling packages from a new channel
REGION=<region>
CLUSTER_NAME=<cluster_name>
gcloud dataproc clusters create ${CLUSTER_NAME} \
--region ${REGION} \
--metadata 'CONDA_CHANNELS=bioconda' \
--metadata 'CONDA_PACKAGES=recentrifuge=1.0.0' \
--initialization-actions gs://goog-dataproc-initialization-actions-${REGION}/python/conda-install.sh| Back | FazBrowse Home | New Git URL |