You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by "bit1129@163.com" <bi...@163.com> on 2014/10/31 14:37:43 UTC
Is there a guide to setup the development enviroment with Zookeeper Codebase
I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
Thanks.
-Todd
Re: Is there a guide to setup the development enviroment with
Zookeeper Codebase
Posted by Yogesh Patil <pa...@gmail.com>.
+1
especially some 'working' example of C/Java ZK client is much desirable to
understand and USE it.
-Yogesh
On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
> I would like to fetch the zookeeper codebase,and compile/run/debug it in
> local dev environment to get familiar with zookeeper from the code level.
> Thanks.
>
>
>
> -Todd
>
RE: Re: Is there a guide to setup the development enviroment with
Zookeeper Codebase
Posted by Daniel Peon Quiros <da...@ericsson.com>.
Hi,
If you inspect the build.xml file you will find different targets to be taken by Ant. Some useful commands:
1) ant eclipse --> this will create the needed project files for Eclipse. Import the existing project then by selecting the Java 1.7.
2) ant compile --> it generates the .jar file.
3) ant test-core-java --> it executes the java regression test.
Kind regards,
Dani.
-----Original Message-----
From: bit1129@163.com [mailto:bit1129@163.com]
Sent: lunes, 03 de noviembre de 2014 3:56
To: user@zookeeper.apache.org
Subject: Re: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
Thanks Wendy and Rob
I have figured out a simple way to debug the zookeeper codebase by starting the zookeeper with the following code in IDE.
QuarumPeeMain quarum = new QuarumPeeMain (); quarum.main(new String[]{"zookeeper configuration file path"});
In the meanwhile, If I need, I will try the way to setup the zookeeper codebase following your guide, @Rob, thanks!
bit1129@163.com
From: Rob Lally
Date: 2014-11-01 12:11
To: user
Subject: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase If you run:
ant eclipse
in the project root directory, it will produce an Eclipse project for you. You'll also be able to open the eclipse project in IDEA if you'd prefer that.
R.
On 31 Oct 2014, at 17:15, Tom <bi...@163.com> wrote:
> Thanks Wendy.
> The problem that blocks me is when I fetch the codebase from zookeeper SVN, there is no .classpath/.project information (For eclipse)in it,and also it is not a maven project.
> So,did you configure the classpath by yourself when you accept the codebase? what IDE did you use?Thanks!
>
>
>
>
>
>
>
>
>
> At 2014-10-31 22:24:21, "Wendy Smoak" <ws...@gmail.com> wrote:
>> http://zookeeper.apache.org links to
>>
>> https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
>>
>> which has instructions on how to build the project with Ant.
>>
>> I'm trying it now -- initial observations are that the tests take a
>> LONG time and it's difficult to work on anything else while they are
>> running because the terminal window keeps stealing focus. (?) Not
>> sure what that's about, I don't remember it happening with other Java
>> projects.
>>
>> (If you need more help getting set up to build it, the dev list is
>> probably a better place to ask.)
>>
>> -Wendy
>>
>> On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
>>> I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
>>> Thanks.
>>>
>>>
>>>
>>> -Todd
Re: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
Posted by "bit1129@163.com" <bi...@163.com>.
Thanks Wendy and Rob
I have figured out a simple way to debug the zookeeper codebase by starting the zookeeper with the following code in IDE.
QuarumPeeMain quarum = new QuarumPeeMain ();
quarum.main(new String[]{"zookeeper configuration file path"});
In the meanwhile, If I need, I will try the way to setup the zookeeper codebase following your guide, @Rob, thanks!
bit1129@163.com
From: Rob Lally
Date: 2014-11-01 12:11
To: user
Subject: Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
If you run:
ant eclipse
in the project root directory, it will produce an Eclipse project for you. You'll also be able to open the eclipse project in IDEA if you'd prefer that.
R.
On 31 Oct 2014, at 17:15, Tom <bi...@163.com> wrote:
> Thanks Wendy.
> The problem that blocks me is when I fetch the codebase from zookeeper SVN, there is no .classpath/.project information (For eclipse)in it,and also it is not a maven project.
> So,did you configure the classpath by yourself when you accept the codebase? what IDE did you use?Thanks!
>
>
>
>
>
>
>
>
>
> At 2014-10-31 22:24:21, "Wendy Smoak" <ws...@gmail.com> wrote:
>> http://zookeeper.apache.org links to
>>
>> https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
>>
>> which has instructions on how to build the project with Ant.
>>
>> I'm trying it now -- initial observations are that the tests take a
>> LONG time and it's difficult to work on anything else while they are
>> running because the terminal window keeps stealing focus. (?) Not sure
>> what that's about, I don't remember it happening with other Java
>> projects.
>>
>> (If you need more help getting set up to build it, the dev list is
>> probably a better place to ask.)
>>
>> -Wendy
>>
>> On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
>>> I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
>>> Thanks.
>>>
>>>
>>>
>>> -Todd
Re: Is there a guide to setup the development enviroment with Zookeeper Codebase
Posted by Rob Lally <ro...@gmail.com>.
If you run:
ant eclipse
in the project root directory, it will produce an Eclipse project for you. You'll also be able to open the eclipse project in IDEA if you'd prefer that.
R.
On 31 Oct 2014, at 17:15, Tom <bi...@163.com> wrote:
> Thanks Wendy.
> The problem that blocks me is when I fetch the codebase from zookeeper SVN, there is no .classpath/.project information (For eclipse)in it,and also it is not a maven project.
> So,did you configure the classpath by yourself when you accept the codebase? what IDE did you use?Thanks!
>
>
>
>
>
>
>
>
>
> At 2014-10-31 22:24:21, "Wendy Smoak" <ws...@gmail.com> wrote:
>> http://zookeeper.apache.org links to
>>
>> https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
>>
>> which has instructions on how to build the project with Ant.
>>
>> I'm trying it now -- initial observations are that the tests take a
>> LONG time and it's difficult to work on anything else while they are
>> running because the terminal window keeps stealing focus. (?) Not sure
>> what that's about, I don't remember it happening with other Java
>> projects.
>>
>> (If you need more help getting set up to build it, the dev list is
>> probably a better place to ask.)
>>
>> -Wendy
>>
>> On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
>>> I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
>>> Thanks.
>>>
>>>
>>>
>>> -Todd
Re: Re: Is there a guide to setup the development enviroment with
Zookeeper Codebase
Posted by Wendy Smoak <ws...@gmail.com>.
It's just me and the command line. ;) No I didn't have to configure
the classpath -- there is an Ant build file. The Java stuff compiled
okay (one failing test that I did not investigate) but the project
also has some C code, so it wasn't trivial to get it all working.
Here are my notes from earlier today:
http://wiki.wsmoak.net/cgi-bin/wiki.pl?ZooKeeperBuild
Again this is more of a topic for the dev list if you're stuck getting
it to build. Probably some of the developers use Eclipse and can give
you some pointers.
-Wendy
Re:Re: Is there a guide to setup the development enviroment with
Zookeeper Codebase
Posted by Tom <bi...@163.com>.
Thanks Wendy.
The problem that blocks me is when I fetch the codebase from zookeeper SVN, there is no .classpath/.project information (For eclipse)in it,and also it is not a maven project.
So,did you configure the classpath by yourself when you accept the codebase? what IDE did you use?Thanks!
At 2014-10-31 22:24:21, "Wendy Smoak" <ws...@gmail.com> wrote:
>http://zookeeper.apache.org links to
>
>https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
>
>which has instructions on how to build the project with Ant.
>
>I'm trying it now -- initial observations are that the tests take a
>LONG time and it's difficult to work on anything else while they are
>running because the terminal window keeps stealing focus. (?) Not sure
>what that's about, I don't remember it happening with other Java
>projects.
>
>(If you need more help getting set up to build it, the dev list is
>probably a better place to ask.)
>
>-Wendy
>
>On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
>> I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
>> Thanks.
>>
>>
>>
>> -Todd
Re: Is there a guide to setup the development enviroment with
Zookeeper Codebase
Posted by Wendy Smoak <ws...@gmail.com>.
http://zookeeper.apache.org links to
https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute
which has instructions on how to build the project with Ant.
I'm trying it now -- initial observations are that the tests take a
LONG time and it's difficult to work on anything else while they are
running because the terminal window keeps stealing focus. (?) Not sure
what that's about, I don't remember it happening with other Java
projects.
(If you need more help getting set up to build it, the dev list is
probably a better place to ask.)
-Wendy
On Fri, Oct 31, 2014 at 9:37 AM, bit1129@163.com <bi...@163.com> wrote:
> I would like to fetch the zookeeper codebase,and compile/run/debug it in local dev environment to get familiar with zookeeper from the code level.
> Thanks.
>
>
>
> -Todd