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

HBaseTap for secure HBase cluster #15

Closed
sathish316 opened this issue Sep 2, 2014 · 9 comments
Closed

HBaseTap for secure HBase cluster #15

sathish316 opened this issue Sep 2, 2014 · 9 comments

Comments

@sathish316
Copy link
Contributor

Does this work with secure HBase cluster?

In a HBase mapreduce job written in java, TableMapReduceUtil.initTableMapperJob internally calls TableMapReduceUtil.initCredentials. What is the equivalent of this in SpyGlass HBase taps for working with secure HBase?

If i don't do this step, it results in Kerberos errors in map step:
"No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)"

@sathish316
Copy link
Contributor Author

This pull request in cascading.hbase deals with a similar issue

Cascading/cascading.hbase#2

@galarragas galarragas reopened this Sep 2, 2014
@galarragas
Copy link
Contributor

SpyGlass is not based on Cascading/HBaseTap, need to implement the fix here too

@galarragas
Copy link
Contributor

Hi sathish316, I actually applied the same fix too. I'm currently testing it. Thank you for your contribution!

@sathish316
Copy link
Contributor Author

Great! I've tested this patch on a hbase table with kerberos auth and reads are working fine.

@galarragas
Copy link
Contributor

Just a question, do you need the fix for CDH 4.5.x? Because I'm applying the fix into the branch I'm working on to add support for CDH 5.1?

I can try and release for both if you need it otherwise we were planning to move the master branch to CDH 5

@sathish316
Copy link
Contributor Author

I need the fix for CDH4.5

@galarragas
Copy link
Contributor

Ok, so I'll merge your one on the master branch and keep the other I'm testing to the CDH 5.1 branch. I would probably keep the two releases separate then.

Another point. In my fix I added the following two lines to parallelai.spyglass.base.JobRunner:

if (User.isHBaseSecurityEnabled(conf)) {
TokenUtil.obtainAndCacheToken(conf, UserGroupInformation.getCurrentUser());
}

Did you do that call in your client code? I can apply the same change also on the master branch so you can remove the code from the client code and simply use the JobRunner to launch the job

@sathish316
Copy link
Contributor Author

I'm doing TokenUtil.obtainAndCacheToken in client code.

@galarragas
Copy link
Contributor

Version 2.10_0.10_4.4 has been released on Conjars

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

2 participants