Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-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 AD796EC89 for ; Tue, 26 Feb 2013 18:31:22 +0000 (UTC) Received: (qmail 66796 invoked by uid 500); 26 Feb 2013 18:31:22 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 66767 invoked by uid 500); 26 Feb 2013 18:31:22 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 66759 invoked by uid 99); 26 Feb 2013 18:31:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 18:31:22 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.126.187] (HELO moutng.kundenserver.de) (212.227.126.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Feb 2013 18:31:15 +0000 Received: from mafr.de (krlh-4d034895.pool.mediaWays.net [77.3.72.149]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0Lsrpm-1UqVH40uvy-012bXD; Tue, 26 Feb 2013 19:30:44 +0100 Date: Tue, 26 Feb 2013 19:30:41 +0100 From: Matthias Friedrich To: dev@crunch.apache.org Subject: Re: About status web page Message-ID: <20130226183041.GA18293@mafr.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:lFobtXOEwT8CN2JFyfdbiQnHPmOOKqV1T6xxY3cDefE KG2FJbnJKbeY9eX2qAsklfdrFupWYyujukWoAW2iS3xutw74Tq xPYKAMOJlY+gkCyken498CSoCKMlJulox5Lsh80W8Oc3chE4Sc NmOK5yLn2fUNpHvG4Icl/G20eTlnOe5P4CYk5b7IvmRvQ7TUTm fwlNcfWzkjrfawoUEe0xjs4axqB+vsTXfId7R0af6XphOyzdVx BzJ1ux9XS1HjOWQ73k+kAULwEQ0sz4umHTtHu2gq1PtbT5DkdU O2zv7o5XxTLoyujZJ2R3BfAX4qchIjPRFWjgVWdmYypFEHniQ= = X-Virus-Checked: Checked by ClamAV on apache.org Hi Chao, sounds interesting - just a couple of things that come to mind: I this intended as debugging aid or for operational monitoring? A Crunch job is a temporary thing, to me this doesn't sound like a good match for a web service because it disappears after a (possibly short) time. Also, when multiple jobs are executed concurrently from the same machine, you can't work with a well-known port, you'd have to pick an unused port for each job. It also looks to me like this has security implications? Right now, Crunch is just a client library and we're part of Hadoop's security framework. A web service we might have to secure in some way. Regards, Matthias On Tuesday, 2013-02-26, Chao Shi wrote: > Hi Crunch Devs, > > I'm interested in adding a web status page to crunch. I'm working on a > prototype first, which simply runs a jetty server and renders the dot file > produced by DotFileWriter at browser. The dot rendering work is done by > viz.js . It can successfully render the > plan into SVG. > > I think there are 2 issues I hit with viz.js: > > 1. The license of viz.js is unclear. It is compiled from GraphViz source > code with emscripten. GraphViz is Eclipse Public License 1.0. > > 2. viz.js is big and slow. It is a 1.4MB compressed JS. It takes 1 or 2 > seconds on my laptop to render my pipeline (30+ MRs). I think it good to > have the graph refresh frequently and show the running status of the > pipeline (i.e. whether MRs are done or not). Thus the rendering time would > be too slow. > > Another approach is to call graphviz command at server side, if viz.js is > not possible. I can't find any pure Java implementation of graphviz. > > Looking forward to your advices. > > Thanks, > Chao