You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Sznajder ForMailingList <bs...@gmail.com> on 2013/09/30 16:41:07 UTC

LeaderSelectorExample

Hi

I ran the LeaderSelectorExample class.

However, the main starts the different Examples instances, but, after, we
do not see any printout related to the Leadership ....
Any event is caught...
Benjamin

Re: LeaderSelectorExample

Posted by Sznajder ForMailingList <bs...@gmail.com>.
Hi

I managed, thanks

Benjamin


On Mon, Sep 30, 2013 at 9:05 PM, Sznajder ForMailingList <
bs4mailinglist@gmail.com> wrote:

>  Do you use a 'ant' call?
>
>
> On Mon, Sep 30, 2013 at 7:55 PM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
>> My apologize but....
>>
>> what command line should I use for this example? And which curator
>> version do you use?
>>
>> Regards
>> Benjamin
>>
>>
>> On Mon, Sep 30, 2013 at 7:47 PM, Jordan Zimmerman <
>> jordan@jordanzimmerman.com> wrote:
>>
>>> I suggest building with Maven and running from the command line. That
>>> works for me.
>>>
>>> ====================
>>> Jordan Zimmerman
>>>
>>> On Sep 30, 2013, at 9:38 AM, Sznajder ForMailingList <
>>> bs4mailinglist@gmail.com> wrote:
>>>
>>> sure!
>>>
>>> I copied the two classes :
>>> ExampleClient and LeaderSelectorExample.
>>>
>>> I added the different zookeeper and curator, log4j etc... jars to my
>>> classpath
>>>  And I run it from eclipse on windows.
>>>
>>> Benjamin
>>>
>>>
>>> On Mon, Sep 30, 2013 at 7:08 PM, Jordan Zimmerman <
>>> jordan@jordanzimmerman.com> wrote:
>>>
>>>> Tell how you're running it.
>>>>
>>>> ====================
>>>> Jordan Zimmerman
>>>>
>>>> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <
>>>> bs4mailinglist@gmail.com> wrote:
>>>>
>>>> Hi
>>>>
>>>> thanks for your answer.
>>>>
>>>> However, I added the log4j in the classpath and still do not see any
>>>> leader election event....
>>>>
>>>> Benjamin
>>>>
>>>>
>>>> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <
>>>> jordan@jordanzimmerman.com> wrote:
>>>>
>>>>> It looks like the examples pom is incomplete. Add this:
>>>>>
>>>>>         <dependency>
>>>>>             <groupId>log4j</groupId>
>>>>>             <artifactId>log4j</artifactId>
>>>>>             <version>1.2.16</version>
>>>>>         </dependency>
>>>>>
>>>>> I've update the code for the next release.
>>>>>
>>>>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <
>>>>> bs4mailinglist@gmail.com> wrote:
>>>>>
>>>>> > Hi
>>>>> >
>>>>> > I ran the LeaderSelectorExample class.
>>>>> >
>>>>> > However, the main starts the different Examples instances, but,
>>>>> after, we do not see any printout related to the Leadership ....
>>>>> > Any event is caught...
>>>>> > Benjamin
>>>>>
>>>>>
>>>>
>>>
>>
>

Re: LeaderSelectorExample

Posted by Sznajder ForMailingList <bs...@gmail.com>.
 Do you use a 'ant' call?


On Mon, Sep 30, 2013 at 7:55 PM, Sznajder ForMailingList <
bs4mailinglist@gmail.com> wrote:

> My apologize but....
>
> what command line should I use for this example? And which curator version
> do you use?
>
> Regards
> Benjamin
>
>
> On Mon, Sep 30, 2013 at 7:47 PM, Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>> I suggest building with Maven and running from the command line. That
>> works for me.
>>
>> ====================
>> Jordan Zimmerman
>>
>> On Sep 30, 2013, at 9:38 AM, Sznajder ForMailingList <
>> bs4mailinglist@gmail.com> wrote:
>>
>> sure!
>>
>> I copied the two classes :
>> ExampleClient and LeaderSelectorExample.
>>
>> I added the different zookeeper and curator, log4j etc... jars to my
>> classpath
>>  And I run it from eclipse on windows.
>>
>> Benjamin
>>
>>
>> On Mon, Sep 30, 2013 at 7:08 PM, Jordan Zimmerman <
>> jordan@jordanzimmerman.com> wrote:
>>
>>> Tell how you're running it.
>>>
>>> ====================
>>> Jordan Zimmerman
>>>
>>> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <
>>> bs4mailinglist@gmail.com> wrote:
>>>
>>> Hi
>>>
>>> thanks for your answer.
>>>
>>> However, I added the log4j in the classpath and still do not see any
>>> leader election event....
>>>
>>> Benjamin
>>>
>>>
>>> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <
>>> jordan@jordanzimmerman.com> wrote:
>>>
>>>> It looks like the examples pom is incomplete. Add this:
>>>>
>>>>         <dependency>
>>>>             <groupId>log4j</groupId>
>>>>             <artifactId>log4j</artifactId>
>>>>             <version>1.2.16</version>
>>>>         </dependency>
>>>>
>>>> I've update the code for the next release.
>>>>
>>>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <
>>>> bs4mailinglist@gmail.com> wrote:
>>>>
>>>> > Hi
>>>> >
>>>> > I ran the LeaderSelectorExample class.
>>>> >
>>>> > However, the main starts the different Examples instances, but,
>>>> after, we do not see any printout related to the Leadership ....
>>>> > Any event is caught...
>>>> > Benjamin
>>>>
>>>>
>>>
>>
>

Re: LeaderSelectorExample

Posted by Sznajder ForMailingList <bs...@gmail.com>.
My apologize but....

what command line should I use for this example? And which curator version
do you use?

Regards
Benjamin


On Mon, Sep 30, 2013 at 7:47 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> I suggest building with Maven and running from the command line. That
> works for me.
>
> ====================
> Jordan Zimmerman
>
> On Sep 30, 2013, at 9:38 AM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
> sure!
>
> I copied the two classes :
> ExampleClient and LeaderSelectorExample.
>
> I added the different zookeeper and curator, log4j etc... jars to my
> classpath
> And I run it from eclipse on windows.
>
> Benjamin
>
>
> On Mon, Sep 30, 2013 at 7:08 PM, Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>> Tell how you're running it.
>>
>> ====================
>> Jordan Zimmerman
>>
>> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <
>> bs4mailinglist@gmail.com> wrote:
>>
>> Hi
>>
>> thanks for your answer.
>>
>> However, I added the log4j in the classpath and still do not see any
>> leader election event....
>>
>> Benjamin
>>
>>
>> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <
>> jordan@jordanzimmerman.com> wrote:
>>
>>> It looks like the examples pom is incomplete. Add this:
>>>
>>>         <dependency>
>>>             <groupId>log4j</groupId>
>>>             <artifactId>log4j</artifactId>
>>>             <version>1.2.16</version>
>>>         </dependency>
>>>
>>> I've update the code for the next release.
>>>
>>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <
>>> bs4mailinglist@gmail.com> wrote:
>>>
>>> > Hi
>>> >
>>> > I ran the LeaderSelectorExample class.
>>> >
>>> > However, the main starts the different Examples instances, but, after,
>>> we do not see any printout related to the Leadership ....
>>> > Any event is caught...
>>> > Benjamin
>>>
>>>
>>
>

Re: LeaderSelectorExample

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
I suggest building with Maven and running from the command line. That works for me. 

====================
Jordan Zimmerman

> On Sep 30, 2013, at 9:38 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> 
> sure!
> 
> I copied the two classes :
> ExampleClient and LeaderSelectorExample.
> 
> I added the different zookeeper and curator, log4j etc... jars to my classpath 
> And I run it from eclipse on windows.
> 
> Benjamin
> 
> 
>> On Mon, Sep 30, 2013 at 7:08 PM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
>> Tell how you're running it. 
>> 
>> ====================
>> Jordan Zimmerman
>> 
>>> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
>>> 
>>> Hi
>>> 
>>> thanks for your answer.
>>> 
>>> However, I added the log4j in the classpath and still do not see any leader election event....
>>> 
>>> Benjamin
>>> 
>>> 
>>>> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
>>>> It looks like the examples pom is incomplete. Add this:
>>>> 
>>>>         <dependency>
>>>>             <groupId>log4j</groupId>
>>>>             <artifactId>log4j</artifactId>
>>>>             <version>1.2.16</version>
>>>>         </dependency>
>>>> 
>>>> I've update the code for the next release.
>>>> 
>>>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
>>>> 
>>>> > Hi
>>>> >
>>>> > I ran the LeaderSelectorExample class.
>>>> >
>>>> > However, the main starts the different Examples instances, but, after, we do not see any printout related to the Leadership ....
>>>> > Any event is caught...
>>>> > Benjamin
> 

Re: LeaderSelectorExample

Posted by Sznajder ForMailingList <bs...@gmail.com>.
sure!

I copied the two classes :
ExampleClient and LeaderSelectorExample.

I added the different zookeeper and curator, log4j etc... jars to my
classpath
And I run it from eclipse on windows.

Benjamin


On Mon, Sep 30, 2013 at 7:08 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> Tell how you're running it.
>
> ====================
> Jordan Zimmerman
>
> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
> Hi
>
> thanks for your answer.
>
> However, I added the log4j in the classpath and still do not see any
> leader election event....
>
> Benjamin
>
>
> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <
> jordan@jordanzimmerman.com> wrote:
>
>> It looks like the examples pom is incomplete. Add this:
>>
>>         <dependency>
>>             <groupId>log4j</groupId>
>>             <artifactId>log4j</artifactId>
>>             <version>1.2.16</version>
>>         </dependency>
>>
>> I've update the code for the next release.
>>
>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <
>> bs4mailinglist@gmail.com> wrote:
>>
>> > Hi
>> >
>> > I ran the LeaderSelectorExample class.
>> >
>> > However, the main starts the different Examples instances, but, after,
>> we do not see any printout related to the Leadership ....
>> > Any event is caught...
>> > Benjamin
>>
>>
>

Re: LeaderSelectorExample

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
Tell how you're running it. 

====================
Jordan Zimmerman

> On Sep 30, 2013, at 9:02 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
> 
> Hi
> 
> thanks for your answer.
> 
> However, I added the log4j in the classpath and still do not see any leader election event....
> 
> Benjamin
> 
> 
>> On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <jo...@jordanzimmerman.com> wrote:
>> It looks like the examples pom is incomplete. Add this:
>> 
>>         <dependency>
>>             <groupId>log4j</groupId>
>>             <artifactId>log4j</artifactId>
>>             <version>1.2.16</version>
>>         </dependency>
>> 
>> I've update the code for the next release.
>> 
>> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:
>> 
>> > Hi
>> >
>> > I ran the LeaderSelectorExample class.
>> >
>> > However, the main starts the different Examples instances, but, after, we do not see any printout related to the Leadership ....
>> > Any event is caught...
>> > Benjamin
> 

Re: LeaderSelectorExample

Posted by Sznajder ForMailingList <bs...@gmail.com>.
Hi

thanks for your answer.

However, I added the log4j in the classpath and still do not see any leader
election event....

Benjamin


On Mon, Sep 30, 2013 at 5:55 PM, Jordan Zimmerman <
jordan@jordanzimmerman.com> wrote:

> It looks like the examples pom is incomplete. Add this:
>
>         <dependency>
>             <groupId>log4j</groupId>
>             <artifactId>log4j</artifactId>
>             <version>1.2.16</version>
>         </dependency>
>
> I've update the code for the next release.
>
> On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <
> bs4mailinglist@gmail.com> wrote:
>
> > Hi
> >
> > I ran the LeaderSelectorExample class.
> >
> > However, the main starts the different Examples instances, but, after,
> we do not see any printout related to the Leadership ....
> > Any event is caught...
> > Benjamin
>
>

Re: LeaderSelectorExample

Posted by Jordan Zimmerman <jo...@jordanzimmerman.com>.
It looks like the examples pom is incomplete. Add this:

        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
        </dependency>

I've update the code for the next release.

On Sep 30, 2013, at 7:41 AM, Sznajder ForMailingList <bs...@gmail.com> wrote:

> Hi
> 
> I ran the LeaderSelectorExample class.
> 
> However, the main starts the different Examples instances, but, after, we do not see any printout related to the Leadership ....
> Any event is caught...
> Benjamin