Note that the leveldb journal can't really be used with Cluster Sharding,
because it is a local only journal. Yes, you can play with it with one
cluster node, otherwise you need to a distributed journal, such as
akka-persistence-cassandra
<https://github.com/akka/akka-persistence-cassandra>.

Have you tried the activator template, as a starting point?

On Fri, Jan 29, 2016 at 1:36 PM, Martynas Mickevičius <
martynas.mickevic...@typesafe.com> wrote:

> Hi,
>
> did you configure any persistence journal plugin and have journal backend
> ready?
>
> For testing and playing around purposes you can use in-memory journal
> plugin by adding these two configuration lines
>
>
> *# use the journal plugin provided with akka*
>
>
> *akka.persistence.journal.plugin = akka.persistence.journal.leveldb# use
> the java one*
> *akka.persistence.journal.leveldb.native = off*
>
> and add the following library
>
> *"org.iq80.leveldb" % "leveldb" % "0.7",*
>
> to your dependencies to add the storage implementation itself.
>
> On Thu, Jan 28, 2016 at 10:50 PM, Rafał Kowalski <rafal.kowal...@mac.com>
> wrote:
>
>> Hi,
>>
>> I'm exploring the wonderful world of Akka cluster and sharding at the
>> moment.  So far, I've setup just one persistent actor `PublicationActor`
>> and I start the cluster sharding as follows:
>>
>> --8<---------------cut here---------------start------------->8---
>> ClusterSharding(system).start(
>>   typeName = PublicationActor.shardName,
>>   entityProps = Props[PublicationActor],
>>   settings = ClusterShardingSettings(system),
>>   extractEntityId = PublicationActor.extractEntityId,
>>   extractShardId = PublicationActor.extractShardId
>> )
>> --8<---------------cut here---------------end--------------->8---
>>
>> For some reason, the ShardCoordinator is never started or determined and
>> I see this message in my logs of all nodes:
>>
>> --8<---------------cut here---------------start------------->8---
>> [WARN] [01/28/2016 21:45:37.280]
>> [ClusterSystem-akka.actor.default-dispatcher-19]
>> [akka.tcp://ClusterSystem@obelix:2551/system/sharding/pub] Trying to
>> register to coordinator at [None], but no acknowledgement. Total [1]
>> buffered messages.
>> --8<---------------cut here---------------end--------------->8---
>>
>> I have two cluster `seed-nodes` set up but I haven't touched any
>> cluster.sharding settings yet.  What might be the problem here?  What am
>> I missing?
>>
>> Thanks,
>> cheers
>> --
>> -rafał
>>
>> --
>> >>>>>>>>>>      Read the docs: http://akka.io/docs/
>> >>>>>>>>>>      Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>>      Search the archives:
>> https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Martynas Mickevičius
> Typesafe <http://typesafe.com/> – Reactive
> <http://www.reactivemanifesto.org/> Apps on the JVM
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to