You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Thomas Diesler (Jira)" <ji...@apache.org> on 2020/06/30 11:08:00 UTC
[jira] [Updated] (CAMEL-15259) Cannot connet to couchbase server
[ https://issues.apache.org/jira/browse/CAMEL-15259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated CAMEL-15259:
-----------------------------------
Description:
The couchbase component seem outdated or broken
So far we used docker image couchbase:community-3.1.3 which is quite outdated and does not run on Docker Desktop for MacOS. A recent version of the community server (e.g. couchbase:community-6.5.1) runs fine and I can do a setup like this ...
Run the community couchbase server image
{code}
docker run --detach \
--name couchbase \
-p 8091:8091 \
-p 8092:8092 \
-p 8093:8093 \
-p 8094:8094 \
-p 11210:11210 \
couchbase:community-6.5.1
{code}
Setup a new cluster
https://docs.couchbase.com/server/current/cli/cbcli/couchbase-cli-cluster-init.html
{code}
docker exec couchbase \
couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password \
--cluster-name default --cluster-ramsize 1024 \
--services data,index,query
{code}
Load the beer sample data
https://docs.couchbase.com/server/current/cli/cbdocloader-tool.html
{code}
docker exec couchbase \
cbdocloader -c couchbase://127.0.0.1 -u Administrator -p password \
-v -m 1024 -b beer-sample -d /opt/couchbase/samples/beer-sample.zip
{code}
The camel component also uses an outdated client, which I cannot get to work with any of the later community servers that I tried. Simple code like this (which is used by the couchbase endpoint) fails with 401
{code}
List<URI> hosts = Arrays.asList(new URI("http://127.0.0.1:8091/pools"));
String username = "Administrator";
String password = "password";
String bucket = "beer-sample";
CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
CouchbaseClient client = new CouchbaseClient(cfb.buildCouchbaseConnection(hosts, bucket, username, password));
{code}
was:
The couchbase component seem broken or out of date
So far we used docker image couchbase:community-3.1.3 which is quite outdated and does not run on Docker Desktop for MacOS. A recent version of the community server (e.g. couchbase:community-6.5.1) runs fine and I can do a setup like this ...
Run the community couchbase server image
{code}
docker run --detach \
--name couchbase \
-p 8091:8091 \
-p 8092:8092 \
-p 8093:8093 \
-p 8094:8094 \
-p 11210:11210 \
couchbase:community-6.5.1
{code}
Setup a new cluster
https://docs.couchbase.com/server/current/cli/cbcli/couchbase-cli-cluster-init.html
{code}
docker exec couchbase \
couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password \
--cluster-name default --cluster-ramsize 1024 \
--services data,index,query
{code}
Load the beer sample data
https://docs.couchbase.com/server/current/cli/cbdocloader-tool.html
{code}
docker exec couchbase \
cbdocloader -c couchbase://127.0.0.1 -u Administrator -p password \
-v -m 1024 -b beer-sample -d /opt/couchbase/samples/beer-sample.zip
{code}
The camel component also uses an outdated client, which I cannot get to work with any of the later community servers that I tried. Simple code like this (which is used by the couchbase endpoint) fails with 401
{code}
List<URI> hosts = Arrays.asList(new URI("http://127.0.0.1:8091/pools"));
String username = "Administrator";
String password = "password";
String bucket = "beer-sample";
CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
CouchbaseClient client = new CouchbaseClient(cfb.buildCouchbaseConnection(hosts, bucket, username, password));
{code}
> Cannot connet to couchbase server
> ---------------------------------
>
> Key: CAMEL-15259
> URL: https://issues.apache.org/jira/browse/CAMEL-15259
> Project: Camel
> Issue Type: Bug
> Affects Versions: 3.4.0
> Reporter: Thomas Diesler
> Priority: Major
>
> The couchbase component seem outdated or broken
> So far we used docker image couchbase:community-3.1.3 which is quite outdated and does not run on Docker Desktop for MacOS. A recent version of the community server (e.g. couchbase:community-6.5.1) runs fine and I can do a setup like this ...
> Run the community couchbase server image
> {code}
> docker run --detach \
> --name couchbase \
> -p 8091:8091 \
> -p 8092:8092 \
> -p 8093:8093 \
> -p 8094:8094 \
> -p 11210:11210 \
> couchbase:community-6.5.1
> {code}
> Setup a new cluster
> https://docs.couchbase.com/server/current/cli/cbcli/couchbase-cli-cluster-init.html
> {code}
> docker exec couchbase \
> couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password \
> --cluster-name default --cluster-ramsize 1024 \
> --services data,index,query
> {code}
> Load the beer sample data
> https://docs.couchbase.com/server/current/cli/cbdocloader-tool.html
> {code}
> docker exec couchbase \
> cbdocloader -c couchbase://127.0.0.1 -u Administrator -p password \
> -v -m 1024 -b beer-sample -d /opt/couchbase/samples/beer-sample.zip
> {code}
> The camel component also uses an outdated client, which I cannot get to work with any of the later community servers that I tried. Simple code like this (which is used by the couchbase endpoint) fails with 401
> {code}
> List<URI> hosts = Arrays.asList(new URI("http://127.0.0.1:8091/pools"));
> String username = "Administrator";
> String password = "password";
> String bucket = "beer-sample";
> CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder();
> CouchbaseClient client = new CouchbaseClient(cfb.buildCouchbaseConnection(hosts, bucket, username, password));
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)