Repository: incubator-atlas Updated Branches: refs/heads/master 9710cff0b -> c9176273b
ATLAS-335 Kerberized cluster: Atlas fails to come up with hbase as backend (sumasai via shwethags) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/c9176273 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/c9176273 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/c9176273 Branch: refs/heads/master Commit: c9176273bd57870733a9642e1efeeb5fd2921cca Parents: 9710cff Author: Shwetha GS <[email protected]> Authored: Thu Nov 26 17:42:11 2015 +0530 Committer: Shwetha GS <[email protected]> Committed: Thu Nov 26 17:42:11 2015 +0530 ---------------------------------------------------------------------- release-log.txt | 1 + .../apache/atlas/web/listeners/GuiceServletConfig.java | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/c9176273/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index 2266302..24189fc 100644 --- a/release-log.txt +++ b/release-log.txt @@ -9,6 +9,7 @@ ATLAS-54 Rename configs in hive hook (shwethags) ATLAS-3 Mixed Index creation fails with Date types (sumasai via shwethags) ALL CHANGES: +ATLAS-335 Kerberized cluster: Atlas fails to come up with hbase as backend (sumasai via shwethags) ATLAS-333 atlas_stop.py â script must delete âatlas.pidâ file (ndjouhr via sumasai) ATLAS-220 Gets on Enum attribute should return EnumValue(yhemanth via sumasai) ATLAS-334 Update documentation to reflect copying required atlas file on solr installation (sumasai via shwethags) http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/c9176273/webapp/src/main/java/org/apache/atlas/web/listeners/GuiceServletConfig.java ---------------------------------------------------------------------- diff --git a/webapp/src/main/java/org/apache/atlas/web/listeners/GuiceServletConfig.java b/webapp/src/main/java/org/apache/atlas/web/listeners/GuiceServletConfig.java index f9c0cbb..f0d80cb 100755 --- a/webapp/src/main/java/org/apache/atlas/web/listeners/GuiceServletConfig.java +++ b/webapp/src/main/java/org/apache/atlas/web/listeners/GuiceServletConfig.java @@ -58,7 +58,7 @@ public class GuiceServletConfig extends GuiceServletContextListener { private static final String GUICE_CTX_PARAM = "guice.packages"; static final String HTTP_AUTHENTICATION_ENABLED = "atlas.http.authentication.enabled"; - protected Injector injector; + protected volatile Injector injector; @Override protected Injector getInjector() { @@ -70,6 +70,11 @@ public class GuiceServletConfig extends GuiceServletContextListener { * .html */ if (injector == null) { + + // perform login operations + LoginProcessor loginProcessor = new LoginProcessor(); + loginProcessor.login(); + injector = Guice.createInjector(new RepositoryMetadataModule(), new NotificationModule(), new JerseyServletModule() { @Override @@ -114,10 +119,6 @@ public class GuiceServletConfig extends GuiceServletContextListener { installLogBridge(); - // perform login operations - LoginProcessor loginProcessor = new LoginProcessor(); - loginProcessor.login(); - initMetadataService(); startServices(); }
