Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-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 1997D18F32 for ; Thu, 25 Feb 2016 00:26:43 +0000 (UTC) Received: (qmail 80980 invoked by uid 500); 25 Feb 2016 00:26:41 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 80900 invoked by uid 500); 25 Feb 2016 00:26:41 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 80891 invoked by uid 99); 25 Feb 2016 00:26:41 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2016 00:26:41 +0000 Received: from [10.200.0.168] (184-23-216-210.dedicated.static.sonic.net [184.23.216.210]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B9D781A047D for ; Thu, 25 Feb 2016 00:26:40 +0000 (UTC) User-Agent: Microsoft-MacOutlook/14.5.9.151119 Date: Wed, 24 Feb 2016 16:26:39 -0800 Subject: Re: Anyway to avoid creating subdirectories by "Insert with =?EUC-KR?B?dW5pb26p9w==?= From: Gopal Vijayaraghavan Sender: Gopal Vijayaraghavan To: "user@hive.apache.org" Message-ID: Thread-Topic: Anyway to avoid creating subdirectories by "Insert with =?EUC-KR?B?dW5pb26p9w==?= References: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit > SET mapred.input.dir.recursive=TRUE; ... > Can we set above setting as tblProperties or Hive Table properties. Not directly, those are MapReduce properties - they are not settable via Hive tables. That said, you can write your own SemanticAnalyzerHooks to do pretty much anything you want like that. You can use hooks to modify the job, after tables have been resolved. Ideally such a hook should not modify the plan (much), because it's too late to do it right. But I sometimes prototype Hive optimizer features as Hooks, like this one. https://github.com/t3rmin4t0r/captain-hook Cheers, Gopal