You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@livy.apache.org by js...@apache.org on 2017/06/27 06:38:55 UTC

[14/50] [abbrv] incubator-livy git commit: LIVY-316. NPE when starting kinit thread (#292)

LIVY-316. NPE when starting kinit thread (#292)



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

Branch: refs/heads/master
Commit: b872978cd7e0cd1e794233fbba958da805da98ab
Parents: 693a795
Author: Jeff Zhang <zj...@gmail.com>
Authored: Wed Feb 15 17:31:39 2017 +0800
Committer: GitHub <no...@github.com>
Committed: Wed Feb 15 17:31:39 2017 +0800

----------------------------------------------------------------------
 server/src/main/scala/com/cloudera/livy/server/LivyServer.scala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-livy/blob/b872978c/server/src/main/scala/com/cloudera/livy/server/LivyServer.scala
----------------------------------------------------------------------
diff --git a/server/src/main/scala/com/cloudera/livy/server/LivyServer.scala b/server/src/main/scala/com/cloudera/livy/server/LivyServer.scala
index 938f3a6..a88f013 100644
--- a/server/src/main/scala/com/cloudera/livy/server/LivyServer.scala
+++ b/server/src/main/scala/com/cloudera/livy/server/LivyServer.scala
@@ -101,7 +101,7 @@ class LivyServer extends Logging {
       )
       val launch_keytab = livyConf.get(LAUNCH_KERBEROS_KEYTAB)
       val launch_principal = SecurityUtil.getServerPrincipal(
-        livyConf.get(LAUNCH_KERBEROS_PRINCIPAL), server.host)
+        livyConf.get(LAUNCH_KERBEROS_PRINCIPAL), host)
       require(launch_keytab != null,
         s"Kerberos requires ${LAUNCH_KERBEROS_KEYTAB.key} to be provided.")
       require(launch_principal != null,