Support for Kerberos connection
feenst opened this issue · 7 comments
feenst commented
I'm evaluating node-hbase for connecting to an HBase instance, but it's using REST rather than Thrift to connect.
Has Kerberos support for node-thirft2-hbase been discussed?
moshewe commented
We haven't discussed Kerberos support, nor do I expect this to get into our
development plans any time soon...
You can, however, easily swap the connection pool we have now with a
Kerberos connection pool. You are more than welcome to fork and submit a
PR, and we'll be glad to help.
…On 6 Sep 2017 4:40 AM, "feenst" ***@***.***> wrote:
I'm evaluating node-hbase <https://github.com/adaltas/node-hbase> for
connecting to an HBase instance, but it's using REST rather than Thrift to
connect.
Has Kerberos support for node-thirft2-hbase been discussed?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#11>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AG8XebyExq9HRQl7-TEm7gIy8Uj87Gwvks5sffgkgaJpZM4PNutS>
.
feenst commented
moshewe commented
Yes. You can see that in the `create` callback given to the pool it creates
a `Client` object. You can change that to a Kerberos client connection.
…On 7 Sep 2017 3:48 AM, "feenst" ***@***.***> wrote:
@moshewe <https://github.com/moshewe>, I'm not sure where to start on
swapping out the connection pool. Would that be something here
<https://github.com/exposebox/node-thrift2-hbase/blob/master/src/client.js#L45>
?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#11 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AG8XeSJZAPLVBJMDYjW_wE-1r8fQV1gtks5sfz1EgaJpZM4PNutS>
.
Ran-P commented
In client.js line 147 the connection to the thrift server is created.
The createConnection
is in the node-thrift package, It just create a stream using net.createConnection
.
You can add your function of createKerberosConnection
:
thrift.createKerberosConnection = function(host, port, options) {
var stream = kerberos.connect(port, host, options);
var connection = new Connection(stream, options);
connection.host = host;
connection.port = port;
return connection;
};
feenst commented
moshewe commented