Documentation ¶
Index ¶
Constants ¶
View Source
const ( CLUSTER_SKIA = "cluster-173d" JOB_ID_PREFIX = " jobId: " )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PySparkJob ¶
type PySparkJob struct { // The main Python file to run. PyFile string // Any additional arguments to pass onto the job command line. Args []string // Which cluster should run the job. Cluster string // Any files to provide to the job. Files []string // contains filtered or unexported fields }
PySparkJob describes a PySpark job which runs on a GCE cluster.
func (*PySparkJob) Command ¶
func (j *PySparkJob) Command() *exec.Command
Return the command used to trigger this job.
func (*PySparkJob) Run ¶
func (j *PySparkJob) Run(ctx context.Context) (string, error)
Run the job and return its output.
Click to show internal directories.
Click to hide internal directories.