我正在尝试从azuregen2容器中的hadoop集群读取数据。我一直在尝试使用cdata.apachehive进行连接,但我也不反对遍历Parquet文件并按此路线进行连接。我对前者使用的代码是。。。
using (ApacheHiveConnection connection = new ApacheHiveConnection(connectionString))
{
ApacheHiveCommand cmd = new ApacheHiveCommand("SELECT * FROM sandbox_int.myTable LIMIT 10", connection);
ApacheHiveDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
{
//whatever here
}
}
我正在关闭500个连接。有没有人有过与apachehive提供商合作的经验,或者有没有更好的方法来实现这一点?
暂无答案!
目前还没有任何答案,快来回答吧!