accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject accumulo git commit: ACCUMULO-3484 Set krb5 properties so UGI will work.
Date Thu, 15 Jan 2015 19:57:59 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master 7606aacf5 -> c032ec4b2


ACCUMULO-3484 Set krb5 properties so UGI will work.

Set the realm and KDC so the hadoop login works as
expected even when there is no krb5.conf on the system.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/c032ec4b
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/c032ec4b
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/c032ec4b

Branch: refs/heads/master
Commit: c032ec4b200eb272d398bd46e5ee5005b9abb59c
Parents: 7606aac
Author: Josh Elser <elserj@apache.org>
Authored: Thu Jan 15 14:57:13 2015 -0500
Committer: Josh Elser <elserj@apache.org>
Committed: Thu Jan 15 14:57:13 2015 -0500

----------------------------------------------------------------------
 .../org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java     | 2 ++
 .../java/org/apache/accumulo/server/AccumuloServerContextTest.java | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/c032ec4b/core/src/test/java/org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java
b/core/src/test/java/org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java
index 8c65776..673126c 100644
--- a/core/src/test/java/org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java
+++ b/core/src/test/java/org/apache/accumulo/core/rpc/SaslConnectionParamsTest.java
@@ -41,6 +41,8 @@ public class SaslConnectionParamsTest {
 
   @Before
   public void setup() throws Exception {
+    System.setProperty("java.security.krb5.realm", "accumulo");
+    System.setProperty("java.security.krb5.kdc", "fake");
     Configuration conf = new Configuration(false);
     conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTHENTICATION, "kerberos");
     UserGroupInformation.setConfiguration(conf);

http://git-wip-us.apache.org/repos/asf/accumulo/blob/c032ec4b/server/base/src/test/java/org/apache/accumulo/server/AccumuloServerContextTest.java
----------------------------------------------------------------------
diff --git a/server/base/src/test/java/org/apache/accumulo/server/AccumuloServerContextTest.java
b/server/base/src/test/java/org/apache/accumulo/server/AccumuloServerContextTest.java
index 56f3933..a596065 100644
--- a/server/base/src/test/java/org/apache/accumulo/server/AccumuloServerContextTest.java
+++ b/server/base/src/test/java/org/apache/accumulo/server/AccumuloServerContextTest.java
@@ -44,6 +44,8 @@ public class AccumuloServerContextTest {
 
   @Before
   public void setup() throws Exception {
+    System.setProperty("java.security.krb5.realm", "accumulo");
+    System.setProperty("java.security.krb5.kdc", "fake");
     Configuration conf = new Configuration(false);
     conf.set(CommonConfigurationKeys.HADOOP_SECURITY_AUTHENTICATION, "kerberos");
     UserGroupInformation.setConfiguration(conf);


Mime
View raw message