Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-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 B90A718F93 for ; Thu, 1 Oct 2015 01:24:04 +0000 (UTC) Received: (qmail 68587 invoked by uid 500); 1 Oct 2015 01:24:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 68406 invoked by uid 500); 1 Oct 2015 01:24:04 -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 68294 invoked by uid 99); 1 Oct 2015 01:24:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2015 01:24:04 +0000 Date: Thu, 1 Oct 2015 01:24:04 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-11073) ORC FileDump utility ignores errors when writing output 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-11073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eugene Koifman updated HIVE-11073: ---------------------------------- Fix Version/s: 1.3.0 > ORC FileDump utility ignores errors when writing output > ------------------------------------------------------- > > Key: HIVE-11073 > URL: https://issues.apache.org/jira/browse/HIVE-11073 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 1.2.0 > Reporter: Elliot West > Assignee: Elliot West > Priority: Minor > Labels: cli, orc > Fix For: 1.3.0, 2.0.0 > > Attachments: HIVE-11073.1.patch > > > The Hive command line provides the {{--orcfiledump}} utility for dumping data contained within ORC files, specifically when using the {{-d}} option. Generally, it is useful to be able to pipe the data extracted into other commands and utilities to transform and control the data so that it is more manageable by the CLI user. A classic example is {{less}}. > When such command pipelines are currently constructed, the underlying implementation in {{org.apache.hadoop.hive.ql.io.orc.FileDump#printJsonData}} is oblivious to errors occurring when writing to its output stream. Such errors are common place when a user issues {{Ctrl+C}} to kill the leaf process. In this event the leaf process terminates immediately but the Hive CLI process continues to execute until the full contents of the ORC file has been read. > By making {{FileDump}} considerate of output stream errors the process will terminate as soon as the destination process exits (i.e. when the user kills {{less}}) and control will be returned to the user as expected. -- This message was sent by Atlassian JIRA (v6.3.4#6332)