Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44E334957 for ; Tue, 31 May 2011 05:41:35 +0000 (UTC) Received: (qmail 32345 invoked by uid 500); 31 May 2011 05:41:32 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 32233 invoked by uid 500); 31 May 2011 05:41:30 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 32114 invoked by uid 99); 31 May 2011 05:41:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 05:41:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of watanabe.maki@gmail.com designates 209.85.214.44 as permitted sender) Received: from [209.85.214.44] (HELO mail-bw0-f44.google.com) (209.85.214.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 May 2011 05:41:22 +0000 Received: by bwz13 with SMTP id 13so3873317bwz.31 for ; Mon, 30 May 2011 22:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=MuFa9jx0qVdVYXuU1cUu0sULvsaQiP9M8/1RDq5hEm4=; b=wKzwt/MjAMkkJHWlyQmog6LrJ6X14SxZfv2yZ5HDunJlex0ItXSYWez14Z4iEN2n1K nZYaVOgPPmHdL+mFpFMOBSl8xcVSDbPF5ujc4mRAXJ983Uf6L4xk2lw/5k545T4NmzFX 5mHrcuOwcJ+QL8lWyfUXG0dMlSWbSsuhOxDTs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=i6kyMjQt+AVOHHxlanQubOtqr4tp9X0cCyGCvkebHNTiaE36DYWO0Gvt0ZPs/0EXj+ ROgNzVXSXbVytwzeDsuQcMT2xn/4kGfi0UJ2zEuS380DGQcCRd3VxsJ+0uOn2II8L+UG oNPOd3WyZQ6buHBm9g/u9426PS4+CxazFqmaE= MIME-Version: 1.0 Received: by 10.204.8.72 with SMTP id g8mr3177833bkg.103.1306820462166; Mon, 30 May 2011 22:41:02 -0700 (PDT) Received: by 10.204.79.219 with HTTP; Mon, 30 May 2011 22:41:01 -0700 (PDT) In-Reply-To: References: <66F677D9-3004-4A5A-BBD6-C2A89A2AF6A4@synchromedia.co.uk> Date: Tue, 31 May 2011 14:41:01 +0900 Message-ID: Subject: Re: problem in starting the cassandra single node setup From: Maki Watanabe To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/5/31 Amrita Jayakumar : > 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 th= e > 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 > > > 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 includi= ng: - 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 > wrote: >> >> You can just start >> bin/cassandra -f >> . >> >> Readme.txt =A0says: >> > Now that we're ready, let's start it up! >> > >> > =A0 * bin/cassandra -f >> > >> > Running the startup script with the -f argument will cause Cassandra t= o >> > 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 clien= t. >> > >> > =A0* 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: >> >> =A0Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit. >> =A0[default@unknown] >> >> >> maki >> >> >> >> 2011/5/31 Amrita Jayakumar : >> > Hi Maki, >> > >> > I am trying to install apache-cassandra-0.7.6-2. >> > Here are the steps i followed as per the readme file. >> > >> > =A0=A0 tar -zxvf apache-cassandra-0.7.6-2.tar.gz >> > =A0=A0 cd apache-cassandra-0.7.6-2 >> > =A0=A0 sudo mkdir -p /var/log/cassandra >> > =A0=A0 sudo chown -R `whoami` /var/log/cassandra >> > =A0=A0 sudo mkdir -p /var/lib/cassandra >> > =A0=A0 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 >> > >> > =A0=A0 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 >> > >> > wrote: >> >> >> >> Did you read Jonathan's reply? >> >> If you can't understand what README says, please let us know where yo= u >> >> are stack on. >> >> >> >> maki >> >> >> >> >> >> 2011/5/31 Amrita Jayakumar : >> >> > 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 >> >> > wrote: >> >> >> >> >> >> Here's what README says: >> >> >> >> >> >> =A0* bin/cassandra -f >> >> >> >> >> >> Running the startup script with the -f argument will cause Cassand= ra >> >> >> 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. >> >> >> >> >> >> =A0* bin/cassandra-cli --host localhost >> >> >> >> >> >> The command line client is interactive so if everything worked you >> >> >> should >> >> >> be sitting in front of a prompt... >> >> >> >> >> >> =A0Connected to: "Test Cluster" on localhost/9160 >> >> >> =A0Welcome to cassandra CLI. >> >> >> >> >> >> =A0Type 'help;' or '?' for help. Type 'quit;' or 'exit;' to quit. >> >> >> =A0[default@unknown] >> >> >> >> >> >> >> >> >> On Mon, May 30, 2011 at 4:09 AM, Amrita Jayakumar >> >> >> wrote: >> >> >> > Marcus, >> >> >> > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 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 >> >> >> > >> >> >> > 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 serve= r >> >> >> >> 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 > > --=20 w3m