Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86F50179AC for ; Mon, 29 Sep 2014 17:32:48 +0000 (UTC) Received: (qmail 47333 invoked by uid 500); 29 Sep 2014 17:32:38 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 47218 invoked by uid 500); 29 Sep 2014 17:32:38 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 47208 invoked by uid 99); 29 Sep 2014 17:32:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 17:32:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of skgadalay@gmail.com designates 209.85.212.177 as permitted sender) Received: from [209.85.212.177] (HELO mail-wi0-f177.google.com) (209.85.212.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Sep 2014 17:32:34 +0000 Received: by mail-wi0-f177.google.com with SMTP id cc10so1614311wib.4 for ; Mon, 29 Sep 2014 10:32:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ioy3Z2VxDXqoR5LREo0+NuDvpbA/tKtHzFN/yv7sEMU=; b=drQ1i03ntGk5rsibpVy/wqXxV0iFThDkpEvY5w2xIPNwOT9TwdLrQheH3v0nvp1eQp tV/HlbAxazvqQx7vBrxnvSYq6OJTUIwYGAV8+hBiwWTZwfzw19jMvAsH3ecYU6J+dozH WcIy09cWBAjCHmEmhvMgNdb4iel9WJwvl9HgCzIOXAoyNU8jipczrG6Ah6XkmqrHaQ+v w7otu0DYzawKQ5KllW8WUvU5599yzUKyzM3+KAw31TqVkehxR9V4g9kIYfeo+wZhnqd/ 9lVwPUkv/jsgvrjmz61oxMaw6YsRkyV1zGX/HbT9cbT8jbhIhqs+lV4QVYBe5vTzIClU PTSw== MIME-Version: 1.0 X-Received: by 10.180.74.212 with SMTP id w20mr48465736wiv.7.1412011933423; Mon, 29 Sep 2014 10:32:13 -0700 (PDT) Received: by 10.217.99.9 with HTTP; Mon, 29 Sep 2014 10:32:13 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Sep 2014 23:02:13 +0530 Message-ID: Subject: Re: Hadoop shutdown scripts failing From: Susheel Kumar Gadalay To: user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Thanks On 9/29/14, Aitor Cedres wrote: > Check the file "$HADOOP_HOME/bin/yarn-daemon.sh"; there is a reference to > YARN_PID_DIR. If it's not set. it will default to /tmp. > > > On 29 September 2014 13:11, Susheel Kumar Gadalay > wrote: > >> Thanks Aitor. >> >> There is a shell variable HADOOP_PID_DIR refererred in hadoop-env.sh >> but not in yarn-env.sh. >> >> >> >> On 9/29/14, Aitor Cedres wrote: >> > Hi Susheel, >> > >> > You have to set in your hadoop-env.sh and yarn-env.sh the variabkes: >> > >> > - HADOOP_PID_DIR >> > - YARN_PID_DIR >> > >> > To point to some other directory (most common is /var/run/hadoop-hdfs >> > hadoop-yarn) >> > >> > Hope it helps, >> > Aitor >> > >> > On 29 September 2014 07:50, Susheel Kumar Gadalay >> > wrote: >> > >> >> How to redirect the storing of the following files from /tmp to some >> >> other location. >> >> hadoop--namenode.pid >> >> hadoop--datanode.pid >> >> yarn--resourcemanager.pid >> >> yarn--nodemanager.pid >> >> >> >> In /tmp, these files are cleared by OS sometime back and I am unable >> >> to shutdown by standard scripts stop-dfs.sh or stop-yarn.sh >> >> >> >> In core-site.xml I have given property hadoop.tmp.dir but still these >> >> pid files are present in /tmp only, >> >> >> > >> >