From user-return-6927-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Oct 19 20:23:03 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 29973 invoked from network); 19 Oct 2009 20:23:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 20:23:02 -0000 Received: (qmail 35600 invoked by uid 500); 19 Oct 2009 20:23:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 35542 invoked by uid 500); 19 Oct 2009 20:23:01 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 35532 invoked by uid 99); 19 Oct 2009 20:23:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 20:23:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dionne@dionne-associates.com designates 69.89.21.11 as permitted sender) Received: from [69.89.21.11] (HELO outbound-mail-01.bluehost.com) (69.89.21.11) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Oct 2009 20:22:50 +0000 Received: (qmail 15615 invoked by uid 0); 19 Oct 2009 20:22:28 -0000 Received: from unknown (HELO host183.hostmonster.com) (74.220.207.183) by outboundproxy1.bluehost.com with SMTP; 19 Oct 2009 20:22:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=dionne-associates.com; h=Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer:X-Identified-User; b=XbEARKRcM+AhzyW4QoA+oV7Fh2/lbLZavBiBU+J17RioJZ7cyibM9fWBy/En9mn52DbTAChQX5pqi/mq9DDeCTgjaMpdflvDnxbBLrCWmRiVA2b4UELyu4DBYdUyWJdQ; Received: from adsl-99-36-5-4.dsl.wlfrct.sbcglobal.net ([99.36.5.4] helo=[192.168.2.101]) by host183.hostmonster.com with esmtpa (Exim 4.69) (envelope-from ) id 1MzykN-0007yB-Oz for user@couchdb.apache.org; Mon, 19 Oct 2009 14:22:28 -0600 Content-Type: text/plain; charset=windows-1252; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v1076) Subject: Re: Enable Erlang for views? From: Robert Dionne In-Reply-To: Date: Mon, 19 Oct 2009 16:22:26 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <565BFB57-8EEC-4288-B25C-54146D3578F7@dionne-associates.com> References: To: user@couchdb.apache.org X-Mailer: Apple Mail (2.1076) X-Identified-User: {2551:host183.hostmonster.com:dionneas:dionne-associates.com} {sentby:smtp auth 99.36.5.4 authed with dionne@dionne-associates.com} X-Virus-Checked: Checked by ClamAV on apache.org aren't those views in the test suite temporary? On Oct 19, 2009, at 4:19 PM, Paul Davis wrote: > Zachary, > > Did you restart CouchDB after making that change? Also, can you double > check that there's an erlang_views.js in your Futon's Test suite? I'm > pretty sure that's in 0.10.0. > > Paul Davis > > On Mon, Oct 19, 2009 at 4:12 PM, Zachary Zolton > wrote: >> Hm... Not so fast, I put the following in my local.ini: >> >> [native_query_servers] >> erlang =3D {couch_native_process, start_link, []} >> >> But now when I try it, I'm still getting the error: >> >> $ curl localhost:5984/test_suite_db/_design/erlview/_view/simple_view >> {"error":"unknown_query_language","reason":"erlang"} >> >> Anything else I should need to configure? >> >> On Mon, Oct 19, 2009 at 2:59 PM, Zachary Zolton >> wrote: >>> Understood=97my couch doesn't accept design docs from outside = sources, >>> so this should be "safe enough" for my uses... Thanks! >>> >>> On Mon, Oct 19, 2009 at 12:37 PM, Paul Davis >>> wrote: >>>> On Mon, Oct 19, 2009 at 12:40 PM, Zachary Zolton >>>> wrote: >>>>> Guys, >>>>> >>>>> I noticed that the test suite creates a design document with an =20= >>>>> Erlang >>>>> view, however I can't execute it from curl. >>>>> >>>>> $ curl = http://localhost:5984/test_suite_db/_design/erlview/_view/simple_view >>>>> {"error":"unknown_query_language","reason":"erlang"} >>>>> >>>>> Are we supposed to be able to map/reduce our docs in Erlang? >>>>> >>>>> >>>>> Cheers, >>>>> >>>>> Zach >>>>> >>>>> >>>>> PS. I'm using CouchDB 0.10 FWIW >>>>> >>>>> PPS. Yes, I found this thread http://is.gd/4r6oG but erlview =20 >>>>> doesn't >>>>> look like it's been touched in quite a while... >>>>> >>>> >>>> Erlang views are disabled by default because they allow arbitrary =20= >>>> code >>>> execution in the server process. To enable them add a section to =20= >>>> your >>>> local.ini like: >>>> >>>> [native_query_servers] >>>> erlang =3D {couch_native_process, start_link, []} >>>> >>>> HTH, >>>> Paul Davis >>>> >>> >>