Skip to content
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

Set credentials #42

Open
HSDen opened this issue Dec 1, 2015 · 2 comments
Open

Set credentials #42

HSDen opened this issue Dec 1, 2015 · 2 comments

Comments

@HSDen
Copy link

HSDen commented Dec 1, 2015

Hi,

How do we set authentication params like user and password, while using tcli_connect or connect methods?

@lloydpick
Copy link
Member

There is a PR #23 that offers Kerberos connectivity, but this is yet to be merged into master.

@0bserver07
Copy link

@Selenium-hari here is an example:

RBHive.tcli_connect('address', 10_000, { transport: :sasl,:sasl_params  => {:username => "username",:password  => "password"},logger: Logger.new(STDOUT), hive_version: 10 }) do |connection|
  connection.fetch 'SELECT * FROM users LIMIT 5'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants