Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 25728 invoked from network); 19 Oct 2009 20:13:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 20:13:14 -0000 Received: (qmail 17717 invoked by uid 500); 19 Oct 2009 20:13:13 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 17650 invoked by uid 500); 19 Oct 2009 20:13:13 -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 17640 invoked by uid 99); 19 Oct 2009 20:13:12 -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:13:12 +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 zachary.zolton@gmail.com designates 209.85.219.205 as permitted sender) Received: from [209.85.219.205] (HELO mail-ew0-f205.google.com) (209.85.219.205) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 20:13:02 +0000 Received: by ewy1 with SMTP id 1so4094766ewy.3 for ; Mon, 19 Oct 2009 13:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=x7ZuFwLNTws6j0MHLfJPLivMizVkImO5MaNWz+/gU10=; b=ESEApCqL26dRBv61kXmxmxp2LcuMDhz4twcUJN0NGzFoF4o83FFdiaNUOYQKBGX2MF XMJe++FSZ5AssW+U5FTk8OjKx3w/QI0SJ7SMPKi2MNZglY88hA2cQ3ynoqlfMl4ZVwJR mwGFisNnLYAb6UJvP6bC69+tglDEnMi/cXMkk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=MUHlj/xjuPFUIRFfVMt7ke3SDezrB0WPa3JTE+44vW8DCYpcepRKPDQO4fsvpBO91Y PTHQNaBBzx+47AhSo0QmxHpC6o7ovm3PoDiZjWw7MijFcetGlObEUAoNybbfxhNgnIzk Z2hhopmWu34MH4xjj94hvXQLMC4rFGseNMi8U= MIME-Version: 1.0 Received: by 10.216.88.201 with SMTP id a51mr1960766wef.154.1255983162305; Mon, 19 Oct 2009 13:12:42 -0700 (PDT) In-Reply-To: References: From: Zachary Zolton Date: Mon, 19 Oct 2009 15:12:22 -0500 Message-ID: Subject: Re: Enable Erlang for views? To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 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 doesn't >>> look like it's been touched in quite a while... >>> >> >> Erlang views are disabled by default because they allow arbitrary code >> execution in the server process. To enable them add a section to your >> local.ini like: >> >> [native_query_servers] >> erlang =3D {couch_native_process, start_link, []} >> >> HTH, >> Paul Davis >> >