cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Techy Teck <>
Subject How to generate tokens for my two node Cassandra cluster?
Date Fri, 01 Nov 2013 06:59:24 GMT
I am trying to setup two node Cassandra Cluster on windows machine. I have
basically two windows machine and I was following this datastax tutorial (

Whenever I use the below command to get the token number from the above
tutorial -

    python -c "num=2; print ""\n"".join([(""token %d: %d""
%(i,(i*(2**127)/num))) for i in range(0,num)])"

I always get this error -

    C:\Users\username>python -c "num=2; print ""\n"".join([(""token %d:
%d"" %(i,(i*(2**127)/num))) for i
    in range(0,num)])"
      File "<string>", line 1
        num=2; print "\n".join([("token %d: %d" %(i,(i*(2**127)/num))) for
i in range(0,num)])
    SyntaxError: invalid syntax

View raw message