Node.js和npm phoenix客户端软件包与kerberized Apache phoenix的连接 [英] Node.js and npm phoenix-client package connectivity with kerberized Apache phoenix

查看:180
本文介绍了Node.js和npm phoenix客户端软件包与kerberized Apache phoenix的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将kerberized Apache phoenix与node.js上的npm jdbc软件包连接[

I am trying to connect kerberized Apache phoenix with the npm jdbc package on node.js [ node.js and npm jdbc package issue with kerberized apache phoenix ], but facing lots of challenges, hence looking for other solutions; In my case npm phoenix-client package seems to be a good option, but I didn't find any kerberized phoenix connectivity example, using phoenix-client package.

如果已连接使用kernized Apache phoenix的人使用npm phoenix-client软件包,请分享您的想法.

If anybody have connected kerberized Apache phoenix uses npm phoenix-client package, please share your thoughts.

推荐答案

我为此使用了jdbc软件包.我的配置看起来像这样.相应地更正版本号.

I use jdbc package for that. My config looks like this. Correct the version numbers accordingly.

if (!jinst.isJvmCreated()) {
  jinst.addOption('-Xrs')
  jinst.setupClasspath([
    '/etc/hbase/2.5.3.0-37/0/',
    '/etc/hadoop/2.5.3.0-37/0/',
    '/usr/hdp/2.5.3.0-37/phoenix/phoenix-4.7.0.2.5.3.0-37-thin-client.jar',
    '/usr/hdp/2.5.3.0-37/phoenix/phoenix-server-4.7.0.2.5.3.0-37-runnable.jar',
    '/usr/hdp/2.5.3.0-37/phoenix/phoenix-4.7.0.2.5.3.0-37-client.jar'
  ])
}
var config = {
  drivername: 'org.apache.phoenix.jdbc.PhoenixDriver',
  url: 'jdbc:phoenix:HOST:PORT:/hbase-unsecure',
  user: '',
  password: '',
  maxpoolsize: 100
}

这篇关于Node.js和npm phoenix客户端软件包与kerberized Apache phoenix的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆