Node.js and npm phoenix-client package connectivity with kerberized Apache phoenix

前端 未结 1 2020
一生所求
一生所求 2021-01-28 06:06

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 c

相关标签:
1条回答
  • 2021-01-28 06:38

    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
    }
    
    0 讨论(0)
提交回复
热议问题