spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eyal Sharon <>
Subject Send JsonDocument to Couchbase
Date Tue, 01 Dec 2015 14:12:06 GMT
Hi ,

I am still having problems with Couchbase connector . Consider the
following code fragment which aims to create a Json document to send to

*val muCache = {  val values =
JsonArray.from(  val content =
values).put("features",mu.size)  JsonDocument.create("mu",content)}*

*mu is vector of double

This fails because JsonArray is a Java method which doesn't except
scala's string. Got this error

*Unsupported type for JsonArray: class [Ljava.lang.String;*

1- What could be a solution  for that  ?

2- For a more clean usage  ,I thought of using concrete Scala Json
libraries, but neither of them supports JsonDocuments

I followed the implantation from  Couchbases spark connector
documentation   -

Thanks !


*This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are 
addressed. Please note that any disclosure, copying or distribution of the 
content of this information is strictly forbidden. If you have received 
this email message in error, please destroy it immediately and notify its 

View raw message