Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7E0F5200C23 for ; Wed, 8 Feb 2017 03:54:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7CC6E160B68; Wed, 8 Feb 2017 02:54:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9F5DC160B3E for ; Wed, 8 Feb 2017 03:54:48 +0100 (CET) Received: (qmail 8975 invoked by uid 500); 8 Feb 2017 02:54:47 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 8964 invoked by uid 99); 8 Feb 2017 02:54:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 02:54:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 442CE1A01F1 for ; Wed, 8 Feb 2017 02:54:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 5cfblaqhxYwr for ; Wed, 8 Feb 2017 02:54:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A83A15FCD0 for ; Wed, 8 Feb 2017 02:54:45 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F15E4E03A1 for ; Wed, 8 Feb 2017 02:54:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A135B2528C for ; Wed, 8 Feb 2017 02:54:41 +0000 (UTC) Date: Wed, 8 Feb 2017 02:54:41 +0000 (UTC) From: "David Tucker (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-5779) Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Feb 2017 02:54:49 -0000 [ https://issues.apache.org/jira/browse/HDFS-5779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857286#comment-15857286 ] David Tucker commented on HDFS-5779: ------------------------------------ For future readers: I encountered this exact problem while trying to run the NameNode on Docker, and the issue was `hdfs` having one UID when running `hdfs namenode -format` and a different UID when starting `hdfs namenode`. I suppose mismatches between `supergroup` and `hadoop` could potentially cause this too. > Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name > ------------------------------------------------------------------------------------------------------------- > > Key: HDFS-5779 > URL: https://issues.apache.org/jira/browse/HDFS-5779 > Project: Hadoop HDFS > Issue Type: Bug > Environment: Linux 2.6.32-220.13.1.el6.x86_64 #1 SMP Thu Mar 29 11:46:40 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux > This machine is KEONIZED ie., KEON BoKS security is implemented for this box > Reporter: Vijay > > xxxxxx@testhost:/home/xxxxxx/Lab/hdfs/namenodep$ hadoop namenode -format > Warning: $HADOOP_HOME is deprecated. > 14/01/15 04:51:38 INFO namenode.NameNode: STARTUP_MSG: > /************************************************************ > STARTUP_MSG: Starting NameNode > STARTUP_MSG: host = testhost.testhost1.net/xx.xxx.xxx.xxx > STARTUP_MSG: args = [-format] > STARTUP_MSG: version = 1.0.3 > STARTUP_MSG: build = https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0 -r 1335192; compiled by 'hortonfo' on Tue May 8 20:31:25 UTC 2012 > ************************************************************/ > Re-format filesystem in /home/xxxxxx/Lab/hdfs/namenodep ? (Y or N) Y > 14/01/15 04:51:40 INFO util.GSet: VM type = 32-bit > 14/01/15 04:51:40 INFO util.GSet: 2% max memory = 19.33375 MB > 14/01/15 04:51:40 INFO util.GSet: capacity = 2^22 = 4194304 entries > 14/01/15 04:51:40 INFO util.GSet: recommended=4194304, actual=4194304 > 14/01/15 04:51:40 ERROR namenode.NameNode: java.io.IOException: failure to login > at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:490) > at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.setConfigurationParameters(FSNamesystem.java:475) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.(FSNamesystem.java:464) > at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1162) > at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1271) > at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288) > Caused by: javax.security.auth.login.LoginException: java.lang.NullPointerException: invalid null input: name > at com.sun.security.auth.UnixPrincipal.(Unknown Source) > at com.sun.security.auth.module.UnixLoginModule.login(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at javax.security.auth.login.LoginContext.invoke(Unknown Source) > at javax.security.auth.login.LoginContext.access$000(Unknown Source) > at javax.security.auth.login.LoginContext$5.run(Unknown Source) > at javax.security.auth.login.LoginContext$5.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.login.LoginContext.invokeCreatorPriv(Unknown Source) > at javax.security.auth.login.LoginContext.login(Unknown Source) > at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:471) > at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:452) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.setConfigurationParameters(FSNamesystem.java:475) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.(FSNamesystem.java:464) > at org.apache.hadoop.hdfs.server.namenode.NameNode.format(NameNode.java:1162) > at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1271) > at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1288) > at javax.security.auth.login.LoginContext.invoke(Unknown Source) > at javax.security.auth.login.LoginContext.access$000(Unknown Source) > at javax.security.auth.login.LoginContext$5.run(Unknown Source) > at javax.security.auth.login.LoginContext$5.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.login.LoginContext.invokeCreatorPriv(Unknown Source) > at javax.security.auth.login.LoginContext.login(Unknown Source) > at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:471) > ... 6 more > 14/01/15 04:51:40 INFO namenode.NameNode: SHUTDOWN_MSG: > /************************************************************ > SHUTDOWN_MSG: Shutting down NameNode at testhost.testhost1.net/10.129.254.129 > ************************************************************/ -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org