Struct google_api_proto::google::cloud::dataproc::v1::PySparkBatch
source · pub struct PySparkBatch {
pub main_python_file_uri: String,
pub args: Vec<String>,
pub python_file_uris: Vec<String>,
pub jar_file_uris: Vec<String>,
pub file_uris: Vec<String>,
pub archive_uris: Vec<String>,
}
Expand description
A configuration for running an Apache PySpark batch workload.
Fields§
§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.
args: Vec<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.
python_file_uris: Vec<String>
Optional. HCFS file URIs of Python files to pass to the PySpark
framework. Supported file types: .py
, .egg
, and .zip
.
jar_file_uris: Vec<String>
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
file_uris: Vec<String>
Optional. HCFS URIs of files to be placed in the working directory of each executor.
archive_uris: Vec<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
.
Trait Implementations§
source§impl Clone for PySparkBatch
impl Clone for PySparkBatch
source§fn clone(&self) -> PySparkBatch
fn clone(&self) -> PySparkBatch
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PySparkBatch
impl Debug for PySparkBatch
source§impl Default for PySparkBatch
impl Default for PySparkBatch
source§impl Message for PySparkBatch
impl Message for PySparkBatch
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for PySparkBatch
impl PartialEq for PySparkBatch
source§fn eq(&self, other: &PySparkBatch) -> bool
fn eq(&self, other: &PySparkBatch) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PySparkBatch
Auto Trait Implementations§
impl Freeze for PySparkBatch
impl RefUnwindSafe for PySparkBatch
impl Send for PySparkBatch
impl Sync for PySparkBatch
impl Unpin for PySparkBatch
impl UnwindSafe for PySparkBatch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request