Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Sujay1
Creator
Creator

CouchBase 6 and Talend OS for BD 7.2.1 Bucket Retrieval Issues

Hi All,

    I'm just trying to figure out a way to retrieve data from Couchbase. My connection seems to be ok but when i try to retrieve data it throws below error. Any guidance will be much appreciated. 

 

0683p000009M7wl.png

 

Above shows connection ok.My Couchbase is a local server windows.

This is the error i get

 

Starting job jb_a at 09:13 29/10/2019.

[statistics] connecting to socket on port 3497
[statistics] connected
2019-10-29 09:14:01|yl7hvL|yl7hvL|yl7hvL|1236|LOCAL_PROJECT|jb_a|_7_tgUPiiEemaUfmC2N9-Eg|0.1|Default||begin||
[statistics] disconnected
Exception in thread "main" java.lang.NoClassDefFoundError: com/couchbase/client/java/env/CouchbaseEnvironment
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.privateGetPublicMethods(Unknown Source)
	at java.lang.Class.getMethods(Unknown Source)
	at org.talend.sdk.component.runtime.manager.asm.ProxyGenerator.hasInterceptors(ProxyGenerator.java:503)
	at org.talend.sdk.component.runtime.manager.ComponentManager.handleProxy(ComponentManager.java:1080)
	at org.talend.sdk.component.runtime.manager.ComponentManager.access$1700(ComponentManager.java:186)
	at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.lambda$onCreate$13(ComponentManager.java:1304)
	at java.util.stream.Collectors.lambda$toMap$58(Unknown Source)
	at java.util.stream.ReduceOps$3ReducingSink.accept(Unknown Source)
	at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.util.LinkedList$LLSpliterator.forEachRemaining(Unknown Source)
	at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.onCreate(ComponentManager.java:1297)
	at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$null$2(ContainerManager.java:411)
	at org.talend.sdk.component.container.ContainerManager.safeInvoke(ContainerManager.java:157)
	at org.talend.sdk.component.container.ContainerManager.access$1000(ContainerManager.java:63)
	at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$create$3(ContainerManager.java:411)
	at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
	at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.create(ContainerManager.java:412)
	at org.talend.sdk.component.runtime.manager.ComponentManager.addPlugin(ComponentManager.java:812)
	at org.talend.sdk.component.runtime.manager.ComponentManager.autoDiscoverPlugins(ComponentManager.java:740)
	at local_project.jb_a_0_1.jb_a.CouchbaseInput_1Process(jb_a.java:672)
	at local_project.jb_a_0_1.jb_a.runJobInTOS(jb_a.java:3370)
	at local_project.jb_a_0_1.jb_a.main(jb_a.java:3208)
Caused by: java.lang.ClassNotFoundException: com.couchbase.client.java.env.CouchbaseEnvironment
	at org.talend.sdk.component.classloader.ConfigurableClassLoader.loadClass(ConfigurableClassLoader.java:295)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 35 more

Job jb_a ended at 09:14 29/10/2019. [exit code=1]

 

these are couchbase modules which are installed for couchbase0683p000009M7wv.png

 

 

 

Regards,

G.Sujay.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Sujay,

 

It appears this problem has already been fixed with a patch. However the patches are only available to subscription users. The fix will be in the next release (7.3.1). It will also be in the Milestone 3 release of 7.3.1 which should be here very soon

 

Regards

 

Richard

View solution in original post

12 Replies
fdenis
Creator III
Creator III

how is defined row2?

you may get some samples here:
https://help.talend.com/reader/iT2xo3BOjoFPzS8z49LhGg/EUenrhdhMTouS3zIOOex_g
Sujay1
Creator
Creator
Author

@fdenis  i'm looking for Couchbase not CouchDB both are different 0683p000009MACn.png 

Sujay1
Creator
Creator
Author

@rhall  @xdshi any help on the above would be much appreciated. 

Anonymous
Not applicable

You may be missing a dependency. I am not a user of Couchbase, but have found this....

 

The supported and tested dependencies for this release are:

  • com.couchbase.client:java-client:2.7.4

  • com.couchbase.client:core-io:1.7.4

  • io.reactivex:rxjava:1.3.8

  • io.opentracing:opentracing-api:0.31.0

https://docs.couchbase.com/java-sdk/2.7/sdk-release-notes.html

Sujay1
Creator
Creator
Author

@rhall  thanks for info. I downloaded and added those jars but i still see same error. Can you try it out in your local and let me know. Even i'm not couchbase user but have a need now 0683p000009MACn.png

Anonymous
Not applicable

I cannot reproduce this as I do not have access to a CouchBase database. However, I have raised this Jira (https://jira.talendforge.org/browse/TUP-25026). You should be able to follow it there.

Sujay1
Creator
Creator
Author

Thanks @rhall  much appreciated. I will follow that jira ticket. Just out of curiosity how long do you thing someone will close out Jira(on an average) 0683p000009MACn.png

Anonymous
Not applicable

The more people vote for it, the quicker it will be looked at. R&D are pretty busy at the moment, so voting is important. You can sign up and vote for it

Sujay1
Creator
Creator
Author

Cool @rhall  makes sense. But i only see login button no sign-in if you would be kind enough to send sign-in link here.