Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 C9ACCD0AC for ; Thu, 22 Nov 2012 02:40:38 +0000 (UTC) Received: (qmail 16630 invoked by uid 500); 22 Nov 2012 02:40:37 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 16188 invoked by uid 500); 22 Nov 2012 02:40:36 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 16171 invoked by uid 99); 22 Nov 2012 02:40:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 02:40:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cnauroth@hortonworks.com designates 209.85.219.48 as permitted sender) Received: from [209.85.219.48] (HELO mail-oa0-f48.google.com) (209.85.219.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 02:40:29 +0000 Received: by mail-oa0-f48.google.com with SMTP id h2so8904903oag.35 for ; Wed, 21 Nov 2012 18:40:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=+uO9QmTkQ7Zq97JShsCjqjeFJbHTFgv4GO/qexD0TpQ=; b=eMRcKoSacpCv5ECC1JiRdVWmDrEqKvWHAa3mAcfVlCDNsqiLy3DjroYl8vHSHo5yb9 iv+aTUU6/UcJ6IxK7hj4fhuzS8QVBY1tFC57VCP4IeIyhejG9s17Sb2NZbamufAWi1M2 zGQRs2IQGU/xF8Cj62mW+MDpCGsyMaXqzZC7Kaczd7Y+TMMFOGP++M38A3elkHHbbRg+ a/jfq+RBYZuvBAiSNTjDBEzEMA/KxSvDGV3CGYsIp/MpdayioutoEs7eRqFz9R/inEx3 g4ikIVF/zVGgcMoNpi45WKvBop9Tgn54YBlvLyJ3hX9VUhEuJiYslNVGiJR+z9TLUEh9 18pg== MIME-Version: 1.0 Received: by 10.182.18.142 with SMTP id w14mr18257205obd.65.1353552008868; Wed, 21 Nov 2012 18:40:08 -0800 (PST) Received: by 10.76.69.5 with HTTP; Wed, 21 Nov 2012 18:40:08 -0800 (PST) In-Reply-To: <50AD8619.6030405@filez.com> References: <20121121200006.GX27475@tpx> <50AD47E6.1030606@filez.com> <50AD607C.1010801@filez.com> <50AD8619.6030405@filez.com> Date: Wed, 21 Nov 2012 18:40:08 -0800 Message-ID: Subject: Re: [PROPOSAL] introduce Python as build-time and run-time dependency for Hadoop and throughout Hadoop stack From: Chris Nauroth To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d043c823cac71ac04cf0c623d X-Gm-Message-State: ALoCoQmTke1nIHiJh6XuxAskXiWLFlUXgKxtKWen5VIU+xXZZlkC6tS60v9BW4epzydjNab8iIAh X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c823cac71ac04cf0c623d Content-Type: text/plain; charset=ISO-8859-1 This predates me, so I don't know the rationale for repackaging Tomcat inside HTTPFS. I suspect that there was a desire to create a fully stand-alone distribution package, including a full web server. The Maven Jetty plugin isn't directly applicable to this use case. I don't know why it was decided to use Tomcat instead of Jetty. (If anyone else out there has the background, please respond.) Regardless, if the desire is to package a full web server instead of just the war, then switching to Jetty would not change the challenges of the build process. We'd still need to preserve whatever permissions are present in the Jetty distribution. In general, when I was working on this, I did not question whether the current packaging was "correct". I assumed that whatever changes I made for Windows compatibility must yield the exact same distribution without changes on currently supported platforms like Linux. If there are questions around actually changing the output of the build process, then that will steer the conversation in another direction and increase the scope of this effort. It seems like the trickiest issue is preservation of permissions and symlinks in tar files. I suspect that any JVM-based solution like custom Maven plugins, Groovy, or jtar would be limited in this respect. According to Ant documentation, it's a JDK limitation, so I suspect all of these would have the same problem. I haven't tried any of them though. (If there was a feasible solution, then Ant likely would have incorporated it long ago.) If anyone wants to try though, we might learn something from that. Thank you, --Chris On Wed, Nov 21, 2012 at 5:55 PM, Radim Kolar wrote: > Dne 22.11.2012 1:14, Chris Nauroth napsal(a): > > The trickiest maintenance issue is hadoop-hdfs-httpfs, where we unpack >> and repack a Tomcat. >> > why its not possible to just ship WAR file? Its seems to be special > purpose app and they needs hand security setup anyway and intergration with > existing firewall/web infrastructure. > > did you considered to use Jetty? it has really good maven support: > http://wiki.eclipse.org/Jetty/**Feature/Jetty_Maven_Plugin > I am using jetty 8 instead of tomcat and run it with java -jar start.jar > no extra file permissions like x bit are needed. > > If you really need to create tar by hand, there is java library for doing > it - http://code.google.com/p/jtar/ and it can be used from any JVM based > script language, you have plenty of choices. > --f46d043c823cac71ac04cf0c623d--