couchbase

Atomic counters in Spring with Couchbase

蹲街弑〆低调 提交于 2019-12-06 00:20:25
Is it possible to use Couchbase's Atomic Counters with the Spring Connector? Currently I have a repository for a specific document type and want to have an atomic counter for every document. I know that the Java SDK offers the functionality but I was not able to find an equivalent action for Spring. As I know Spring doesn't have support for counters but it's pretty simple to write own repository: @Repository public class CountersRepository { private static final long INITIAL_COUNTER_VALUE = 1; @Autowired private Bucket bucket; public void incCounter(final String counter) { bucket.counter

CouchDB Group Level and Key Range

倾然丶 夕夏残阳落幕 提交于 2019-12-05 22:59:33
问题 Can anyone explain to me why the following doesn't work: Assuming the following document structure: { "_id": "520fb089a6cb538b1843cdf3cca39a15", "_rev": "2-f96c27d19bf6cb10268d6d1c34799931", "type": "nosql", "location": "AZ", "date": "2012/03/01 00:00:00", "amount": 1500 } And a Map function defined like so: function(doc) { var saleDate = new Date(doc.date); emit([doc.location,saleDate.getFullYear(),saleDate.getMonth()+1],doc.amount); } And using the built in _sum function for the reducer.

DotNet core 2.0 on MacOS gets libcurl and ssl error triggered by httpclient when using couchbase dotnet sdk

六月ゝ 毕业季﹏ 提交于 2019-12-05 22:22:54
I am developing an Dotnet core 2.x(actually using 2.1.4, latest release when I'm writing this) web api project, in order to use couchbase as my database server, I need to use the couchbase SDK. The sdk states that it supports DotNet core 2.x. After a very basic setup and I just want to test the connectivity, I keep getting this error. HttpRequestException: The handler does not support custom handling of certificates with this combination of libcurl (7.54.0) and its SSL backend ("LibreSSL/2.0.20"). I thought this is a issue with the couchbase SDK, but after some research, I found it is about

Alternate Couchbase UI [closed]

我的梦境 提交于 2019-12-05 19:00:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Does anybody know if are there any alternative Couchbase user interfaces other than the official one provided when installing Couchbase ? I'm looking for something like PhpMyAdmin for MySQL, which does NOT have to look like it or to have the same functionalities but to be open source and be different than the

Timeout when using remote couchbase an AWS ec2

我与影子孤独终老i 提交于 2019-12-05 17:20:59
For development purposes, I want to connect my local machine to couchbase installed on remote ec2. I success in making the connection, but I get timeout when I try to access the data. I've search for the problem and found here , that the problem is probably related to the fact that couchbase returned the internal IP, which cannot be used outside of AWS. However, I did not find any solution to this. Any idea? Thanks. This is my output: In [19]: c = couchbase.Couchbase().connect(host='107.20.181.77',bucket='amit') In [20]: c Out[20]: <couchbase.connection.Connection bucket=amit, nodes=['10.185

Bucket password in Couchbase

和自甴很熟 提交于 2019-12-05 03:14:49
I am creating a demo project for reative programming with springboot and Couchbase. I have set the below properties in application.properties file: spring.couchbase.bootstrap-hosts=localhost spring.couchbase.bucket.name=vanquish spring.couchbase.bucket.password= spring.data.couchbase.repositories.type=auto As I don't have any bucket level password while creating it. Still, service is not able to start because of below exception: Caused by: com.couchbase.client.java.error.InvalidPasswordException: Passwords for bucket "vanquish" do not match. at com.couchbase.client.java.CouchbaseAsyncCluster

N1QL Query times out when Using parameterized IN clause

狂风中的少年 提交于 2019-12-05 02:59:06
Using Couchbase server 4.1.0 (and 4.5), Java SDK 2.2.8 (also tried with 2.2.7, 2.3.1, & 2.3.3), I have a query leveraging a secondary index which runs fine when I run my code locally and even via CBQ (CBQ takes about 3ms) on the AWS server. However, when running my app on AWS, I get a TimeOutException and it's only one query which is timing out, others are not. See details below. May be worth noting my Couchbase setup has 3 buckets. Example Doc: "bucketName": { "userName": "User_A", "MessageContent": "This is a message", "docType": "msg", "ParentMsgId": "1234", "MsgType": "test",

How to install and use couch db in android

让人想犯罪 __ 提交于 2019-12-04 18:37:19
问题 How i should install and use couch Db in android. I mean local couch Db which i can use in tablet as well as emulator.What all steps i must follow to do so. 回答1: I'm working on a project using this at the moment. There are two options: 1) couchbase-android. (yes, couchbase, it's actually couchDB. Go figure) See This Link This is what I use. This is just stock couchDB 1.2.0, bundled with an erlang vm for android. I've found it to be flawlessly stable (despite being beta). Big drawback is that

Spark Java: How to move data from HTTP source to Couchbase sink?

可紊 提交于 2019-12-04 15:40:10
I've a .gz file available on a Web server that I want to consume in a streaming manner and insert the data into Couchbase. The .gz file has only one file in it, which in turn contains one JSON object per line. Since Spark doesn't have a HTTP receiver, I wrote one myself (shown below). I'm using Couchbase Spark connector to do the insertion. However, when running, the job is not actually inserting anything. I've a suspicion that it is due to my inexperience with Spark and not knowing how to start and await termination. As you can see below, there are 2 places such calls can be made. Receiver :