Skip to content

Sample apps and code written for Google Cloud Dataproc in the java programming language.

Notifications You must be signed in to change notification settings

howie/java-spark-gcp-dataproc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirement

Before submit task please run login first

gcloud auth login

Create cluster

Reference: gcloud dataproc clusters create

gcloud dataproc clusters create <cluster_name> \
       --bucket <bucket_name> \
       --zone <zone: us-central1-a> \
       --master-boot-disk-size 500GB \
       --worker-boot-disk-size 500GB \
       --num-masters 1 \
       --num-workers 2 \
       --num-preemptible-workers 2

Build and submit job

Before execute make sure to update variable in Gradle file

./gradlew clean build deployJar submitJob

Shutdown and delete cluster

./gradlew shutdownCluster deleteJar

About

Sample apps and code written for Google Cloud Dataproc in the java programming language.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published