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 98FA120049E for ; Thu, 10 Aug 2017 13:38:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9611E16B240; Thu, 10 Aug 2017 11:38:03 +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 DE6E316B23E for ; Thu, 10 Aug 2017 13:38:02 +0200 (CEST) Received: (qmail 56408 invoked by uid 500); 10 Aug 2017 11:38:02 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 56399 invoked by uid 99); 10 Aug 2017 11:38:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Aug 2017 11:38:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B01D6C0042 for ; Thu, 10 Aug 2017 11:38:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fLIHNhoLAK3D for ; Thu, 10 Aug 2017 11:38:01 +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 C08015FAF3 for ; Thu, 10 Aug 2017 11:38:00 +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 5E2C0E07BA for ; Thu, 10 Aug 2017 11:38:00 +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 115C22415E for ; Thu, 10 Aug 2017 11:38:00 +0000 (UTC) Date: Thu, 10 Aug 2017 11:38:00 +0000 (UTC) From: "Peter Vary (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-17078) Add more logs to MapredLocalTask MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 10 Aug 2017 11:38:03 -0000 [ https://issues.apache.org/jira/browse/HIVE-17078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121503#comment-16121503 ] Peter Vary commented on HIVE-17078: ----------------------------------- Hi [~Yibing], I have found this {{SparkClientImpl.Redirector}} which is called like this: {code} redirect("RemoteDriver-stdout-redir-" + threadName, new Redirector(child.getInputStream())); {code} This is essentially the same as the proposed solution here. Do you think it is worth to move this to hive-common, and use it? Thanks, Peter > Add more logs to MapredLocalTask > -------------------------------- > > Key: HIVE-17078 > URL: https://issues.apache.org/jira/browse/HIVE-17078 > Project: Hive > Issue Type: Improvement > Reporter: Yibing Shi > Assignee: Yibing Shi > Priority: Minor > Attachments: HIVE-17078.1.patch, HIVE-17078.2.patch, HIVE-17078.3.patch, HIVE-17078.4.PATCH, HIVE-17078.5.PATCH > > > By default, {{MapredLocalTask}} is executed in a child process of Hive, in case the local task uses too much resources that may affect Hive. Currently, the stdout and stderr information of the child process is printed in Hive's stdout/stderr log, which doesn't have a timestamp information, and is separated from Hive service logs. This makes it hard to troubleshoot problems in MapredLocalTasks. -- This message was sent by Atlassian JIRA (v6.4.14#64029)