Re: Can not find auto bootstrap property in cassandra.yaml for Cassandra 1.1.0

2012-06-04 Thread Pushpalanka Jayawardhana
Hi,

Me too met with that problem. You can safely skip that step for latest
versions. I read somewhere that by default it is set to be true in latest
versions.

On Mon, Jun 4, 2012 at 11:28 AM, Prakrati Agrawal 
prakrati.agra...@mu-sigma.com wrote:

  Dear all

 ** **

 I am trying to add a new node to the Cassandra cluster. In all the
 documentations available on net it says to set the auto bootstrap property
 in cassandra.yaml to true but I am not finding the property in the file.
 Please help me

 ** **

 Thanks and Regards

 ** **

 Prakrati Agrawal | Developer - Big Data(ID)| 9731648376 |
 www.mu-sigma.com 

 ** **

 --
 This email message may contain proprietary, private and confidential
 information. The information transmitted is intended only for the person(s)
 or entities to which it is addressed. Any review, retransmission,
 dissemination or other use of, or taking of any action in reliance upon,
 this information by persons or entities other than the intended recipient
 is prohibited and may be illegal. If you received this in error, please
 contact the sender and delete the message from your system.

 Mu Sigma takes all reasonable steps to ensure that its electronic
 communications are free from viruses. However, given Internet
 accessibility, the Company cannot accept liability for any virus introduced
 by this e-mail or any attachment and you are advised to use up-to-date
 virus checking software.




-- 
Pushpalanka Jayawardhana | Undergraduate | Computer Science and Engineering
University of Moratuwa

+94779716248 | http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka | Slideshare:
http://www.slideshare.net/Pushpalanka


Re: Getting error on adding seed to add a new node

2012-06-04 Thread Pushpalanka Jayawardhana
Hi,

As it is said in cassandra.yaml, you need to define it as # Ex: **
ip1,ip2,ip3** whole list as one String.


On Mon, Jun 4, 2012 at 1:17 PM, Prakrati Agrawal 
prakrati.agra...@mu-sigma.com wrote:

  Dear all,

 ** **

 I am trying to add a new node to my existing one node Cassandra. So I
 edited the seeds value in the cassandra.yaml and added the ip addresses of
 both the nodes. But its giving me the following error:

 ** **

 ERROR 13:16:48,342 Fatal configuration error error

 while parsing a block mapping

  in reader, line 164, column 13:

   - seeds: 162.192.100.16*,*162.192 ... 

 ^

 expected block end, but found FlowEntry

  in reader, line 164, column 36:

   - seeds: 162.192.100.16*,*162.192.100.48

^

 ** **

 Please help me.

 Thanks and Regards

 ** **

 Prakrati Agrawal | Developer - Big Data(ID)| 9731648376 |
 www.mu-sigma.com 

 ** **

 --
 This email message may contain proprietary, private and confidential
 information. The information transmitted is intended only for the person(s)
 or entities to which it is addressed. Any review, retransmission,
 dissemination or other use of, or taking of any action in reliance upon,
 this information by persons or entities other than the intended recipient
 is prohibited and may be illegal. If you received this in error, please
 contact the sender and delete the message from your system.

 Mu Sigma takes all reasonable steps to ensure that its electronic
 communications are free from viruses. However, given Internet
 accessibility, the Company cannot accept liability for any virus introduced
 by this e-mail or any attachment and you are advised to use up-to-date
 virus checking software.




-- 
Pushpalanka Jayawardhana | Undergraduate | Computer Science and Engineering
University of Moratuwa

+94779716248 | http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka | Slideshare:
http://www.slideshare.net/Pushpalanka


Re: Finding whether a new node is successfully added or not

2012-06-04 Thread Pushpalanka Jayawardhana
Hi Prakrati,


bin/nodetool -host ip ring

Refer here at Cassandra wiki http://wiki.apache.org/cassandra/NodeTool for
more details. A restart is needed as I know as node need to communicate
with the seeds and make sense of the cluster it is in.


On Mon, Jun 4, 2012 at 1:41 PM, Prakrati Agrawal 
prakrati.agra...@mu-sigma.com wrote:

  Dear all,

 ** **

 I added a new node to my 1 node Cassandra cluster. Now I want to find out
 whether it is added successfully or not. Also do I need to restart the
 already running node after entering the seed value. Please help me.

 ** **

 Thanks and Regards

 ** **

 Prakrati Agrawal | Developer - Big Data(ID)| 9731648376 |
 www.mu-sigma.com 

 ** **

 --
 This email message may contain proprietary, private and confidential
 information. The information transmitted is intended only for the person(s)
 or entities to which it is addressed. Any review, retransmission,
 dissemination or other use of, or taking of any action in reliance upon,
 this information by persons or entities other than the intended recipient
 is prohibited and may be illegal. If you received this in error, please
 contact the sender and delete the message from your system.

 Mu Sigma takes all reasonable steps to ensure that its electronic
 communications are free from viruses. However, given Internet
 accessibility, the Company cannot accept liability for any virus introduced
 by this e-mail or any attachment and you are advised to use up-to-date
 virus checking software.




-- 
Pushpalanka Jayawardhana | Undergraduate | Computer Science and Engineering
University of Moratuwa

+94779716248 | http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka | Slideshare:
http://www.slideshare.net/Pushpalanka


Re: bulk load problem

2012-07-09 Thread Pushpalanka Jayawardhana
Hi all,

I am facing the same problem when trying to load Cassandra using
sstableloader. I am running a Cassandra instance in my own machine and
sstableloader is also called from the same machine. Following are the steps
I followed.


   - get a copy of the running Cassandra instance
   - set another loopback address with sudo ifconfig lo:0 127.0.0.2
   netmask 255.0.0.0 up
   - set listen address and rpc address of the copied Cassandra's
   cassandra.yaml to 127.0.0.2
   - ran ./sstableloader -d 127.0.0.2 directory of created sstables

But this give me an error 'Could not retrieve endpoint ranges: ' and just
that.

I am so grateful for any hints to get over this.
What I want to get done is actually running the sstableloader via a java
code. But I couldn't get over it either and trying to understand the
required args with this. It is great if someone can help me in either cases.

Thanks in advance!



On Tue, Jul 3, 2012 at 5:16 AM, aaron morton aa...@thelastpickle.comwrote:

 Do you have the full stack ? It will include a cause.

 Cheers


   -
 Aaron Morton
 Freelance Developer
 @aaronmorton
 http://www.thelastpickle.com

 On 27/06/2012, at 12:07 PM, James Pirz wrote:

 Dear all,

 I am trying to use sstableloader in cassandra 1.1.1, to bulk load some
 data into a single node cluster.
 I am running the following command:

 bin/sstableloader -d 192.168.100.1 /data/ssTable/tpch/tpch/

 from another node (other than the node on which cassandra is running),
 while the data should be loaded into a keyspace named tpch. I made sure
 that the 2nd node, from which I run sstableloader, have the same copy of
 cassandra.yaml as the destination node.
 I have put

 tpch-cf0-hd-1-Data.db
 tpch-cf0-hd-1-Index.db

 under the path, I have passed to sstableloader.

 But I am getting the following error:

 Could not retrieve endpoint ranges:

 Any hint ?

 Thanks in advance,

 James







-- 
Pushpalanka Jayawardhana | Undergraduate | Computer Science and Engineering
University of Moratuwa

+94779716248 | http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka | Slideshare:
http://www.slideshare.net/Pushpalanka


Re: bulk load problem

2012-07-09 Thread Pushpalanka Jayawardhana
Hi,

Thanks Brian for your code and Thanks Yuki.

Directory structure was a problem and could correct it with Yuki's guidance.
Still the error was same and it was due to wrong Thrift rpc address. After
correcting it, bulk loading was successful.


On Mon, Jul 9, 2012 at 8:13 PM, Yuki Morishita mor.y...@gmail.com wrote:

  Due to the change in directory structure from ver 1.1, you have to create
 the directory like

 /path/to/sstables/Keyspace name/ColumnFamily name

 and put your sstables.

 In your case, I think it would be /data/ssTable/tpch/tpch/cf0.
 And you have to specify that directory as a parameter for sstableloader

 bin/sstableloader -d 192.168.100.1 /data/ssTable/tpch/tpch/cf0

 Yuki

 On Tuesday, June 26, 2012 at 7:07 PM, James Pirz wrote:

 Dear all,

 I am trying to use sstableloader in cassandra 1.1.1, to bulk load some
 data into a single node cluster.
 I am running the following command:

 bin/sstableloader -d 192.168.100.1 /data/ssTable/tpch/tpch/

 from another node (other than the node on which cassandra is running),
 while the data should be loaded into a keyspace named tpch. I made sure
 that the 2nd node, from which I run sstableloader, have the same copy of
 cassandra.yaml as the destination node.
 I have put

 tpch-cf0-hd-1-Data.db
 tpch-cf0-hd-1-Index.db

 under the path, I have passed to sstableloader.

 But I am getting the following error:

 Could not retrieve endpoint ranges:

 Any hint ?

 Thanks in advance,

 James







-- 
Pushpalanka Jayawardhana | Undergraduate | Computer Science and Engineering
University of Moratuwa

+94779716248 | http://pushpalankajaya.blogspot.com

Twitter: http://twitter.com/Pushpalanka | Slideshare:
http://www.slideshare.net/Pushpalanka


Re: Creating counter columns in cassandra

2012-08-01 Thread Pushpalanka Jayawardhana
 = (equals) in the WHERE case on key or
  secondary index column, this is the Cassandra limitation.

 Yep, it's still there (see validateFilterClauses from line 531):


 https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/thrift/ThriftValidation.java

 It's not probably going to change anytime soon (or later, probably ;-)
 ), secondary indexes are still CFs underneath:


 http://grokbase.com/t/cassandra/user/1099pty59r/indexoperator-lt-lte-gt-gte-implementation#20100910dx1fwm8z9ek1cvec10jvmpzfa4

 From that message you also get an hint on how to proceed in this
 situation:
 1) Add a fake equality condition to the query;
 2) Go for a range scan, which is more efficient than the hack above.

 Depending on the speed than you need on the writing side compared to
 the speed required on the reading side, you might also consider
 keeping an ad-hoc index of the counter columns with the counter
 greater than your threshold, but it's surely requiring more
 housekeeping on your side.

 Paolo




 --
 Amila Iroshani Paranawithana
 CSE-University of Moratuwa.
 B-http://amilaparanawithana.blogspot.com
 T-https://twitter.com/#!/AmilaPara





-- 
Pushpalanka Jayawardhana