class Google::Apis::DataprocV1::SparkSqlJob

A Dataproc job for running Apache Spark SQL (spark.apache.org/sql/) queries.

Attributes

jar_file_uris[RW]

Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH. Corresponds to the JSON property `jarFileUris` @return [Array<String>]

logging_config[RW]

The runtime logging config of the job. Corresponds to the JSON property `loggingConfig` @return [Google::Apis::DataprocV1::LoggingConfig]

properties[RW]

Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten. Corresponds to the JSON property `properties` @return [Hash<String,String>]

query_file_uri[RW]

The HCFS URI of the script that contains SQL queries. Corresponds to the JSON property `queryFileUri` @return [String]

query_list[RW]

A list of queries to run on a cluster. Corresponds to the JSON property `queryList` @return [Google::Apis::DataprocV1::QueryList]

script_variables[RW]

Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET name=“value”;). Corresponds to the JSON property `scriptVariables` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 3388
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 3393
def update!(**args)
  @jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
  @logging_config = args[:logging_config] if args.key?(:logging_config)
  @properties = args[:properties] if args.key?(:properties)
  @query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
  @query_list = args[:query_list] if args.key?(:query_list)
  @script_variables = args[:script_variables] if args.key?(:script_variables)
end