org.apache.hadoop.hive.metastore
Class HiveMetaStore

java.lang.Object
  extended by org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore
      extended by org.apache.hadoop.hive.metastore.HiveMetaStore

public class HiveMetaStore
extends ThriftHiveMetastore

TODO:pc remove application logic to a separate interface.


Nested Class Summary
static class HiveMetaStore.HiveMetastoreCli
          HiveMetaStore specific CLI
static class HiveMetaStore.HMSHandler
           
 
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_partition_with_environment_context_args, ThriftHiveMetastore.add_partition_with_environment_context_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_partition_with_environment_context_args, ThriftHiveMetastore.alter_partition_with_environment_context_result, ThriftHiveMetastore.alter_partitions_args, ThriftHiveMetastore.alter_partitions_result, ThriftHiveMetastore.alter_table_args, ThriftHiveMetastore.alter_table_result, ThriftHiveMetastore.alter_table_with_environment_context_args, ThriftHiveMetastore.alter_table_with_environment_context_result, ThriftHiveMetastore.append_partition_args, ThriftHiveMetastore.append_partition_by_name_args, ThriftHiveMetastore.append_partition_by_name_result, ThriftHiveMetastore.append_partition_by_name_with_environment_context_args, ThriftHiveMetastore.append_partition_by_name_with_environment_context_result, ThriftHiveMetastore.append_partition_result, ThriftHiveMetastore.append_partition_with_environment_context_args, ThriftHiveMetastore.append_partition_with_environment_context_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_table_with_environment_context_args, ThriftHiveMetastore.create_table_with_environment_context_result, ThriftHiveMetastore.create_type_args, ThriftHiveMetastore.create_type_result, ThriftHiveMetastore.delete_partition_column_statistics_args, ThriftHiveMetastore.delete_partition_column_statistics_result, ThriftHiveMetastore.delete_table_column_statistics_args, ThriftHiveMetastore.delete_table_column_statistics_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_by_name_with_environment_context_args, ThriftHiveMetastore.drop_partition_by_name_with_environment_context_result, ThriftHiveMetastore.drop_partition_result, ThriftHiveMetastore.drop_partition_with_environment_context_args, ThriftHiveMetastore.drop_partition_with_environment_context_result, ThriftHiveMetastore.drop_role_args, ThriftHiveMetastore.drop_role_result, ThriftHiveMetastore.drop_table_args, ThriftHiveMetastore.drop_table_result, ThriftHiveMetastore.drop_table_with_environment_context_args, ThriftHiveMetastore.drop_table_with_environment_context_result, ThriftHiveMetastore.drop_type_args, ThriftHiveMetastore.drop_type_result, ThriftHiveMetastore.exchange_partition_args, ThriftHiveMetastore.exchange_partition_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_column_statistics_args, ThriftHiveMetastore.get_partition_column_statistics_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_column_statistics_args, ThriftHiveMetastore.get_table_column_statistics_result, 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_has_valid_characters_args, ThriftHiveMetastore.partition_name_has_valid_characters_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, ThriftHiveMetastore.update_partition_column_statistics_args, ThriftHiveMetastore.update_partition_column_statistics_result, ThriftHiveMetastore.update_table_column_statistics_args, ThriftHiveMetastore.update_table_column_statistics_result
 
Field Summary
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
HiveMetaStore()
           
 
Method Summary
static void cancelDelegationToken(String tokenStrForm)
          Discard a current delegation token.
static String getDelegationToken(String owner, String renewer)
          Get a new delegation token.
static void main(String[] args)
           
static IHMSHandler newHMSHandler(String name, HiveConf hiveConf)
           
static long renewDelegationToken(String tokenStrForm)
          Renew a delegation token to extend its lifetime.
static void startMetaStore(int port, HadoopThriftAuthBridge bridge)
          Start Metastore based on a passed HadoopThriftAuthBridge
static void startMetaStore(int port, HadoopThriftAuthBridge bridge, HiveConf conf)
          Start Metastore based on a passed HadoopThriftAuthBridge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

HiveMetaStore

public HiveMetaStore()
Method Detail

newHMSHandler

public static IHMSHandler newHMSHandler(String name,
                                        HiveConf hiveConf)
                                 throws MetaException
Throws:
MetaException

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 © 2012 The Apache Software Foundation