Package com.facebook.hive.metastore.client

Examples of com.facebook.hive.metastore.client.HiveMetastoreFactory


                        .setFramed(useFramedTransport);

                    final ThriftClientConfig clientConfig = new ThriftClientConfig()
                        .setConnectTimeout(new Duration(clientSocketTimeout, TimeUnit.SECONDS));

                    final HiveMetastoreFactory factory = new SimpleHiveMetastoreFactory(thriftClientManager, clientConfig, metastoreConfig);

                    try {
                        client = closer.register(ThriftHiveMetastore.Client.forHiveMetastore(factory.getDefaultClient()));
                        isConnected = true;
                    }
                    catch (TTransportException e) {
                        tte = e;
                        if (logger.isDebugEnabled()) {
View Full Code Here


                        .setFramed(useFramedTransport);

                    final ThriftClientConfig clientConfig = new ThriftClientConfig()
                        .setConnectTimeout(new Duration(clientSocketTimeout, TimeUnit.SECONDS));

                    final HiveMetastoreFactory factory = new SimpleHiveMetastoreFactory(thriftClientManager, clientConfig, metastoreConfig);

                    client = closer.register(ThriftHiveMetastore.Client.forHiveMetastore(factory.getDefaultClient()));
                    isConnected = true;

                    if (isConnected && conf.getBoolVar(ConfVars.METASTORE_EXECUTE_SET_UGI)) {
                        // Call set_ugi, only in unsecure mode.
                        try {
View Full Code Here

TOP

Related Classes of com.facebook.hive.metastore.client.HiveMetastoreFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.