Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1CB07CC1 for ; Tue, 8 Nov 2011 00:43:12 +0000 (UTC) Received: (qmail 70377 invoked by uid 500); 8 Nov 2011 00:43:12 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 70350 invoked by uid 500); 8 Nov 2011 00:43:12 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 70342 invoked by uid 99); 8 Nov 2011 00:43:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 00:43:12 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 00:43:11 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E19E3936E for ; Tue, 8 Nov 2011 00:42:51 +0000 (UTC) Date: Tue, 8 Nov 2011 00:42:51 +0000 (UTC) From: "Roman Shaposhnik (Commented) (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1700861408.9080.1320712971648.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1405950753.14751.1305528707383.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HDFS-1943) fail to start datanode while start-dfs.sh is executed by root user MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-1943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13145996#comment-13145996 ] Roman Shaposhnik commented on HDFS-1943: ---------------------------------------- Matt, this works for me. Please go ahead and commit. > fail to start datanode while start-dfs.sh is executed by root user > ------------------------------------------------------------------ > > Key: HDFS-1943 > URL: https://issues.apache.org/jira/browse/HDFS-1943 > Project: Hadoop HDFS > Issue Type: Bug > Components: scripts > Affects Versions: 0.20.205.0, 0.22.0, 0.23.0 > Reporter: Wei Yongjun > Assignee: Matt Foley > Priority: Blocker > Fix For: 0.22.0, 0.23.0 > > Attachments: HDFS-1943-branch-0.20-security.patch, HDFS-1943.patch > > > When start-dfs.sh is run by root user, we got the following error message: > # start-dfs.sh > Starting namenodes on [localhost ] > localhost: namenode running as process 2556. Stop it first. > localhost: starting datanode, logging to /usr/hadoop/hadoop-common-0.23.0-SNAPSHOT/bin/../logs/hadoop-root-datanode-cspf01.out > localhost: Unrecognized option: -jvm > localhost: Could not create the Java virtual machine. > The -jvm options should be passed to jsvc when we starting a secure > datanode, but it still passed to java when start-dfs.sh is run by root > while secure datanode is disabled. This is a bug of bin/hdfs. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira