Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C787A1055A for ; Wed, 18 Sep 2013 20:51:59 +0000 (UTC) Received: (qmail 80023 invoked by uid 500); 18 Sep 2013 20:51:55 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 79869 invoked by uid 500); 18 Sep 2013 20:51:55 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 79801 invoked by uid 500); 18 Sep 2013 20:51:54 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 79740 invoked by uid 99); 18 Sep 2013 20:51:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 20:51:53 +0000 Date: Wed, 18 Sep 2013 20:51:53 +0000 (UTC) From: "Kousuke Saruta (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-5315) bin/hive should retrieve HADOOP_VERSION better way. 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/HIVE-5315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kousuke Saruta updated HIVE-5315: --------------------------------- Status: Patch Available (was: Open) > bin/hive should retrieve HADOOP_VERSION better way. > --------------------------------------------------- > > Key: HIVE-5315 > URL: https://issues.apache.org/jira/browse/HIVE-5315 > Project: Hive > Issue Type: Bug > Affects Versions: 0.11.0 > Reporter: Kousuke Saruta > Fix For: 0.11.1 > > Attachments: HIVE-5315.patch > > > In current implementation, bin/hive retrieves HADOOP_VERSION like as follows > {code} > HADOOP_VERSION=$($HADOOP version | awk '{if (NR == 1) {print $2;}}'); > {code} > But, sometimes, "hadoop version" doesn't show version information at the first line. > If HADOOP_VERSION is not retrieve collectly, Hive or related processes will not be up. > I faced this situation when I try to debug Hiveserver2 with debug option like as follows > {code} > -Xdebug -Xrunjdwp:trunsport=dt_socket,suspend=n,server=y,address=9876 > {code} > Then, "hadoop version" shows -Xdebug... at the first line. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira