Class: Google::Apis::DataprocV1::PySparkBatch
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::PySparkBatch
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
A configuration for running an Apache PySpark (https://spark.apache.org/docs/ latest/api/python/getting_started/quickstart.html) batch workload.
Instance Attribute Summary collapse
-
#archive_uris ⇒ Array<String>
Optional.
-
#args ⇒ Array<String>
Optional.
-
#file_uris ⇒ Array<String>
Optional.
-
#jar_file_uris ⇒ Array<String>
Optional.
-
#main_python_file_uri ⇒ String
Required.
-
#python_file_uris ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PySparkBatch
constructor
A new instance of PySparkBatch.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PySparkBatch
Returns a new instance of PySparkBatch.
4441 4442 4443 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#archive_uris ⇒ Array<String>
Optional. HCFS URIs of archives to be extracted into the working directory of
each executor. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
Corresponds to the JSON property archiveUris
4408 4409 4410 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4408 def archive_uris @archive_uris end |
#args ⇒ Array<String>
Optional. The arguments to pass to the driver. Do not include arguments that
can be set as batch properties, such as --conf, since a collision can occur
that causes an incorrect batch submission.
Corresponds to the JSON property args
4415 4416 4417 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4415 def args @args end |
#file_uris ⇒ Array<String>
Optional. HCFS URIs of files to be placed in the working directory of each
executor.
Corresponds to the JSON property fileUris
4421 4422 4423 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4421 def file_uris @file_uris end |
#jar_file_uris ⇒ Array<String>
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver
and tasks.
Corresponds to the JSON property jarFileUris
4427 4428 4429 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4427 def jar_file_uris @jar_file_uris end |
#main_python_file_uri ⇒ String
Required. The HCFS URI of the main Python file to use as the Spark driver.
Must be a .py file.
Corresponds to the JSON property mainPythonFileUri
4433 4434 4435 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4433 def main_python_file_uri @main_python_file_uri end |
#python_file_uris ⇒ Array<String>
Optional. HCFS file URIs of Python files to pass to the PySpark framework.
Supported file types: .py, .egg, and .zip.
Corresponds to the JSON property pythonFileUris
4439 4440 4441 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4439 def python_file_uris @python_file_uris end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4446 4447 4448 4449 4450 4451 4452 4453 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4446 def update!(**args) @archive_uris = args[:archive_uris] if args.key?(:archive_uris) @args = args[:args] if args.key?(:args) @file_uris = args[:file_uris] if args.key?(:file_uris) @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris) @main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri) @python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris) end |