To build an application using apache spark and cassandra you can use the datastax spark-cassandra-connector to communicate with spark. Before we are going to communicate with spark using connector we should know how to configure cassandra. So following are prerequisite to run example smoothly.
Following steps to install and configure cassandra
If you are new to cassandra first we nee to install cassandra on our local machine.
next step is if you want to configure cassandra instance you can make changes in /conf/cassandra.yaml file. Some of important configurations are below:
you can set the same cluster name its shows in which cluster node is connected
Right now we are using local instance otherwise we use ip address by that other node in cluster can communicate with this node using listen_address
rpc_address specify the ip or host name through which client communicate
View original post 472 more words