-
Notifications
You must be signed in to change notification settings - Fork 528
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
Fix HBase init error when Kerberos is enabled #1294
Conversation
* set indexlabel invalid if create or rebuild failed * also check if indexlabel invalid when query by index * set vl/el to UNDELETED if fail to delete Change-Id: If890b3bd8c441b63642a2006479cf4ccca9ddf67
@@ -135,6 +136,9 @@ public synchronized void open() throws IOException { | |||
hConfig.setInt("hbase.hconnection.threads.max", | |||
config.get(HbaseOptions.HBASE_THREADS_MAX)); | |||
|
|||
String hbaseSite = config.get(HbaseOptions.HBASE_HBASE_SITE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can it be null? don't addResource if hbaseSite is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This config item's default value is /etc/hbase/conf/hbase-site.xml.If not setting,program will get default value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if there not exist file "/etc/hbase/conf/hbase-site.xml"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The program runs normally.If not modified,program read the file from hbase-common-2.0.6.jar, it does not exist actually but prograpm runs normally.
public static Configuration addHbaseResources(Configuration conf) {
conf.addResource("hbase-default.xml");
conf.addResource("hbase-site.xml");
checkDefaultsVersion(conf);
return conf;
}
please rebase master: |
Codecov Report
@@ Coverage Diff @@
## master #1294 +/- ##
=========================================
Coverage 62.09% 62.10%
- Complexity 5767 5768 +1
=========================================
Files 377 377
Lines 31493 31496 +3
Branches 4413 4413
=========================================
+ Hits 19556 19560 +4
Misses 9946 9946
+ Partials 1991 1990 -1
Continue to review full report at Codecov.
|
777f60d
to
51d2a6a
Compare
How to rebase and remove? I execute "git rebase -i master" in brach fix-kerberos. It report displays the following output,and then what to do?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just rebase -i master and pick one commit
@@ -135,6 +136,9 @@ public synchronized void open() throws IOException { | |||
hConfig.setInt("hbase.hconnection.threads.max", | |||
config.get(HbaseOptions.HBASE_THREADS_MAX)); | |||
|
|||
String hbaseSite = config.get(HbaseOptions.HBASE_HBASE_SITE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if there not exist file "/etc/hbase/conf/hbase-site.xml"
This PR fix 2 errors when Kerberos is enabled,as follws:
1、The script init-store.sh excludes /jre/lib/ext path;
2、The hbase-site.xml can‘t be readed when HBase create configuration.