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.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.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_delegation_token_with_signature_args, ThriftHiveMetastore.get_delegation_token_with_signature_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_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_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.list_privileges_args, ThriftHiveMetastore.list_privileges_result, ThriftHiveMetastore.list_roles_args, ThriftHiveMetastore.list_roles_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, 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
 
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 renewer)
          Get a new delegation token.
static String getDelegationToken(String renewer, String token_signature)
          Get a new delegation token.
static void main(String[] args)
           
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
 
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

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 renewer,
                                        String token_signature)
                                 throws IOException
Get a new delegation token.

Parameters:
renewer - the designated renewer
token_signature - an identifier that is set as the service on the generated token
Throws:
IOException

getDelegationToken

public static String getDelegationToken(String renewer)
                                 throws IOException
Get a new delegation token.

Parameters:
renewer - the designated renewer
Throws:
IOException

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)
Parameters:
args -

startMetaStore

public static void startMetaStore(int port,
                                  HadoopThriftAuthBridge bridge)
                           throws Throwable
Start Metastore based on a passed HadoopThriftAuthBridge

Parameters:
port -
bridge -
Throws:
Throwable


Copyright © 2011 The Apache Software Foundation