StoreMode is from Couchbase connector.

Where did you obtain the connector ?

See also
http://stackoverflow.com/questions/1096148/how-to-check-the-jdk-version-used-to-compile-a-class-file

On Thu, Nov 26, 2015 at 8:55 AM, Eyal Sharon <e...@scene53.com> wrote:

> Hi ,
> Great , that gave some directions. But can you elaborate more?  or share
> some post
> I am currently running JDK 7 , and  my Couchbase too
>
> Thanks !
>
> On Thu, Nov 26, 2015 at 6:02 PM, Ted Yu <yuzhih...@gmail.com> wrote:
>
>> This implies version mismatch between the JDK used to build your jar and
>> the one at runtime.
>>
>> When building, target JDK 1.7
>>
>> There're plenty of posts on the web for dealing with such error.
>>
>> Cheers
>>
>> On Thu, Nov 26, 2015 at 7:31 AM, Eyal Sharon <e...@scene53.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to set a connection to Couchbase. I am at the very
>>> beginning, and I got stuck on   this exception
>>>
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>> com/couchbase/spark/StoreMode : Unsupported major.minor version 52.0
>>>
>>>
>>> Here is the simple code fragment
>>>
>>>   val sc = new SparkContext(cfg)
>>>
>>>   val doc1 = JsonDocument.create("doc1", JsonObject.create().put("some", 
>>> "content"))
>>>   val doc2 = JsonArrayDocument.create("doc2", JsonArray.from("more", 
>>> "content", "in", "here"))
>>>
>>>
>>>   val data = sc
>>>     .parallelize(Seq(doc1, doc2))
>>>     .saveToCouchbase()
>>> }
>>>
>>>
>>> Any help will be a bless
>>>
>>>
>>> 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
>>> sender.*
>>>
>>
>>
>
> *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
> sender.*
>

Reply via email to