org.apache.hadoop.hive.metastore
Class HiveMetaStore
java.lang.Object
org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore
org.apache.hadoop.hive.metastore.HiveMetaStore
public class HiveMetaStore
- extends ThriftHiveMetastore
TODO:pc remove application logic to a separate interface.
Nested classes/interfaces inherited from class org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore |
ThriftHiveMetastore.add_index_args, ThriftHiveMetastore.add_index_result, ThriftHiveMetastore.add_partition_args, ThriftHiveMetastore.add_partition_result, ThriftHiveMetastore.add_partitions_args, ThriftHiveMetastore.add_partitions_result, ThriftHiveMetastore.alter_database_args, ThriftHiveMetastore.alter_database_result, ThriftHiveMetastore.alter_index_args, ThriftHiveMetastore.alter_index_result, ThriftHiveMetastore.alter_partition_args, ThriftHiveMetastore.alter_partition_result, ThriftHiveMetastore.alter_table_args, ThriftHiveMetastore.alter_table_result, ThriftHiveMetastore.append_partition_args, ThriftHiveMetastore.append_partition_by_name_args, ThriftHiveMetastore.append_partition_by_name_result, ThriftHiveMetastore.append_partition_result, ThriftHiveMetastore.AsyncClient, ThriftHiveMetastore.AsyncIface, ThriftHiveMetastore.cancel_delegation_token_args, ThriftHiveMetastore.cancel_delegation_token_result, ThriftHiveMetastore.Client, ThriftHiveMetastore.create_database_args, ThriftHiveMetastore.create_database_result, ThriftHiveMetastore.create_role_args, ThriftHiveMetastore.create_role_result, ThriftHiveMetastore.create_table_args, ThriftHiveMetastore.create_table_result, ThriftHiveMetastore.create_type_args, ThriftHiveMetastore.create_type_result, ThriftHiveMetastore.drop_database_args, ThriftHiveMetastore.drop_database_result, ThriftHiveMetastore.drop_index_by_name_args, ThriftHiveMetastore.drop_index_by_name_result, ThriftHiveMetastore.drop_partition_args, ThriftHiveMetastore.drop_partition_by_name_args, ThriftHiveMetastore.drop_partition_by_name_result, ThriftHiveMetastore.drop_partition_result, ThriftHiveMetastore.drop_role_args, ThriftHiveMetastore.drop_role_result, ThriftHiveMetastore.drop_table_args, ThriftHiveMetastore.drop_table_result, ThriftHiveMetastore.drop_type_args, ThriftHiveMetastore.drop_type_result, ThriftHiveMetastore.get_all_databases_args, ThriftHiveMetastore.get_all_databases_result, ThriftHiveMetastore.get_all_tables_args, ThriftHiveMetastore.get_all_tables_result, ThriftHiveMetastore.get_config_value_args, ThriftHiveMetastore.get_config_value_result, ThriftHiveMetastore.get_database_args, ThriftHiveMetastore.get_database_result, ThriftHiveMetastore.get_databases_args, ThriftHiveMetastore.get_databases_result, ThriftHiveMetastore.get_delegation_token_args, ThriftHiveMetastore.get_delegation_token_result, ThriftHiveMetastore.get_fields_args, ThriftHiveMetastore.get_fields_result, ThriftHiveMetastore.get_index_by_name_args, ThriftHiveMetastore.get_index_by_name_result, ThriftHiveMetastore.get_index_names_args, ThriftHiveMetastore.get_index_names_result, ThriftHiveMetastore.get_indexes_args, ThriftHiveMetastore.get_indexes_result, ThriftHiveMetastore.get_partition_args, ThriftHiveMetastore.get_partition_by_name_args, ThriftHiveMetastore.get_partition_by_name_result, ThriftHiveMetastore.get_partition_names_args, ThriftHiveMetastore.get_partition_names_ps_args, ThriftHiveMetastore.get_partition_names_ps_result, ThriftHiveMetastore.get_partition_names_result, ThriftHiveMetastore.get_partition_result, ThriftHiveMetastore.get_partition_with_auth_args, ThriftHiveMetastore.get_partition_with_auth_result, ThriftHiveMetastore.get_partitions_args, ThriftHiveMetastore.get_partitions_by_filter_args, ThriftHiveMetastore.get_partitions_by_filter_result, ThriftHiveMetastore.get_partitions_by_names_args, ThriftHiveMetastore.get_partitions_by_names_result, ThriftHiveMetastore.get_partitions_ps_args, ThriftHiveMetastore.get_partitions_ps_result, ThriftHiveMetastore.get_partitions_ps_with_auth_args, ThriftHiveMetastore.get_partitions_ps_with_auth_result, ThriftHiveMetastore.get_partitions_result, ThriftHiveMetastore.get_partitions_with_auth_args, ThriftHiveMetastore.get_partitions_with_auth_result, ThriftHiveMetastore.get_privilege_set_args, ThriftHiveMetastore.get_privilege_set_result, ThriftHiveMetastore.get_role_names_args, ThriftHiveMetastore.get_role_names_result, ThriftHiveMetastore.get_schema_args, ThriftHiveMetastore.get_schema_result, ThriftHiveMetastore.get_table_args, ThriftHiveMetastore.get_table_names_by_filter_args, ThriftHiveMetastore.get_table_names_by_filter_result, ThriftHiveMetastore.get_table_objects_by_name_args, ThriftHiveMetastore.get_table_objects_by_name_result, ThriftHiveMetastore.get_table_result, ThriftHiveMetastore.get_tables_args, ThriftHiveMetastore.get_tables_result, ThriftHiveMetastore.get_type_all_args, ThriftHiveMetastore.get_type_all_result, ThriftHiveMetastore.get_type_args, ThriftHiveMetastore.get_type_result, ThriftHiveMetastore.grant_privileges_args, ThriftHiveMetastore.grant_privileges_result, ThriftHiveMetastore.grant_role_args, ThriftHiveMetastore.grant_role_result, ThriftHiveMetastore.Iface, ThriftHiveMetastore.isPartitionMarkedForEvent_args, ThriftHiveMetastore.isPartitionMarkedForEvent_result, ThriftHiveMetastore.list_privileges_args, ThriftHiveMetastore.list_privileges_result, ThriftHiveMetastore.list_roles_args, ThriftHiveMetastore.list_roles_result, ThriftHiveMetastore.markPartitionForEvent_args, ThriftHiveMetastore.markPartitionForEvent_result, ThriftHiveMetastore.partition_name_to_spec_args, ThriftHiveMetastore.partition_name_to_spec_result, ThriftHiveMetastore.partition_name_to_vals_args, ThriftHiveMetastore.partition_name_to_vals_result, ThriftHiveMetastore.Processor<I extends ThriftHiveMetastore.Iface>, ThriftHiveMetastore.rename_partition_args, ThriftHiveMetastore.rename_partition_result, ThriftHiveMetastore.renew_delegation_token_args, ThriftHiveMetastore.renew_delegation_token_result, ThriftHiveMetastore.revoke_privileges_args, ThriftHiveMetastore.revoke_privileges_result, ThriftHiveMetastore.revoke_role_args, ThriftHiveMetastore.revoke_role_result, ThriftHiveMetastore.set_ugi_args, ThriftHiveMetastore.set_ugi_result |
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
HiveMetaStore
public HiveMetaStore()
cancelDelegationToken
public static void cancelDelegationToken(String tokenStrForm)
throws IOException
- Discard a current delegation token.
- Parameters:
tokenStrForm
- the token in string form
- Throws:
IOException
getDelegationToken
public static String getDelegationToken(String owner,
String renewer)
throws IOException,
InterruptedException
- Get a new delegation token.
- Parameters:
renewer
- the designated renewer
- Throws:
IOException
InterruptedException
renewDelegationToken
public static long renewDelegationToken(String tokenStrForm)
throws IOException
- Renew a delegation token to extend its lifetime.
- Parameters:
tokenStrForm
- the token in string form
- Throws:
IOException
main
public static void main(String[] args)
throws Throwable
- Parameters:
args
-
- Throws:
Throwable
startMetaStore
public static void startMetaStore(int port,
HadoopThriftAuthBridge bridge)
throws Throwable
- Start Metastore based on a passed
HadoopThriftAuthBridge
- Parameters:
port
- bridge
-
- Throws:
Throwable
startMetaStore
public static void startMetaStore(int port,
HadoopThriftAuthBridge bridge,
HiveConf conf)
throws Throwable
- Start Metastore based on a passed
HadoopThriftAuthBridge
- Parameters:
port
- bridge
- conf
- configuration overrides
- Throws:
Throwable
Copyright © 2011 The Apache Software Foundation