couchbase

Unable to connect to http://localhost:8091/index.html

只谈情不闲聊 提交于 2019-12-01 19:49:19
问题 I have just installed CouchBase Server Enterprise v2.0.0 using the setup.exe on my Windows 7 64bit machine and supposedly the Browser based Console should appear automatically after installation but all i am getting is Unable to Connect: **Firefox can't establish a connection to the server at localhost:8091.** The CouchBase service is running when I check? I have uninstalled and reinstalled a couple of times now? Am I missing something here? 回答1: You are probably hitting a known issue related

Unable to connect to http://localhost:8091/index.html

旧巷老猫 提交于 2019-12-01 19:43:00
I have just installed CouchBase Server Enterprise v2.0.0 using the setup.exe on my Windows 7 64bit machine and supposedly the Browser based Console should appear automatically after installation but all i am getting is Unable to Connect: **Firefox can't establish a connection to the server at localhost:8091.** The CouchBase service is running when I check? I have uninstalled and reinstalled a couple of times now? Am I missing something here? Tug Grall You are probably hitting a known issue related to IP address acquisition during startup of Couchbase Server. I have documented a work around

Couchbase Bucket authentication error

混江龙づ霸主 提交于 2019-12-01 19:05:51
Using Couchbase 5.0 and its Java client 2.0.3, I have the following error. Just following these instructions to open a bucket: https://developer.couchbase.com/documentation/server/current/sdk/java/managing-connections.html As explained, with a basic local configuration, it's just a matter of two lines of code: Cluster cluster = CouchbaseCluster.create(); Bucket bucket = cluster.openBucket("hero"); That should open the localhost cluster (it actually does) and afterwards open a bucket called "hero", which actually exists in my Couchbase server. Nevertheless, I keep getting the following error:

I am using spring-data-couchbase , but the Query creation from method names does not work

▼魔方 西西 提交于 2019-12-01 12:58:16
问题 I am using spring-data-couchbase , but the Query creation from method names is not work. following is my code: spring-couchbase.xml <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/data/jpa" xmlns:couchbase="http://www.springframework.org/schema/data/couchbase" xmlns:jpa="http://www.springframework.org/schema/data/couchbase" xsi

Error Connecting to CouchBase from Node.js using Couchnode module v.1.2.4

不羁的心 提交于 2019-12-01 10:37:22
Using https://github.com/couchbase/couchnode @v.1.2.4 Attempting to connect to CouchBase server using the code in the README var couchbase = require('couchbase'); var cluster = new couchbase.Cluster(); var db = cluster.openBucket('default'); db.set('testdoc', {name:'Frank'}, function(err, result) { if (err) throw err; db.get('testdoc', function(err, result) { if (err) throw err; console.log(result.value); // {name: Frank} }); }); but am getting the following error: db.js:2 var cluster = new couchbase.Cluster(); ^ TypeError: undefined is not a function at Object.<anonymous> (/Users/n/code/time

How does Simulating Joins works in Couchbase?

岁酱吖の 提交于 2019-12-01 07:33:13
I have documents one is dependent to other. first: { "doctype": "closed_auctions", "seller": { "person": "person11304" }, "buyer": { "person": "person0" }, "itemref": { "item": "item1" }, "price": 50.03, "date": "11/17/2001", "quantity": 1, "type": "Featured", "annotation": { "author": { "person": "person8597" } } here you can see doc.buyer.person is dependent to another documents like this: { "doctype": "people", "id": "person0", "name": "Kasidit Treweek", "profile": { "income": 20186.59, "interest": [ { "category": "category251" } ], "education": "Graduate School", "business": "No" }, "watch

Couchbase: Cannot perform operations on a shutdown bucket

偶尔善良 提交于 2019-12-01 01:23:06
I am getting this error when try to insert 2M objects via node.js into Couchbase. 1M works fine. C:\Users\Administrator\Desktop\node_modules\couchbase\lib\bucket.js: 728 throw new Error('cannot perform operations on a shutdown bucket'); I am using Couchbase 3.0.1, node.js 2.0.2 SDK. This is the code: var Couchbase = require('couchbase'); var myCluster = new Couchbase.Cluster('couchbase://10.0.0.103,10.0.0.102,10.0.0.101,'); var myBucket = myCluster.openBucket('rre'); for (var i = 0;i<1000000;i++) { myBucket.insert('dwhtryrdue_'+i, { "guid": "003dddbf-da50-46d4-a2aa-319677b5d2be", "CampaignID":

Couchbase N1QL join query

匆匆过客 提交于 2019-12-01 01:18:39
need help with a query in Couchbase enviroment. Both document 1 and document 2 is in the same bucket. First the query will get the document message1 using this query: SELECT uid, message, sent_by FROM bucket USE KEYS "message1" Second, it need to get username from document 2. How can i create a join statement that will fetch username from a given document name, using the query above? Overview Document 1 document name = message1 [ { "uid": "1", "message": "hello", "sent_by": "username" } ] Document 2 document name = user1 [ { "username": "username" } ] Assuming that the name of Document2 is

What is the best document storage strategy in NoSQL databases?

谁说胖子不能爱 提交于 2019-12-01 01:17:26
NoSQL databases like Couchbase do hold a lot of documents in memory, hence their enormous speed but it's also putting a greater demand on the memory size of the server(s) it's running on. I'm looking for the best strategy between several contrary strategies of storing documents in a NoSQL database. These are: Optimise for speed Putting the whole information into one (big) document has the advantage that with a single GET the information can be retrieved from memory or from disk (if it was purged from memory before). With the schema-less NoSQL databases this almost wished. But eventually the

How to set TTL for a specific Couchbase document using spring-data-couchbase?

浪子不回头ぞ 提交于 2019-12-01 00:51:22
How to set TTL (Time to Live) for a specific couchbase document using spring-data-couchbase? I know there is way to set expiry time using Document notation as follows @Document(expiry = 10) http://docs.spring.io/spring-data/couchbase/docs/1.1.1.RELEASE/reference/html/couchbase.entity.html It will set TTL for all the documents save through the Entity class. But it seems there is way to set expiration(TTL) time for a specific document "Get and touch: Fetch a specified document and update the document expiration." mentioned in http://docs.couchbase.com/developer/dev-guide-3.0/read-write.html How