You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by raymond cayanan <an...@gmail.com> on 2009/11/04 10:31:07 UTC

Experiencing Errors

Hi,

How can i remove cassandra and start all over again? (I am using UBUNTU)

I was following
thishttp://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
then I was not able to run "cassandra_helper cassandra".

I always get command not found.   I'm a total newbie hope you guys
understand. Thanks


Regards,


Raymond

Re: Experiencing Errors

Posted by Denny Abraham <de...@gmail.com>.
Hi Raymond,

I have not used cassandra as a gem, but general practice is for a ruby
gem to clean up any binaries it brings with it. Does `sudo gem
uninstall cassandra` work (or at least return an error message)?

denny

On Wed, Nov 4, 2009 at 3:31 AM, raymond cayanan <an...@gmail.com> wrote:
> Hi,
>
> How can i remove cassandra and start all over again? (I am using UBUNTU)
>
> I was following
> thishttp://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
> then I was not able to run "cassandra_helper cassandra".
>
> I always get command not found.   I'm a total newbie hope you guys
> understand. Thanks
>
>
> Regards,
>
>
> Raymond
>

Re: Experiencing Errors

Posted by Evan Weaver <ew...@gmail.com>.
Why weren't you able to run it? What output did you get?

Like Curt says, you can just blow away $HOME/cassandra.

Evan

On Wed, Nov 4, 2009 at 2:13 AM, Curt Micol <as...@gmail.com> wrote:
> On Wed, Nov 4, 2009 at 4:31 AM, raymond cayanan <an...@gmail.com> wrote:
>> Hi,
>>
>> How can i remove cassandra and start all over again? (I am using UBUNTU)
>>
>> I was following this
>> http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
>> then I was not able to run "cassandra_helper cassandra".
>>
>> I always get command not found.   I'm a total newbie hope you guys
>> understand. Thanks
>
> Did you install the gem? Did you receive any errors? The ruby gem puts
> the source of cassandra into $HOME/cassandra/server. Is there anything
> there?
>
> Otherwise, just do it all manually by grabbing the source and 'ant
> test build' (of course that's assuming your Java environment is
> setup).
>
> Hope that helps,
>
> --
> # Curt Micol
>



-- 
Evan Weaver

Re: Experiencing Errors

Posted by Evan Weaver <ew...@gmail.com>.
Is /var/bin/ in your path? cassandra_helper should be in there.

You never got as far as actually installing cassandra, because the gem
binary itself is not available.

Evan

On Wed, Nov 4, 2009 at 10:45 PM, Curt Micol <as...@gmail.com> wrote:
> On Thu, Nov 5, 2009 at 1:28 AM, raymond cayanan <an...@gmail.com> wrote:
>> Thanks for this one Curt.  I did all of them but
>>
>> somehow gems is really killing me
>>
>> here is an output
>>
>> root@raymond-desktop:~/src# gem list
>>
>> *** LOCAL GEMS ***
>>
>> actionmailer (2.3.4, 2.3.3)
>> actionpack (2.3.4, 2.3.3)
>> activerecord (2.3.4, 2.3.3)
>> activeresource (2.3.4, 2.3.3)
>> activesupport (2.3.4, 2.3.3)
>> cassandra (0.5.6.2)
>> json (1.1.9)
>> rack (1.0.1, 1.0.0)
>> rake (0.8.7)
>> rubygems-update (1.3.5)
>> thrift (0.0.810255.1)
>> root@raymond-desktop:~/src# cassandra_helper cassandra
>> bash: cassandra_helper: command not found
>> root@raymond-desktop:~/src#
>>
>> I bet it is installed properly like what you've said.
>
> Ok, but we are missing one thing here. The gem is installed, and
> should work (at least from the output). 'cassandra_helper' is just
> that, a helper that points to the Rakefile.  So ignore it, and follow
> those steps I posted for grabbing your own copy, start up Cassandra
> and start using the gem like normal.
>
> Basically at this point, see if things work without worrying about
> 'cassandra_helper'. As it is pretty much a wrapper script for those
> steps.
>
> --
> # Curt Micol
>



-- 
Evan Weaver

Re: Experiencing Errors

Posted by Curt Micol <as...@gmail.com>.
On Thu, Nov 5, 2009 at 1:28 AM, raymond cayanan <an...@gmail.com> wrote:
> Thanks for this one Curt.  I did all of them but
>
> somehow gems is really killing me
>
> here is an output
>
> root@raymond-desktop:~/src# gem list
>
> *** LOCAL GEMS ***
>
> actionmailer (2.3.4, 2.3.3)
> actionpack (2.3.4, 2.3.3)
> activerecord (2.3.4, 2.3.3)
> activeresource (2.3.4, 2.3.3)
> activesupport (2.3.4, 2.3.3)
> cassandra (0.5.6.2)
> json (1.1.9)
> rack (1.0.1, 1.0.0)
> rake (0.8.7)
> rubygems-update (1.3.5)
> thrift (0.0.810255.1)
> root@raymond-desktop:~/src# cassandra_helper cassandra
> bash: cassandra_helper: command not found
> root@raymond-desktop:~/src#
>
> I bet it is installed properly like what you've said.

Ok, but we are missing one thing here. The gem is installed, and
should work (at least from the output). 'cassandra_helper' is just
that, a helper that points to the Rakefile.  So ignore it, and follow
those steps I posted for grabbing your own copy, start up Cassandra
and start using the gem like normal.

Basically at this point, see if things work without worrying about
'cassandra_helper'. As it is pretty much a wrapper script for those
steps.

-- 
# Curt Micol

Re: Experiencing Errors

Posted by raymond cayanan <an...@gmail.com>.
Thanks for this one Curt.  I did all of them but

somehow gems is really killing me

here is an output

*root@raymond-desktop:~/src# gem list

*** LOCAL GEMS ***

actionmailer (2.3.4, 2.3.3)
actionpack (2.3.4, 2.3.3)
activerecord (2.3.4, 2.3.3)
activeresource (2.3.4, 2.3.3)
activesupport (2.3.4, 2.3.3)
cassandra (0.5.6.2)
json (1.1.9)
rack (1.0.1, 1.0.0)
rake (0.8.7)
rubygems-update (1.3.5)
thrift (0.0.810255.1)
root@raymond-desktop:~/src# cassandra_helper cassandra
bash: cassandra_helper: command not found
root@raymond-desktop:~/src# *

I bet it is installed properly like what you've said.


On Thu, Nov 5, 2009 at 12:28 PM, Curt Micol <as...@gmail.com> wrote:

> On Wed, Nov 4, 2009 at 10:37 PM, raymond cayanan <an...@gmail.com>
> wrote:
> > This is the output:
> > root@raymond-desktop:/home# cassandra_helper cassandra
> > bash: cassandra_helper: command not found
> >
> > This is the location of my gems:
> >
> > root@raymond-desktop:/var/lib/gems/1.8/gems# ls
> > actionmailer-2.3.3  activeresource-2.3.3  rack-1.0.0
> > actionmailer-2.3.4  activeresource-2.3.4  rack-1.0.1
> > actionpack-2.3.3    activesupport-2.3.3   rake-0.8.7
> > actionpack-2.3.4    activesupport-2.3.4   rubygems-update-1.3.5
> > activerecord-2.3.3  cassandra-0.5.6.2     thrift-0.0.810255.1
> > activerecord-2.3.4  json-1.1.9
> > root@raymond-desktop:/var/lib/gems/1.8/gems#
>
> Raymond, try running the following:
>
> ls /usr/local/bin
>
> whereis cassandra_helper
>
> I don't have time right now to look at the code to see where it's
> installed. Potentially it's in the $HOME/cassandra directory (look for
> it there also).
>
> If none of that works and you want to get Cassandra up and running, I
> recommend the following (and the diagnosing the gem issue later):
>
> mkdir $HOME/src; cd $HOME/src
> svn co http://svn.apache.org/repos/asf/incubator/cassandra/trunkcassandra-trunk
> cd cassandra-trunk
> ant test
> ant
> ./bin/cassandra -f
>
> That will get a server running for you. From there you can use the gem
> install to play with the server (as it does look like it's installed
> properly from your output).
>
> Hope that helps.
>
> --
> # Curt Micol
>

Re: Experiencing Errors

Posted by Curt Micol <as...@gmail.com>.
On Wed, Nov 4, 2009 at 10:37 PM, raymond cayanan <an...@gmail.com> wrote:
> This is the output:
> root@raymond-desktop:/home# cassandra_helper cassandra
> bash: cassandra_helper: command not found
>
> This is the location of my gems:
>
> root@raymond-desktop:/var/lib/gems/1.8/gems# ls
> actionmailer-2.3.3  activeresource-2.3.3  rack-1.0.0
> actionmailer-2.3.4  activeresource-2.3.4  rack-1.0.1
> actionpack-2.3.3    activesupport-2.3.3   rake-0.8.7
> actionpack-2.3.4    activesupport-2.3.4   rubygems-update-1.3.5
> activerecord-2.3.3  cassandra-0.5.6.2     thrift-0.0.810255.1
> activerecord-2.3.4  json-1.1.9
> root@raymond-desktop:/var/lib/gems/1.8/gems#

Raymond, try running the following:

ls /usr/local/bin

whereis cassandra_helper

I don't have time right now to look at the code to see where it's
installed. Potentially it's in the $HOME/cassandra directory (look for
it there also).

If none of that works and you want to get Cassandra up and running, I
recommend the following (and the diagnosing the gem issue later):

mkdir $HOME/src; cd $HOME/src
svn co http://svn.apache.org/repos/asf/incubator/cassandra/trunk cassandra-trunk
cd cassandra-trunk
ant test
ant
./bin/cassandra -f

That will get a server running for you. From there you can use the gem
install to play with the server (as it does look like it's installed
properly from your output).

Hope that helps.

-- 
# Curt Micol

Re: Experiencing Errors

Posted by raymond cayanan <an...@gmail.com>.
*This is the output:*
root@raymond-desktop:/home# cassandra_helper cassandra
bash: cassandra_helper: command not found

*This is the location of my gems:*

root@raymond-desktop:/var/lib/gems/1.8/gems# ls
actionmailer-2.3.3  activeresource-2.3.3  rack-1.0.0
actionmailer-2.3.4  activeresource-2.3.4  rack-1.0.1
actionpack-2.3.3    activesupport-2.3.3   rake-0.8.7
actionpack-2.3.4    activesupport-2.3.4   rubygems-update-1.3.5
activerecord-2.3.3  cassandra-0.5.6.2     thrift-0.0.810255.1
activerecord-2.3.4  json-1.1.9
root@raymond-desktop:/var/lib/gems/1.8/gems#



On Thu, Nov 5, 2009 at 11:18 AM, Evan Weaver <ew...@gmail.com> wrote:

> What's the full output of:
>
> cassandra_helper cassandra
>
> ?
>
> Evan
>
> On Wed, Nov 4, 2009 at 6:01 PM, raymond cayanan <an...@gmail.com>
> wrote:
> > Hi Curt,
> >
> > I did install gem, cassandra is in $HOME/cassandra/server too.
> > still I get the 'command not found' message
> >
> > Again I also ant test build it.
> >
> >
> >
> >
> >
> > On Wed, Nov 4, 2009 at 6:13 PM, Curt Micol <as...@gmail.com> wrote:
> >>
> >> On Wed, Nov 4, 2009 at 4:31 AM, raymond cayanan <an...@gmail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > How can i remove cassandra and start all over again? (I am using
> UBUNTU)
> >> >
> >> > I was following this
> >> >
> >> >
> http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
> >> > then I was not able to run "cassandra_helper cassandra".
> >> >
> >> > I always get command not found.   I'm a total newbie hope you guys
> >> > understand. Thanks
> >>
> >> Did you install the gem? Did you receive any errors? The ruby gem puts
> >> the source of cassandra into $HOME/cassandra/server. Is there anything
> >> there?
> >>
> >> Otherwise, just do it all manually by grabbing the source and 'ant
> >> test build' (of course that's assuming your Java environment is
> >> setup).
> >>
> >> Hope that helps,
> >>
> >> --
> >> # Curt Micol
> >
> >
>
>
>
> --
> Evan Weaver
>

Re: Experiencing Errors

Posted by Evan Weaver <ew...@gmail.com>.
What's the full output of:

cassandra_helper cassandra

?

Evan

On Wed, Nov 4, 2009 at 6:01 PM, raymond cayanan <an...@gmail.com> wrote:
> Hi Curt,
>
> I did install gem, cassandra is in $HOME/cassandra/server too.
> still I get the 'command not found' message
>
> Again I also ant test build it.
>
>
>
>
>
> On Wed, Nov 4, 2009 at 6:13 PM, Curt Micol <as...@gmail.com> wrote:
>>
>> On Wed, Nov 4, 2009 at 4:31 AM, raymond cayanan <an...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > How can i remove cassandra and start all over again? (I am using UBUNTU)
>> >
>> > I was following this
>> >
>> > http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
>> > then I was not able to run "cassandra_helper cassandra".
>> >
>> > I always get command not found.   I'm a total newbie hope you guys
>> > understand. Thanks
>>
>> Did you install the gem? Did you receive any errors? The ruby gem puts
>> the source of cassandra into $HOME/cassandra/server. Is there anything
>> there?
>>
>> Otherwise, just do it all manually by grabbing the source and 'ant
>> test build' (of course that's assuming your Java environment is
>> setup).
>>
>> Hope that helps,
>>
>> --
>> # Curt Micol
>
>



-- 
Evan Weaver

Re: Experiencing Errors

Posted by raymond cayanan <an...@gmail.com>.
Hi Curt,

I did install gem, cassandra is in $HOME/cassandra/server too.
still I get the 'command not found' message

Again I also ant test build it.





On Wed, Nov 4, 2009 at 6:13 PM, Curt Micol <as...@gmail.com> wrote:

> On Wed, Nov 4, 2009 at 4:31 AM, raymond cayanan <an...@gmail.com>
> wrote:
> > Hi,
> >
> > How can i remove cassandra and start all over again? (I am using UBUNTU)
> >
> > I was following this
> >
> http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
> > then I was not able to run "cassandra_helper cassandra".
> >
> > I always get command not found.   I'm a total newbie hope you guys
> > understand. Thanks
>
> Did you install the gem? Did you receive any errors? The ruby gem puts
> the source of cassandra into $HOME/cassandra/server. Is there anything
> there?
>
> Otherwise, just do it all manually by grabbing the source and 'ant
> test build' (of course that's assuming your Java environment is
> setup).
>
> Hope that helps,
>
> --
> # Curt Micol
>

Re: Experiencing Errors

Posted by Curt Micol <as...@gmail.com>.
On Wed, Nov 4, 2009 at 4:31 AM, raymond cayanan <an...@gmail.com> wrote:
> Hi,
>
> How can i remove cassandra and start all over again? (I am using UBUNTU)
>
> I was following this
> http://blog.evanweaver.com/articles/2009/07/06/up-and-running-with-cassandra/
> then I was not able to run "cassandra_helper cassandra".
>
> I always get command not found.   I'm a total newbie hope you guys
> understand. Thanks

Did you install the gem? Did you receive any errors? The ruby gem puts
the source of cassandra into $HOME/cassandra/server. Is there anything
there?

Otherwise, just do it all manually by grabbing the source and 'ant
test build' (of course that's assuming your Java environment is
setup).

Hope that helps,

-- 
# Curt Micol