incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Davis <paul.joseph.da...@gmail.com>
Subject Re: Erlang-only CouchDB
Date Sun, 01 Nov 2009 01:10:22 GMT
Senthilkumar,

You'll need to make sure that the user running the Erlang shell has
permissions to read/write to all the required directories as usual. A
quick test would be to do

$ ERL_LIBS=/usr/local/lib/couchdb/erlang/lib sudo erl
1> application:start(couch).

Paul Davis

On Sat, Oct 31, 2009 at 8:49 PM, Senthilkumar Peelikkampatti
<senthilkumar.peelikkampatti@gmail.com> wrote:
> Paul,
>  Thanks for the quick reply,
>
> May be I am doing something wrong,
>
> These are the things I did to run couchdb using shell scripts
>
>   1. pull the source from SVN directly
>   2. ./bootstrap and ./configure
>   3. make && sudo make install
>   4. I usually start in admin mode (sudo  ./couchdb )
>
> Now,
>     for emulator start, I tried with your approach and got the following
> error
>
>   application: couch
>    exited: {bad_return,{{couch_app,start,
>                                    [normal,
>                                     ["/usr/local/etc/couchdb/default.ini",
>                                      "/usr/local/etc/couchdb/local.ini"]]},
>                         {'EXIT',{{badmatch,{error,shutdown}},
>                                  [{couch_server_sup,start_server,1},
>                                   {application_master,start_it_old,4}]}}}}
>
> I verified that the above config default.ini and local.ini is available at
> the above location. Is there something wrong?
>
> --
> Regards,
> Senthilkumar Peelikkampatti,
> http://pmsenthilkumar.blogspot.com/
>
>
> On Sat, Oct 31, 2009 at 7:28 PM, Paul Davis <paul.joseph.davis@gmail.com>wrote:
>
>> Senthilkumar,
>>
>> The basic application loading should work something like this:
>>
>> $ ERL_LIBS=/usr/local/lib/couchdb/erlang/lib erl
>> 1> application:start(couch).
>>
>> Paul Davis
>>
>> On Sat, Oct 31, 2009 at 8:18 PM, Senthilkumar Peelikkampatti
>> <senthilkumar.peelikkampatti@gmail.com> wrote:
>> > Paul,
>> > I am on 0.11.xxx
>> > Detailed one below,
>> > Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2] [async-threads:0]
>> > [hipe] [kernel-poll:true]
>> > --
>> > Regards,
>> > Senthilkumar Peelikkampatti,
>> > http://pmsenthilkumar.blogspot.com/
>> >
>> > Eshell V5.7.2  (abort with ^G)
>> > 1> Apache CouchDB 0.11.0b830800 (LogLevel=info) is starting.
>> > Apache CouchDB has started. Time to relax.
>> >
>> > On Sat, Oct 31, 2009 at 6:44 PM, Paul Davis <paul.joseph.davis@gmail.com
>> >wrote:
>> >
>> >> On Sat, Oct 31, 2009 at 7:01 PM, Senthilkumar Peelikkampatti
>> >> <senthilkumar.peelikkampatti@gmail.com> wrote:
>> >> > I found almost 7-8 times faster when I use hovercraft compare to http
>> >> > interfaced client like couchbeam or ecouch
>> >>
>> >> That sounds about right.
>> >>
>> >> > Besides, I am also trying to embed couchdb with my other Erlang
>> >> application
>> >> > but when I looked at the startup parameter of the couchdb it is not
a
>> >> naive
>> >> > job to eliminate all the hard work of shell script.
>> >>
>> >> What version are you on? Trunk and 0.10.x should both simplify the
>> >> startup procedure for starting in the VM by doing something like
>> >> application:start(couch).
>> >>
>> >> HTH,
>> >> Paul Davis
>> >>
>> >
>>
>
>
>
> --
> Regards,
> Senthilkumar Peelikkampatti,
> http://pmsenthilkumar.blogspot.com/
>

Mime
View raw message