Skip to content

Latest commit

 

History

History
171 lines (98 loc) · 2.45 KB

hive.md

File metadata and controls

171 lines (98 loc) · 2.45 KB

hive/glue-sync.sh

Provides function to install Hive Glue Catalog Sync Agent

Overview

Installs Hive Glue Catalog Sync Agent

Requires Hive 2.x Currently supported only on AWS

Index

install_glue_sync()

Installs Hive Glue Catalog Sync Agent

Requires Hive 2.x Currently supported only on AWS

Example

install_glue_sync us-east-1

Arguments

  • $1 (string): Region for AWS Athena. Defaults to us-east-1

hive/hiveserver2.sh

Provides functions to start/stop/restart HiveServer2

Overview

Function to check if HiveServer2 is configured

Index

is_hs2_configured()

Function to check if HiveServer2 is configured

Example

if [[ is_hs2_configured ]]; then
    # do something here
fi

Function has no arguments.

Exit codes

  • 0: If HiveServer2 is configured
  • 1: Otherwise

stop_hs2()

Function to stop HiveServer2 JVM

Works on both Hadoop2 and HiveServer2 clusters

Example

stop_hs2

Function has no arguments.

start_hs2()

Function to start HiveServer2 JVM

Works on both Hadoop2 and HiveServer2 clusters

Example

start_hs2

Function has no arguments.

restart_hs2()

Function to restart HiveServer2 JVM

Works on both Hadoop2 and HiveServer2 clusters

Example

restart_hs2

Function has no arguments.

hive/thrift-metastore.sh

Provides functions to start/stop/restart thrift metastore server

Overview

Function to start thrift metastore server

Index

start_thrift_metastore()

Function to start thrift metastore server

Example

start_thrift_metastore

Function has no arguments.

stop_thrift_metastore()

Function to stop thrift metastore server

Example

stop_thrift_metastore

Function has no arguments.

restart_thrift_metastore()

Function to restart thrift metastore server

Example

restart_thrift_metastore

Function has no arguments.

hive/ranger-client.sh

Provides function to install Apache Ranger client for Hive

Overview

Install Apache Ranger client for Hive

Currently supported only on AWS Requires HiveServer2