我想用php连接hiveserver2,为此我发现唯一的选择是apache-thrift可用。
但它只适用于配置单元服务器1,不适用于配置单元服务器2。在找到更多信息后,这是因为当您打开传输连接时,thrift服务器希望通过sasl进行身份验证。HiveServer2默认使用sasl—不幸的是,php缺少一个版本的tsaslclienttransport(它用作另一个TTTransport对象的 Package 器),当您打开传输连接时,它会处理sasl协商。
有没有人成功地用php连接了hiveserver2。
1条答案
按热度按时间j5fpnvbx1#
以下是apache网站上的文档:https://cwiki.apache.org/confluence/display/hive/hiveclient#hiveclient-PHP