# Spark (connector version 2.1.0-M4) with neo4j 3.4.5

**URL:** <https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220>\
**Category:** Ecosystem & Integrations\
**Tags:** spark\
**Created:** [January 7, 2019, 2:31pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220 "2019-01-07T14:31:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 7, 2019, 2:31pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/1 "2019-01-07T14:31:09Z")

</div>

Hi,  
i build a data processing using neo4j-spark-connector(v 2.1.0-M4). until now i used neo4j 3.3 and everything works fine.  
i need to improve this process now, and for do it i need to use neo4j 3.4.5 features(datetime field) -  
part of the code:  
val date = Calendar.getInstance()  
date.add(Calendar.DATE, -30)  
date.set(Calendar.HOUR\_OF\_DAY, 0)  
date.set(Calendar.MINUTE, 0)  
date.set(Calendar.SECOND, 0)  
date.set(Calendar.MILLISECOND, 0)

val d = ZonedDateTime.ofInstant(date.toInstant(), ZoneId.of(("UTC")))  
val map = Map("date" -\> d)

neo4j.cypher(relevanceQuery, map)

the map works because if i put long parameters it works.

the error i get:  
org.neo4j.driver.v1.exceptions.ClientException: Unable to convert java.time.ZonedDateTime to Neo4j Value.

hope someone will help,  
thanks,  
Niv.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 9, 2019, 6:45am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/2 "2019-01-09T06:45:58Z")

</div>

We probably need to update the java driver version, I'll do that this week.

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 9, 2019, 8:36am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/3 "2019-01-09T08:36:53Z")

</div>

many thanks michael!

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 16, 2019, 11:32am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/4 "2019-01-16T11:32:25Z")

</div>

hi michael,  
you know when it will be ready?

Thanks,  
Niv.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 16, 2019, 1:11pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/5 "2019-01-16T13:11:34Z")

</div>

Sorry I ran into a number of build errors as part of the update, that have to be fixed first.

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 16, 2019, 2:02pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/6 "2019-01-16T14:02:51Z")

</div>

maybe you have some estimation?

i changed all date properties to work with the new date type(before 3.4 the properties were just a long number), and now i'm a little bit stuck because of it :\ , cant upload new sprint to production.

thanks,  
Niv.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 16, 2019, 3:38pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/7 "2019-01-16T15:38:17Z")

</div>

It would be good to have some time to work through some of the other open issues and suggestions, but I'm afraid I won't have the capacity right now.

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 20, 2019, 8:57am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/8 "2019-01-20T08:57:05Z")

</div>

@michael.hunger  
hi,  
As i said on github, the jar works for me. so thanks!

last thing,  
you can upload it to the maven repository too?  
the latest version there is 2.2.1-M5  
([https://mvnrepository.com/artifact/neo4j-contrib/neo4j-spark-connector](https://mvnrepository.com/artifact/neo4j-contrib/neo4j-spark-connector))

thanks,  
Niv.

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 20, 2019, 9:53pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/9 "2019-01-20T21:53:15Z")

</div>

Yes I'm trying, there are some issues mit maven central ☹

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 20, 2019, 11:44pm UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/10 "2019-01-20T23:44:52Z")

</div>

Here you go:

[https://spark-packages.org/package/neo4j-contrib/neo4j-spark-connector](https://spark-packages.org/package/neo4j-contrib/neo4j-spark-connector)

Please let me know if it works.

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 21, 2019, 10:04am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/11 "2019-01-21T10:04:27Z")

</div>

@michael.hunger

it works! :)  
thanks!

---

<div class="post-metadata">

**Author:** ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Post date:** [January 22, 2019, 10:45am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/12 "2019-01-22T10:45:32Z")

</div>

Something that would help me tremendously would be some other folks describing / documenting how they use the connector. So if you have a few minutes at some time I would very much appreciate a blog post explaining how you use it and also feedback on what could be improved.

---

<div class="post-metadata">

**Author:** ![niv](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/niv/32/2746_2.png) [@niv](https://community.neo4j.com/u/niv)\
**Post date:** [January 22, 2019, 11:54am UTC](https://community.neo4j.com/t/spark-connector-version-2-1-0-m4-with-neo4j-3-4-5/4220/13 "2019-01-22T11:54:53Z")

</div>

no problem,  
will do it soon :)
