本文整理汇总了Java中org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore类的典型用法代码示例。如果您正苦于以下问题:Java ThriftHiveMetastore类的具体用法?Java ThriftHiveMetastore怎么用?Java ThriftHiveMetastore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ThriftHiveMetastore类属于org.apache.hadoop.hive.metastore.api包,在下文中一共展示了ThriftHiveMetastore类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProcessor
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public TProcessor getProcessor() {
return new ThriftHiveMetastore.Processor<>(
new CatalogThriftHiveMetastore(config, hiveConverters, metacatV1, partitionV1, catalogName, registry)
);
}
示例2: HiveSession
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
public HiveSession(TCLIService.Client client, ThriftHiveMetastore.Client metastoreClient,
TSessionHandle tSessionHandle, TProtocolVersion protocol) {
this.client = client;
this.tSessionHandle = tSessionHandle;
this.metastoreClient = metastoreClient;
this.protocol = protocol;
}
示例3: open
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
@Override
public void open() throws Exception {
Class.forName("org.apache.hive.jdbc.HiveDriver");
TTransport tTransport = new TSocket(host, port);
TProtocol protocol = new TBinaryProtocol(tTransport);
tTransport.open();
client = (new TCLIService.Client.Factory()).getClient(protocol);
TTransport tTransport_ms = new TSocket(metaStoreHost, metaStorePort);
TProtocol protocol_ms = new TBinaryProtocol(tTransport_ms);
tTransport_ms.open();
metastoreClient = (new ThriftHiveMetastore.Client.Factory()).getClient(protocol_ms);
}
示例4: connect
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
/**
* TODO.
*
* @throws HiveMetastoreException TODO
*/
private void connect() throws HiveMetastoreException {
LOG.info("Connecting to ThriftHiveMetastore " + host + ":" + port);
transport = new TSocket(host, port, 1000 * clientSocketTimeout);
this.client = new ThriftHiveMetastore.Client(new TBinaryProtocol(transport));
try {
transport.open();
} catch (TTransportException e) {
close();
throw new HiveMetastoreException(e);
}
}
示例5: HiveThriftClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
public HiveThriftClient(String thriftHost, int thriftPort)
{
transport = new TSocket(thriftHost, thriftPort);
try {
transport.open();
}
catch (TTransportException e) {
throw new RuntimeException(e);
}
TBinaryProtocol protocol = new TBinaryProtocol(transport);
client = new ThriftHiveMetastore.Client(protocol);
}
示例6: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
@Override
public ThriftHiveMetastore.Iface getClient() {
return metaStoreMapping.getClient();
}
示例7: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
@Override
public ThriftHiveMetastore.Iface getClient() {
return client;
}
示例8: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
protected ThriftHiveMetastore.Iface getClient() {
return client;
}
示例9: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
public static ThriftHiveMetastore.Iface getClient(HiveMetaStoreClient client){
return client.client;
}
示例10: ThriftHiveMetastoreClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
public ThriftHiveMetastoreClient(TTransport transport)
{
this.transport = requireNonNull(transport, "transport is null");
this.client = new ThriftHiveMetastore.Client(new TBinaryProtocol(transport));
}
示例11: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
ThriftHiveMetastore.Iface getClient();