本文整理汇总了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)
);
}
开发者ID:Netflix,项目名称:metacat,代码行数:10,代码来源:CatalogThriftService.java
示例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;
}
开发者ID:shunfei,项目名称:stinift,代码行数:8,代码来源:HiveSession.java
示例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);
}
开发者ID:shunfei,项目名称:stinift,代码行数:15,代码来源:HiveConnection.java
示例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);
}
}
开发者ID:airbnb,项目名称:reair,代码行数:20,代码来源:ThriftHiveMetastoreClient.java
示例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);
}
开发者ID:prestodb,项目名称:tempto,代码行数:13,代码来源:HiveThriftClient.java
示例6: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
@Override
public ThriftHiveMetastore.Iface getClient() {
return metaStoreMapping.getClient();
}
开发者ID:HotelsDotCom,项目名称:waggle-dance,代码行数:5,代码来源:IdentityMapping.java
示例7: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
@Override
public ThriftHiveMetastore.Iface getClient() {
return client;
}
开发者ID:HotelsDotCom,项目名称:waggle-dance,代码行数:5,代码来源:MetaStoreMappingImpl.java
示例8: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
protected ThriftHiveMetastore.Iface getClient() {
return client;
}
开发者ID:HotelsDotCom,项目名称:waggle-dance,代码行数:4,代码来源:ThriftMetastoreClient.java
示例9: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
public static ThriftHiveMetastore.Iface getClient(HiveMetaStoreClient client){
return client.client;
}
开发者ID:dremio,项目名称:dremio-oss,代码行数:4,代码来源:HiveClientExposer.java
示例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));
}
开发者ID:y-lan,项目名称:presto,代码行数:6,代码来源:ThriftHiveMetastoreClient.java
示例11: getClient
import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; //导入依赖的package包/类
ThriftHiveMetastore.Iface getClient();
开发者ID:HotelsDotCom,项目名称:waggle-dance,代码行数:2,代码来源:MetaStoreMapping.java
注:本文中的org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论