You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by bilal ahmed <jp...@gmail.com> on 2010/04/16 15:17:48 UTC

need help regarding Cassandra Setup in eclipse

hi

  i have started playing with Cassandra from couple of  days. i downloaded
its binary and configured it successfully now i want to contribute in this
project but i m unable to configure

  its source code in eclipse. i followed same steps which were written on
this page  "http://wiki.apache.org/cassandra/RunningCassandraInEclipse" but
i m facing some issues.

  issue is...

  when i check out the code its directory structure looks like this...

  project-name
    |
     src -> java ->org -> apache ->cassandra

  but when i open any class its package statement looks like this...

   package org.apache.cassandra.auth; or any other package

  so here eclipse gives me error "*org.apache.cassandra.auth" does not match
the expected package "java.org.apache.cassandra.auth*" i tired a lot but i m
unable to resolve it.

  i hope u guys will resolve this issue.


 Thanks
  -jp

Re: need help regarding Cassandra Setup in eclipse

Posted by j p <jp...@gmail.com>.
Thanks!!! it worked...

On Sun, Apr 18, 2010 at 1:40 PM, Roger Schildmeijer
<sc...@gmail.com>wrote:

>
> On 18 apr 2010, at 09.53fm, j p wrote:
>
> > I am a newbie in this domain so please can u describe the required steps.
>
> 1, start jconsole (or some other JMX client,
> http://java-source.net/open-source/jmx)
> 2, connect to your running CassandraDeamon
> 3, navigate to the MBeans tab
> 4, expand org.apache.cassandra.service.StorageService -> Operations
> 5, last in the operation list you'll find "loadSchemaFromXML", invoke that
> method
>
> // Roger Schildmeijer
>
> >
> > thanks in advance.
> >
> > BR
> > jp
> >
> >
> > On Sun, Apr 18, 2010 at 2:56 AM, Jonathan Ellis <jb...@gmail.com>
> wrote:
> >
> >> http://wiki.apache.org/cassandra/LiveSchemaUpdates
> >>
> >> On Sat, Apr 17, 2010 at 4:51 PM, bilal ahmed <
> jp.computer.geek@gmail.com>
> >> wrote:
> >>> gr8 its configured and up....but it does't load schema definitions
> giving
> >>> following warning
> >>> *
> >>> *
> >>> * "Couldn't detect any schema definitions in local storage. I hope
> you've
> >>> got a plan."*
> >>> *
> >>> *
> >>> BR
> >>> jp
> >>>
> >>>
> >>> *
> >>> *
> >>> * *
> >>> *
> >>> *
> >>> *
> >>> *
> >>> On Sun, Apr 18, 2010 at 2:31 AM, Roger Schildmeijer
> >>> <sc...@gmail.com>wrote:
> >>>
> >>>>
> >>>> On 17 apr 2010, at 23.27em, bilal ahmed wrote:
> >>>>
> >>>>> Thanks for your immediate help...after solving that issue an other
> >>>> problem
> >>>>> comes into "*org.apache.cassandra.avro*" package. to me i think all
> >> files
> >>>>> have't been commited  coz when i update this package i get only 5
> >> files
> >>>>> which are mentioned below and u know these files are using other
> >> classes
> >>>>> which have't been commited which is why i m getting compile
> >>>>> time errors in this package.
> >>>>
> >>>> I think you might have missed one step from the
> >> RunningCassandraInEclipse
> >>>> wiki page:
> >>>> "The final step is to add the generated Java code to the Eclipse build
> >>>> path. Expand and select interface/thrift/gen-java, right click ->
> "Build
> >>>> Path" -> "Use as Source Folder". Do the same for
> interface/avro/gen-java
> >> and
> >>>> src/gen-java."
> >>>>
> >>>>>
> >>>>> /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
> >>>>> /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
> >>>>> /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
> >>>>> /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
> >>>>>
> >>>>
> >>
> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
> >>>>>
> >>>>> BR
> >>>>> jp
> >>>>
> >>>> // Roger Schildmeijer
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
> >>>>>
> >>>>>> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <
> >>>> jp.computer.geek@gmail.com>
> >>>>>> wrote:
> >>>>>>
> >>>>>> ba> hi
> >>>>>> ba>   i have started playing with Cassandra from couple of  days. i
> >>>>>> downloaded
> >>>>>> ba> its binary and configured it successfully now i want to
> >> contribute
> >>>> in
> >>>>>> this
> >>>>>> ba> project but i m unable to configure
> >>>>>>
> >>>>>> ba>   its source code in eclipse. i followed same steps which were
> >>>> written
> >>>>>> on
> >>>>>> ba> this page  "
> >>>> http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
> >>>>>> but
> >>>>>> ba> i m facing some issues.
> >>>>>>
> >>>>>> ba>   issue is...
> >>>>>>
> >>>>>> ba>   when i check out the code its directory structure looks like
> >>>> this...
> >>>>>>
> >>>>>> ba>   project-name
> >>>>>> ba>     |
> >>>>>> ba>      src -> java ->org -> apache ->cassandra
> >>>>>>
> >>>>>> ba>   but when i open any class its package statement looks like
> >> this...
> >>>>>>
> >>>>>> ba>    package org.apache.cassandra.auth; or any other package
> >>>>>>
> >>>>>> ba>   so here eclipse gives me error "*org.apache.cassandra.auth"
> >> does
> >>>> not
> >>>>>> match
> >>>>>> ba> the expected package "java.org.apache.cassandra.auth*" i tired a
> >> lot
> >>>>>> but i m
> >>>>>> ba> unable to resolve it.
> >>>>>>
> >>>>>> Your source folder should not be "src" but "src/java"
> >>>>>>
> >>>>>> You also need to add the "interface/thrift/gen-java" and "test/unit"
> >>>>>> source folders (only the former is necessary but the latter is good
> >> to
> >>>>>> have for code searches and to run the tests).
> >>>>>>
> >>>>>> Ted
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>
> >>
>
>

Re: need help regarding Cassandra Setup in eclipse

Posted by Roger Schildmeijer <sc...@gmail.com>.
On 18 apr 2010, at 09.53fm, j p wrote:

> I am a newbie in this domain so please can u describe the required steps.

1, start jconsole (or some other JMX client, http://java-source.net/open-source/jmx)
2, connect to your running CassandraDeamon
3, navigate to the MBeans tab
4, expand org.apache.cassandra.service.StorageService -> Operations
5, last in the operation list you'll find "loadSchemaFromXML", invoke that method

// Roger Schildmeijer

> 
> thanks in advance.
> 
> BR
> jp
> 
> 
> On Sun, Apr 18, 2010 at 2:56 AM, Jonathan Ellis <jb...@gmail.com> wrote:
> 
>> http://wiki.apache.org/cassandra/LiveSchemaUpdates
>> 
>> On Sat, Apr 17, 2010 at 4:51 PM, bilal ahmed <jp...@gmail.com>
>> wrote:
>>> gr8 its configured and up....but it does't load schema definitions giving
>>> following warning
>>> *
>>> *
>>> * "Couldn't detect any schema definitions in local storage. I hope you've
>>> got a plan."*
>>> *
>>> *
>>> BR
>>> jp
>>> 
>>> 
>>> *
>>> *
>>> * *
>>> *
>>> *
>>> *
>>> *
>>> On Sun, Apr 18, 2010 at 2:31 AM, Roger Schildmeijer
>>> <sc...@gmail.com>wrote:
>>> 
>>>> 
>>>> On 17 apr 2010, at 23.27em, bilal ahmed wrote:
>>>> 
>>>>> Thanks for your immediate help...after solving that issue an other
>>>> problem
>>>>> comes into "*org.apache.cassandra.avro*" package. to me i think all
>> files
>>>>> have't been commited  coz when i update this package i get only 5
>> files
>>>>> which are mentioned below and u know these files are using other
>> classes
>>>>> which have't been commited which is why i m getting compile
>>>>> time errors in this package.
>>>> 
>>>> I think you might have missed one step from the
>> RunningCassandraInEclipse
>>>> wiki page:
>>>> "The final step is to add the generated Java code to the Eclipse build
>>>> path. Expand and select interface/thrift/gen-java, right click -> "Build
>>>> Path" -> "Use as Source Folder". Do the same for interface/avro/gen-java
>> and
>>>> src/gen-java."
>>>> 
>>>>> 
>>>>> /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
>>>>> /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
>>>>> /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
>>>>> /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
>>>>> 
>>>> 
>> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
>>>>> 
>>>>> BR
>>>>> jp
>>>> 
>>>> // Roger Schildmeijer
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
>>>>> 
>>>>>> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <
>>>> jp.computer.geek@gmail.com>
>>>>>> wrote:
>>>>>> 
>>>>>> ba> hi
>>>>>> ba>   i have started playing with Cassandra from couple of  days. i
>>>>>> downloaded
>>>>>> ba> its binary and configured it successfully now i want to
>> contribute
>>>> in
>>>>>> this
>>>>>> ba> project but i m unable to configure
>>>>>> 
>>>>>> ba>   its source code in eclipse. i followed same steps which were
>>>> written
>>>>>> on
>>>>>> ba> this page  "
>>>> http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
>>>>>> but
>>>>>> ba> i m facing some issues.
>>>>>> 
>>>>>> ba>   issue is...
>>>>>> 
>>>>>> ba>   when i check out the code its directory structure looks like
>>>> this...
>>>>>> 
>>>>>> ba>   project-name
>>>>>> ba>     |
>>>>>> ba>      src -> java ->org -> apache ->cassandra
>>>>>> 
>>>>>> ba>   but when i open any class its package statement looks like
>> this...
>>>>>> 
>>>>>> ba>    package org.apache.cassandra.auth; or any other package
>>>>>> 
>>>>>> ba>   so here eclipse gives me error "*org.apache.cassandra.auth"
>> does
>>>> not
>>>>>> match
>>>>>> ba> the expected package "java.org.apache.cassandra.auth*" i tired a
>> lot
>>>>>> but i m
>>>>>> ba> unable to resolve it.
>>>>>> 
>>>>>> Your source folder should not be "src" but "src/java"
>>>>>> 
>>>>>> You also need to add the "interface/thrift/gen-java" and "test/unit"
>>>>>> source folders (only the former is necessary but the latter is good
>> to
>>>>>> have for code searches and to run the tests).
>>>>>> 
>>>>>> Ted
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>> 
>> 


Re: need help regarding Cassandra Setup in eclipse

Posted by j p <jp...@gmail.com>.
I am a newbie in this domain so please can u describe the required steps.

thanks in advance.

BR
jp


On Sun, Apr 18, 2010 at 2:56 AM, Jonathan Ellis <jb...@gmail.com> wrote:

> http://wiki.apache.org/cassandra/LiveSchemaUpdates
>
> On Sat, Apr 17, 2010 at 4:51 PM, bilal ahmed <jp...@gmail.com>
> wrote:
> > gr8 its configured and up....but it does't load schema definitions giving
> > following warning
> > *
> > *
> > * "Couldn't detect any schema definitions in local storage. I hope you've
> > got a plan."*
> > *
> > *
> > BR
> >  jp
> >
> >
> > *
> > *
> > * *
> > *
> > *
> > *
> > *
> > On Sun, Apr 18, 2010 at 2:31 AM, Roger Schildmeijer
> > <sc...@gmail.com>wrote:
> >
> >>
> >> On 17 apr 2010, at 23.27em, bilal ahmed wrote:
> >>
> >> > Thanks for your immediate help...after solving that issue an other
> >> problem
> >> > comes into "*org.apache.cassandra.avro*" package. to me i think all
> files
> >> > have't been commited  coz when i update this package i get only 5
> files
> >> > which are mentioned below and u know these files are using other
> classes
> >> > which have't been commited which is why i m getting compile
> >> > time errors in this package.
> >>
> >> I think you might have missed one step from the
> RunningCassandraInEclipse
> >> wiki page:
> >> "The final step is to add the generated Java code to the Eclipse build
> >> path. Expand and select interface/thrift/gen-java, right click -> "Build
> >> Path" -> "Use as Source Folder". Do the same for interface/avro/gen-java
> and
> >> src/gen-java."
> >>
> >> >
> >> > /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
> >> > /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
> >> > /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
> >> > /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
> >> >
> >>
> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
> >> >
> >> > BR
> >> > jp
> >>
> >> // Roger Schildmeijer
> >> >
> >> >
> >> >
> >> >
> >> > 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
> >> >
> >> >> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <
> >> jp.computer.geek@gmail.com>
> >> >> wrote:
> >> >>
> >> >> ba> hi
> >> >> ba>   i have started playing with Cassandra from couple of  days. i
> >> >> downloaded
> >> >> ba> its binary and configured it successfully now i want to
> contribute
> >> in
> >> >> this
> >> >> ba> project but i m unable to configure
> >> >>
> >> >> ba>   its source code in eclipse. i followed same steps which were
> >> written
> >> >> on
> >> >> ba> this page  "
> >> http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
> >> >> but
> >> >> ba> i m facing some issues.
> >> >>
> >> >> ba>   issue is...
> >> >>
> >> >> ba>   when i check out the code its directory structure looks like
> >> this...
> >> >>
> >> >> ba>   project-name
> >> >> ba>     |
> >> >> ba>      src -> java ->org -> apache ->cassandra
> >> >>
> >> >> ba>   but when i open any class its package statement looks like
> this...
> >> >>
> >> >> ba>    package org.apache.cassandra.auth; or any other package
> >> >>
> >> >> ba>   so here eclipse gives me error "*org.apache.cassandra.auth"
> does
> >> not
> >> >> match
> >> >> ba> the expected package "java.org.apache.cassandra.auth*" i tired a
> lot
> >> >> but i m
> >> >> ba> unable to resolve it.
> >> >>
> >> >> Your source folder should not be "src" but "src/java"
> >> >>
> >> >> You also need to add the "interface/thrift/gen-java" and "test/unit"
> >> >> source folders (only the former is necessary but the latter is good
> to
> >> >> have for code searches and to run the tests).
> >> >>
> >> >> Ted
> >> >>
> >> >>
> >>
> >>
> >
>

Re: need help regarding Cassandra Setup in eclipse

Posted by Jonathan Ellis <jb...@gmail.com>.
http://wiki.apache.org/cassandra/LiveSchemaUpdates

On Sat, Apr 17, 2010 at 4:51 PM, bilal ahmed <jp...@gmail.com> wrote:
> gr8 its configured and up....but it does't load schema definitions giving
> following warning
> *
> *
> * "Couldn't detect any schema definitions in local storage. I hope you've
> got a plan."*
> *
> *
> BR
>  jp
>
>
> *
> *
> * *
> *
> *
> *
> *
> On Sun, Apr 18, 2010 at 2:31 AM, Roger Schildmeijer
> <sc...@gmail.com>wrote:
>
>>
>> On 17 apr 2010, at 23.27em, bilal ahmed wrote:
>>
>> > Thanks for your immediate help...after solving that issue an other
>> problem
>> > comes into "*org.apache.cassandra.avro*" package. to me i think all files
>> > have't been commited  coz when i update this package i get only 5 files
>> > which are mentioned below and u know these files are using other classes
>> > which have't been commited which is why i m getting compile
>> > time errors in this package.
>>
>> I think you might have missed one step from the RunningCassandraInEclipse
>> wiki page:
>> "The final step is to add the generated Java code to the Eclipse build
>> path. Expand and select interface/thrift/gen-java, right click -> "Build
>> Path" -> "Use as Source Folder". Do the same for interface/avro/gen-java and
>> src/gen-java."
>>
>> >
>> > /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
>> > /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
>> > /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
>> > /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
>> >
>> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
>> >
>> > BR
>> > jp
>>
>> // Roger Schildmeijer
>> >
>> >
>> >
>> >
>> > 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
>> >
>> >> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <
>> jp.computer.geek@gmail.com>
>> >> wrote:
>> >>
>> >> ba> hi
>> >> ba>   i have started playing with Cassandra from couple of  days. i
>> >> downloaded
>> >> ba> its binary and configured it successfully now i want to contribute
>> in
>> >> this
>> >> ba> project but i m unable to configure
>> >>
>> >> ba>   its source code in eclipse. i followed same steps which were
>> written
>> >> on
>> >> ba> this page  "
>> http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
>> >> but
>> >> ba> i m facing some issues.
>> >>
>> >> ba>   issue is...
>> >>
>> >> ba>   when i check out the code its directory structure looks like
>> this...
>> >>
>> >> ba>   project-name
>> >> ba>     |
>> >> ba>      src -> java ->org -> apache ->cassandra
>> >>
>> >> ba>   but when i open any class its package statement looks like this...
>> >>
>> >> ba>    package org.apache.cassandra.auth; or any other package
>> >>
>> >> ba>   so here eclipse gives me error "*org.apache.cassandra.auth" does
>> not
>> >> match
>> >> ba> the expected package "java.org.apache.cassandra.auth*" i tired a lot
>> >> but i m
>> >> ba> unable to resolve it.
>> >>
>> >> Your source folder should not be "src" but "src/java"
>> >>
>> >> You also need to add the "interface/thrift/gen-java" and "test/unit"
>> >> source folders (only the former is necessary but the latter is good to
>> >> have for code searches and to run the tests).
>> >>
>> >> Ted
>> >>
>> >>
>>
>>
>

Re: need help regarding Cassandra Setup in eclipse

Posted by bilal ahmed <jp...@gmail.com>.
gr8 its configured and up....but it does't load schema definitions giving
following warning
*
*
* "Couldn't detect any schema definitions in local storage. I hope you've
got a plan."*
*
*
BR
 jp


*
*
* *
*
*
*
*
On Sun, Apr 18, 2010 at 2:31 AM, Roger Schildmeijer
<sc...@gmail.com>wrote:

>
> On 17 apr 2010, at 23.27em, bilal ahmed wrote:
>
> > Thanks for your immediate help...after solving that issue an other
> problem
> > comes into "*org.apache.cassandra.avro*" package. to me i think all files
> > have't been commited  coz when i update this package i get only 5 files
> > which are mentioned below and u know these files are using other classes
> > which have't been commited which is why i m getting compile
> > time errors in this package.
>
> I think you might have missed one step from the RunningCassandraInEclipse
> wiki page:
> "The final step is to add the generated Java code to the Eclipse build
> path. Expand and select interface/thrift/gen-java, right click -> "Build
> Path" -> "Use as Source Folder". Do the same for interface/avro/gen-java and
> src/gen-java."
>
> >
> > /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
> > /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
> > /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
> > /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
> >
> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
> >
> > BR
> > jp
>
> // Roger Schildmeijer
> >
> >
> >
> >
> > 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
> >
> >> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <
> jp.computer.geek@gmail.com>
> >> wrote:
> >>
> >> ba> hi
> >> ba>   i have started playing with Cassandra from couple of  days. i
> >> downloaded
> >> ba> its binary and configured it successfully now i want to contribute
> in
> >> this
> >> ba> project but i m unable to configure
> >>
> >> ba>   its source code in eclipse. i followed same steps which were
> written
> >> on
> >> ba> this page  "
> http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
> >> but
> >> ba> i m facing some issues.
> >>
> >> ba>   issue is...
> >>
> >> ba>   when i check out the code its directory structure looks like
> this...
> >>
> >> ba>   project-name
> >> ba>     |
> >> ba>      src -> java ->org -> apache ->cassandra
> >>
> >> ba>   but when i open any class its package statement looks like this...
> >>
> >> ba>    package org.apache.cassandra.auth; or any other package
> >>
> >> ba>   so here eclipse gives me error "*org.apache.cassandra.auth" does
> not
> >> match
> >> ba> the expected package "java.org.apache.cassandra.auth*" i tired a lot
> >> but i m
> >> ba> unable to resolve it.
> >>
> >> Your source folder should not be "src" but "src/java"
> >>
> >> You also need to add the "interface/thrift/gen-java" and "test/unit"
> >> source folders (only the former is necessary but the latter is good to
> >> have for code searches and to run the tests).
> >>
> >> Ted
> >>
> >>
>
>

Re: need help regarding Cassandra Setup in eclipse

Posted by Roger Schildmeijer <sc...@gmail.com>.
On 17 apr 2010, at 23.27em, bilal ahmed wrote:

> Thanks for your immediate help...after solving that issue an other problem
> comes into "*org.apache.cassandra.avro*" package. to me i think all files
> have't been commited  coz when i update this package i get only 5 files
> which are mentioned below and u know these files are using other classes
> which have't been commited which is why i m getting compile
> time errors in this package.

I think you might have missed one step from the RunningCassandraInEclipse wiki page:
"The final step is to add the generated Java code to the Eclipse build path. Expand and select interface/thrift/gen-java, right click -> "Build Path" -> "Use as Source Folder". Do the same for interface/avro/gen-java and src/gen-java." 

> 
> /cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
> /cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
> /cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
> /cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
> /cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java
> 
> BR
> jp

// Roger Schildmeijer
> 
> 
> 
> 
> 2010/4/16 Ted Zlatanov <tz...@lifelogs.com>
> 
>> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <jp...@gmail.com>
>> wrote:
>> 
>> ba> hi
>> ba>   i have started playing with Cassandra from couple of  days. i
>> downloaded
>> ba> its binary and configured it successfully now i want to contribute in
>> this
>> ba> project but i m unable to configure
>> 
>> ba>   its source code in eclipse. i followed same steps which were written
>> on
>> ba> this page  "http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
>> but
>> ba> i m facing some issues.
>> 
>> ba>   issue is...
>> 
>> ba>   when i check out the code its directory structure looks like this...
>> 
>> ba>   project-name
>> ba>     |
>> ba>      src -> java ->org -> apache ->cassandra
>> 
>> ba>   but when i open any class its package statement looks like this...
>> 
>> ba>    package org.apache.cassandra.auth; or any other package
>> 
>> ba>   so here eclipse gives me error "*org.apache.cassandra.auth" does not
>> match
>> ba> the expected package "java.org.apache.cassandra.auth*" i tired a lot
>> but i m
>> ba> unable to resolve it.
>> 
>> Your source folder should not be "src" but "src/java"
>> 
>> You also need to add the "interface/thrift/gen-java" and "test/unit"
>> source folders (only the former is necessary but the latter is good to
>> have for code searches and to run the tests).
>> 
>> Ted
>> 
>> 


Re: need help regarding Cassandra Setup in eclipse

Posted by bilal ahmed <jp...@gmail.com>.
Thanks for your immediate help...after solving that issue an other problem
comes into "*org.apache.cassandra.avro*" package. to me i think all files
have't been commited  coz when i update this package i get only 5 files
which are mentioned below and u know these files are using other classes
which have't been commited which is why i m getting compile
time errors in this package.

/cassandra/src/java/org/apache/cassandra/avro/AvroRecordFactory.java
/cassandra/src/java/org/apache/cassandra/avro/AvroValidation.java
/cassandra/src/java/org/apache/cassandra/avro/CassandraDaemon.java
/cassandra/src/java/org/apache/cassandra/avro/CassandraServer.java
/cassandra/src/java/org/apache/cassandra/avro/KeyspaceNotDefinedException.java

BR
 jp




2010/4/16 Ted Zlatanov <tz...@lifelogs.com>

> On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <jp...@gmail.com>
> wrote:
>
> ba> hi
> ba>   i have started playing with Cassandra from couple of  days. i
> downloaded
> ba> its binary and configured it successfully now i want to contribute in
> this
> ba> project but i m unable to configure
>
> ba>   its source code in eclipse. i followed same steps which were written
> on
> ba> this page  "http://wiki.apache.org/cassandra/RunningCassandraInEclipse"
> but
> ba> i m facing some issues.
>
> ba>   issue is...
>
> ba>   when i check out the code its directory structure looks like this...
>
> ba>   project-name
> ba>     |
> ba>      src -> java ->org -> apache ->cassandra
>
> ba>   but when i open any class its package statement looks like this...
>
> ba>    package org.apache.cassandra.auth; or any other package
>
> ba>   so here eclipse gives me error "*org.apache.cassandra.auth" does not
> match
> ba> the expected package "java.org.apache.cassandra.auth*" i tired a lot
> but i m
> ba> unable to resolve it.
>
> Your source folder should not be "src" but "src/java"
>
> You also need to add the "interface/thrift/gen-java" and "test/unit"
> source folders (only the former is necessary but the latter is good to
> have for code searches and to run the tests).
>
> Ted
>
>

Re: need help regarding Cassandra Setup in eclipse

Posted by Ted Zlatanov <tz...@lifelogs.com>.
On Fri, 16 Apr 2010 18:17:48 +0500 bilal ahmed <jp...@gmail.com> wrote: 

ba> hi
ba>   i have started playing with Cassandra from couple of  days. i downloaded
ba> its binary and configured it successfully now i want to contribute in this
ba> project but i m unable to configure

ba>   its source code in eclipse. i followed same steps which were written on
ba> this page  "http://wiki.apache.org/cassandra/RunningCassandraInEclipse" but
ba> i m facing some issues.

ba>   issue is...

ba>   when i check out the code its directory structure looks like this...

ba>   project-name
ba>     |
ba>      src -> java ->org -> apache ->cassandra

ba>   but when i open any class its package statement looks like this...

ba>    package org.apache.cassandra.auth; or any other package

ba>   so here eclipse gives me error "*org.apache.cassandra.auth" does not match
ba> the expected package "java.org.apache.cassandra.auth*" i tired a lot but i m
ba> unable to resolve it.

Your source folder should not be "src" but "src/java"

You also need to add the "interface/thrift/gen-java" and "test/unit"
source folders (only the former is necessary but the latter is good to
have for code searches and to run the tests).

Ted