-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Kerberos connection #11
Comments
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>
.
|
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>
.
|
In client.js line 147 the connection to the thrift server is created. 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 you can use httpConnection in the thrift library instead of the RPC connection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: