通过Simba ODBC驱动程序连接到Azure HDInsight中的Hbase

问题描述:

我在Azure HDInsight中运行HBase,并可通过https://my_claster_name.azurehdinsight.net/hbaserest在浏览器中访问HBase Rest API。尝试配置辛巴HBase的ODBC驱动程序连接到HBase的安装我总是得到通过Simba ODBC驱动程序连接到Azure HDInsight中的Hbase

失败:[辛巴] [HBase的(20)错误使用HTTP API:无法连接到服务器

对于主机我试着my_claster_name.azurehdinsight.net/hbaserest,只是my_claster_name.azurehdinsight.net我也尝试过8080和80端口。有任何想法吗?

从Simba的doucument,它需要你提供http://host:port其余的服务器。但是,对于hdinsight群集,它是https,并且所有请求都需要通过网关并重新路由到群集内其余任一服务器。

解决此问题的一种方法是创建一个VNET,并在其中包含您的HBase集群和您自己的机器。这样你就不需要访问网关,并且可以直接打任何你想要的休息服务器。网址是http://workernode{N}:8090。 N取决于你有多少个workernode。