target.apidocs.com.google.api.services.dataproc.model.HiveJob.html Maven / Gradle / Ivy
HiveJob (Cloud Dataproc API v1-rev20241025-2.0.0)
com.google.api.services.dataproc.model
Class HiveJob
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataproc.model.HiveJob
-
public final class HiveJob
extends com.google.api.client.json.GenericJson
A Dataproc job for running Apache Hive (https://hive.apache.org/) queries on YARN.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud Dataproc API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
HiveJob()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
HiveJob
clone()
Boolean
getContinueOnFailure()
Optional.
List<String>
getJarFileUris()
Optional.
Map<String,String>
getProperties()
Optional.
String
getQueryFileUri()
The HCFS URI of the script that contains Hive queries.
QueryList
getQueryList()
A list of queries.
Map<String,String>
getScriptVariables()
Optional.
HiveJob
set(String fieldName,
Object value)
HiveJob
setContinueOnFailure(Boolean continueOnFailure)
Optional.
HiveJob
setJarFileUris(List<String> jarFileUris)
Optional.
HiveJob
setProperties(Map<String,String> properties)
Optional.
HiveJob
setQueryFileUri(String queryFileUri)
The HCFS URI of the script that contains Hive queries.
HiveJob
setQueryList(QueryList queryList)
A list of queries.
HiveJob
setScriptVariables(Map<String,String> scriptVariables)
Optional.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getContinueOnFailure
public Boolean getContinueOnFailure()
Optional. Whether to continue executing queries if a query fails. The default value is false.
Setting to true can be useful when executing independent parallel queries.
- Returns:
- value or
null
for none
-
setContinueOnFailure
public HiveJob setContinueOnFailure(Boolean continueOnFailure)
Optional. Whether to continue executing queries if a query fails. The default value is false.
Setting to true can be useful when executing independent parallel queries.
- Parameters:
continueOnFailure
- continueOnFailure or null
for none
-
getJarFileUris
public List<String> getJarFileUris()
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop
MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
- Returns:
- value or
null
for none
-
setJarFileUris
public HiveJob setJarFileUris(List<String> jarFileUris)
Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop
MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
- Parameters:
jarFileUris
- jarFileUris or null
for none
-
getProperties
public Map<String,String> getProperties()
Optional. A mapping of property names and values, used to configure Hive. Properties that
conflict with values set by the Dataproc API might be overwritten. Can include properties set
in /etc/hadoop/conf-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
- Returns:
- value or
null
for none
-
setProperties
public HiveJob setProperties(Map<String,String> properties)
Optional. A mapping of property names and values, used to configure Hive. Properties that
conflict with values set by the Dataproc API might be overwritten. Can include properties set
in /etc/hadoop/conf-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
- Parameters:
properties
- properties or null
for none
-
getQueryFileUri
public String getQueryFileUri()
The HCFS URI of the script that contains Hive queries.
- Returns:
- value or
null
for none
-
setQueryFileUri
public HiveJob setQueryFileUri(String queryFileUri)
The HCFS URI of the script that contains Hive queries.
- Parameters:
queryFileUri
- queryFileUri or null
for none
-
getQueryList
public QueryList getQueryList()
A list of queries.
- Returns:
- value or
null
for none
-
setQueryList
public HiveJob setQueryList(QueryList queryList)
A list of queries.
- Parameters:
queryList
- queryList or null
for none
-
getScriptVariables
public Map<String,String> getScriptVariables()
Optional. Mapping of query variable names to values (equivalent to the Hive command: SET
name="value";).
- Returns:
- value or
null
for none
-
setScriptVariables
public HiveJob setScriptVariables(Map<String,String> scriptVariables)
Optional. Mapping of query variable names to values (equivalent to the Hive command: SET
name="value";).
- Parameters:
scriptVariables
- scriptVariables or null
for none
-
set
public HiveJob set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public HiveJob clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy