public class HiveUtils
extends Object
Constructor and Description |
---|
HiveUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
builtinHiveVersion()
The version of hive used internally by Spark SQL.
|
static <any> |
CONVERT_METASTORE_CTAS() |
static <any> |
CONVERT_METASTORE_ORC() |
static <any> |
CONVERT_METASTORE_PARQUET_WITH_SCHEMA_MERGING() |
static <any> |
CONVERT_METASTORE_PARQUET() |
static <any> |
FAKE_HIVE_VERSION() |
static <any> |
HIVE_METASTORE_BARRIER_PREFIXES() |
static <any> |
HIVE_METASTORE_JARS() |
static <any> |
HIVE_METASTORE_SHARED_PREFIXES() |
static <any> |
HIVE_METASTORE_VERSION() |
static <any> |
HIVE_THRIFT_SERVER_ASYNC() |
static org.apache.spark.sql.catalyst.catalog.CatalogTable |
inferSchema(org.apache.spark.sql.catalyst.catalog.CatalogTable table)
Infers the schema for Hive serde tables and returns the CatalogTable with the inferred schema.
|
static boolean |
isCliSessionState()
Check current Thread's SessionState type
|
static scala.collection.immutable.Map<String,String> |
newTemporaryConfiguration(boolean useInMemoryDerby)
Constructs a configuration for hive, where the metastore is located in a temp directory.
|
static SparkContext |
withHiveExternalCatalog(SparkContext sc) |
public static SparkContext withHiveExternalCatalog(SparkContext sc)
public static String builtinHiveVersion()
public static <any> HIVE_METASTORE_VERSION()
public static <any> FAKE_HIVE_VERSION()
public static <any> HIVE_METASTORE_JARS()
public static <any> CONVERT_METASTORE_PARQUET()
public static <any> CONVERT_METASTORE_PARQUET_WITH_SCHEMA_MERGING()
public static <any> CONVERT_METASTORE_ORC()
public static <any> CONVERT_METASTORE_CTAS()
public static <any> HIVE_METASTORE_SHARED_PREFIXES()
public static <any> HIVE_METASTORE_BARRIER_PREFIXES()
public static <any> HIVE_THRIFT_SERVER_ASYNC()
public static boolean isCliSessionState()
public static scala.collection.immutable.Map<String,String> newTemporaryConfiguration(boolean useInMemoryDerby)
public static org.apache.spark.sql.catalyst.catalog.CatalogTable inferSchema(org.apache.spark.sql.catalyst.catalog.CatalogTable table)
table
- (undocumented)