incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maki Watanabe <watanabe.m...@gmail.com>
Subject Re: problem in starting the cassandra single node setup
Date Tue, 31 May 2011 05:41:01 GMT
2011/5/31 Amrita Jayakumar <amritajayakumarcp@gmail.com>:
> Thank You so much Maki :) Its working now... I dont know what went wrong
> yesterday...
>
> BTW bin/cassandra-cli --host localhost is to read and write data using the
> command line client right???

Yes.

> So what if i need to load data from a file into cassandra???
>
> i.e.i have a log file with so many lines... lines may be in the format
> <sessionid> <key> <value>
>
> so how can i load data from this log file into cassandra?
>
> Thanks and Regards,
> Amrita

You can write/read on cassandra from misc. programming language.
- Java
- Python
- Ruby
etc.
Refer to http://wiki.apache.org/cassandra/ClientOptions for more details.
Of course you need to design and define your database schema before
writing code.
You should better to learn about Cassandra concept and architecture including:
  - Keyspace
  - Column Family
  - Replication Factor
  - Consistency Level
  - Distributed Delete
  - Compaction
before going farther.

maki



>
> On Tue, May 31, 2011 at 10:42 AM, Maki Watanabe <watanabe.maki@gmail.com>
> wrote:
>>
>> You can just start
>> bin/cassandra -f
>> .
>>
>> Readme.txt  says:
>> > Now that we're ready, let's start it up!
>> >
>> >   * bin/cassandra -f
>> >
>> > Running the startup script with the -f argument will cause Cassandra to
>> > remain in the foreground and log to standard out.
>>
>> So, you need another terminal to run cassandra-cli. Open another
>> terminal window and then:
>>
>> Readme.txt says:
>> > Now let's try to read and write some data using the command line client.
>> >
>> >  * bin/cassandra-cli --host localhost
>> >
>> > The command line client is interactive so if everything worked you
>> > should
>> > be sitting in front of a prompt...
>> >
>> > Connected to: "Test Cluster" on localhost/9160
>> > Welcome to cassandra CLI.
>>
>> You will see the cassandra-cli pormpt on your terminal like:
>>
>>  Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
>>  [default@unknown]
>>
>>
>> maki
>>
>>
>>
>> 2011/5/31 Amrita Jayakumar <amritajayakumarcp@gmail.com>:
>> > Hi Maki,
>> >
>> > I am trying to install apache-cassandra-0.7.6-2.
>> > Here are the steps i followed as per the readme file.
>> >
>> >    tar -zxvf apache-cassandra-0.7.6-2.tar.gz
>> >    cd apache-cassandra-0.7.6-2
>> >    sudo mkdir -p /var/log/cassandra
>> >    sudo chown -R `whoami` /var/log/cassandra
>> >    sudo mkdir -p /var/lib/cassandra
>> >    sudo chown -R `whoami` /var/lib/cassandra
>> >
>> > Now is there any configuration settings to be made in
>> > apache-cassandra-0.7.6-2/conf/ before i fire
>> >
>> >    bin/cassandra -f ???
>> >
>> > If so then which all are the that i should change???
>> >
>> > Thanks and Regards,
>> > Amrita
>> >
>> >
>> > On Tue, May 31, 2011 at 10:00 AM, Maki Watanabe
>> > <watanabe.maki@gmail.com>
>> > wrote:
>> >>
>> >> Did you read Jonathan's reply?
>> >> If you can't understand what README says, please let us know where you
>> >> are stack on.
>> >>
>> >> maki
>> >>
>> >>
>> >> 2011/5/31 Amrita Jayakumar <amritajayakumarcp@gmail.com>:
>> >> > can anyone help me how to start with cassandra??? starting from the
>> >> > basics???
>> >> >
>> >> > Thanks and Regards,
>> >> > Amrita
>> >> >
>> >> > On Mon, May 30, 2011 at 6:41 PM, Jonathan Ellis <jbellis@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Here's what README says:
>> >> >>
>> >> >>  * bin/cassandra -f
>> >> >>
>> >> >> Running the startup script with the -f argument will cause Cassandra
>> >> >> to
>> >> >> remain in the foreground and log to standard out.
>> >> >>
>> >> >> Now let's try to read and write some data using the command line
>> >> >> client.
>> >> >>
>> >> >>  * bin/cassandra-cli --host localhost
>> >> >>
>> >> >> The command line client is interactive so if everything worked
you
>> >> >> should
>> >> >> be sitting in front of a prompt...
>> >> >>
>> >> >>  Connected to: "Test Cluster" on localhost/9160
>> >> >>  Welcome to cassandra CLI.
>> >> >>
>> >> >>  Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit.
>> >> >>  [default@unknown]
>> >> >>
>> >> >>
>> >> >> On Mon, May 30, 2011 at 4:09 AM, Amrita Jayakumar
>> >> >> <amritajayakumarcp@gmail.com> wrote:
>> >> >> > Marcus,
>> >> >> >             Can u please tell me how to do that???
I was just
>> >> >> > following
>> >> >> > the
>> >> >> > instructions in the README file that came with the package.
>> >> >> >
>> >> >> > Thanks and Regards,
>> >> >> > Amrita
>> >> >> >
>> >> >> > On Mon, May 30, 2011 at 2:36 PM, Marcus Bointon
>> >> >> > <marcus@synchromedia.co.uk>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> On 30 May 2011, at 10:59, Amrita Jayakumar wrote:
>> >> >> >>
>> >> >> >> > I am new to cassandra. I am trying to start the Cassandra
>> >> >> >> > single
>> >> >> >> > node
>> >> >> >> > setup using the command
>> >> >> >> > bin/cassandra -f. But there is no response from the
prompt..
>> >> >> >> > this
>> >> >> >> > is
>> >> >> >> > what it shows
>> >> >> >>
>> >> >> >> I'm new to this too, but I think you're looking at the
wrong
>> >> >> >> thing.
>> >> >> >> cassandra -f is not an interactive mode, it just runs
the server
>> >> >> >> in
>> >> >> >> the
>> >> >> >> foreground and shows you log output, which is useful for
>> >> >> >> debugging
>> >> >> >> server
>> >> >> >> config. The output you have looks like it's working fine.
You
>> >> >> >> need
>> >> >> >> to
>> >> >> >> start
>> >> >> >> another terminal and connect to it from a cassandra client.
>> >> >> >>
>> >> >> >> Marcus
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Jonathan Ellis
>> >> >> Project Chair, Apache Cassandra
>> >> >> co-founder of DataStax, the source for professional Cassandra
>> >> >> support
>> >> >> http://www.datastax.com
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> w3m
>> >
>> >
>>
>>
>>
>> --
>> w3m
>
>



-- 
w3m

Mime
View raw message