Install JRE 7
Open a command prompt and type java -version to see if it is installed properly. If not find a jre from oracle and install it. Make sure it's a version 7 at the least (version 6 will not work).You'll need to set JAVA_HOME. Find the control panel (on windows 8 search for it). Go to "system and security" and then "system". Click on "Advanced Settings" and then the "Environment Variables" button. Click on the new button an in the Variable name box type JAVA_HOME
under the value you'll need to put in the path to the java you are using. Mine is
c:\program files\java\jre7
but yours may be different, especially if you have a jdk. If you are going to program java clients for C* you will need a JDK but that's a different post
Install Cassandra
Download Cassandra from http://cassandra.apache.org/ probably a file like
apache-cassandra-2.0.4-bin.tar.gz
You'll need to unpack this file and that will depend on which flavor of windows you have. At this point I'll assume you have a legal copy of winzip or similar. Unpack the downloaded file to the root of the c: or d: drive on your machine
You can now change to the Cassandra install directory in your command prompt, change to the bin directory to start Cassandra, type Cassandra to start it. The window will print a lot of information but you are looking for a line like:
INFO 19:00:31,031 Listening for thrift clients...
to make sure it's working.
CQLSH
So now we have C* running, we need to check we can connect to it. Start by opening another command prompt and type cqlsh. Sadly it won't start, cqlsh now needs an installation of python, so lets get one installed. Download one from http://www.python.org/ and go to downloads then "individual release". click on the 2.x stable release and thenscroll down to the download section. Your looking for the Windows MSI installer. I used:
http://www.python.org/ftp/python/2.7.6/python-2.7.6.msi
Download it and run it to install Python, you'll need a version 2 of python, NOTE THIS WELL, version 3 will not work! This installs a nice windows version of python but does not install
a path to the executable. You'll need to set it by hand I guess. Once again Find the control panel (on windows 8 search for it). Go to "system and security" and then "system"
Click on "Advanced Settings" and then the "Environment Variables" button. Under the system variables find PATH. Highlight it and click edit.
Careful! We don't want to wipe the current contents (if you do hit cancel) go to the end of the current path and enter
;c:\python27
Note the ; at the beginning. Again this will depend on the current version of python you've installed and should mirror the path to your python installation. Click OK to close the
dialog boxes and open a command prompt again.
Now you should be able to change to the cassandra directory and then the bin directory and type cqlsh. With luck you should get the
cassandra cqlsh prompt:
Connected to Test Cluster at localhost:9160.
[cqlsh 4.1.0 | Cassandra 2.0.4 | CQL spec 3.1.1 | Thrift protocol 19.39.0]
Use HELP for help.
cqlsh>
type "use system;" followed by "describe keyspaces;", cqlsh should reply:
system system_traces
You're now connected and ready to start work.
BTW, folks at datastax and apache Cassandra, why is this so hard ? Would Datastax Devcenter work easier ?
This comment has been removed by a blog administrator.
ReplyDeleteEvery people who wants to ,this blog done a great job by updating the useful information.
ReplyDeleteBest Web Design
Will forward this to my Web Developer, this may help him a lot!!
ReplyDeletethank for your helpful guide! I did it! :D
ReplyDeleteNice Information
ReplyDelete"Sanjary Academy provides excellent training for Piping design course. Best Piping Design Training Institute in Hyderabad,
Telangana. We have offer professional Engineering Course like Piping Design Course,QA / QC Course,document Controller
course,pressure Vessel Design Course, Welding Inspector Course, Quality Management Course, #Safety officer course."
Piping Design Course in India
Piping Design Course in Hyderabad
Piping Design Course in Hyderabad
QA / QC Course
QA / QC Course in india
QA / QC Course in Hyderabad
Document Controller course
Pressure Vessel Design Course
Welding Inspector Course
Quality Management Course
Quality Management Course in india
Safety officer course
Good Post
ReplyDeleteYaaron Studios is one of the rapidly growing editing studios in Hyderabad. We are the best Video Editing services in Hyderabad. We provides best graphic works like logo reveals, corporate presentation Etc. And also we gives the best Outdoor/Indoor shoots and Ad Making services.
video editors studio in hyderabad
short film editors in hyderabad
corporate video editing studio in hyderabad
ad making company in hyderabad
solutions.brother.com/windows
ReplyDeletesolutions.brother.com/windows
canon.com/ijsetup
canon.com/ijsetup
Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us, I too always learn something new from your post.
ReplyDeletePackers and movers in Muzaffarpur
Packers and Movers in Ghaziabad
Packers and Movers in Gurgaon
Nice post. I learn something new and challenging on your blogs thanks for sharing!!!!!!
ReplyDeleteDAPPS Development Company
This is the first & best article to make me satisfied by presenting good content. I feel so happy and delighted. Thank you so much for this article.
ReplyDeleteinternship for web development | internship in electrical engineering | mini project topics for it 3rd year | online internship with certificate | final year project for cse