Couchbase Questions: MapReduce

Have a Question? Get it answered by our community

haroonlatif's picture
Asked 1 month 4 days ago
Latest activity 4 weeks 1 day ago

Unable to connect to CB server from virtual linux machine

CB Server: 2.5.0 enterprise edition (build-1059)
CB Java SDK: 1.2.3
i have checked on host machine following ports are open.
8091, 8092, 11211, 11210, 11209

I am developing hadoop map reduce job and trying to insert from reducer. currently i am just trying to insert 2...

mliu's picture
Asked 2 months 2 weeks ago
Latest activity 2 months 2 weeks ago

map-reduce grouping with compound keys

I'm having trouble figuring out the best way to accomplish a simple query within a date range:

Given an emit like so:

emit([text1, text2, year, mon, day], null)

and using the...

amir_maman's picture
Asked 8 months 2 days ago
Latest activity 7 months 3 weeks ago

Dangerous Reduce is not protected


So i tried to following reduce function for testing the fail over system with couchdb:

function (doc)

Well this is not working , but its also crash all server at the cluster completly!!

Although using devlopment view with a...

amir_maman's picture
Asked 8 months 5 days ago
Latest activity 8 months 3 days ago

How To work with values at reduce functions?


I am trying to learn how to use map reduce functions with couch base. until now i created reports engines based on SQL using Where with multi terms (adding and subtracting terms) and to modify the group part.

I am trying to create this report engine using views.


abov's picture
Asked 10 months 1 week ago
Latest activity 10 months 1 week ago

MapReduce: grouping and filtering.

I have the following task: got all users from `site` and where timestamp from `X` to `Y` and has events "Proposal start", "Proposal end" also group them by the timestamp.

So I wrote the following map function:

abov's picture
Asked 10 months 2 weeks ago
Latest activity 10 months 2 weeks ago

Limitation of the reduce function.

I develop a web analytics service ( based on Couchbase. One of the problems I encountered this is limitation of reduce function.

reason: error (Reduction too large (66762 bytes))

I need to get a structure where...

abov's picture
Asked 10 months 2 weeks ago
Latest activity 10 months 2 weeks ago

What is the best way to calculate the median of the array?

Should I return an array of data and compute the median in my application or is there a right way to do it in the Couchbase?

mtrivedi's picture
Asked 11 months 4 weeks ago
Latest activity 11 months 4 weeks ago

Map reduce - need to use sha1 javascript function


While writing Map Reduce in Couchbase, I have encountered an issue that while emitting key,value from MAP function has very long key and hence i want to convert the key to unique hash using SHA1 function. I do know that couchbase internally uses sha1 JS libraries but somehow I am not...