Hope you read the article on Installing
CentOS by means of Virtual box. The following post deals with installing
No-SQL tool Cassandra in Cent OS. We saw in the last post as how to install
Cent OS using Virtual box.
Following are the step by step process:
- CentOS
would be running on port 2222. To connect to the CentOS from Windows, you
need to download Putty.
- Check
the version of Java with the following command
- java
-version
- If
the installation of java could not be located, then install the necessary
JAVA version by locating the RPM version and installing by the following
command
- rpm
-i java_location
- Add
a yum repository specification for the DataStax repository
in /etc/yum.repos.d.
- For
example:
- $ sudo
vi /etc/yum.repos.d/datastax.repo
- In
this file add the following lines for the DataStax repository:
[datastax]
name= DataStax Repo for Apache Cassandra
baseurl=http://rpm.datastax.com/community
enabled=1
gpgcheck=0
name= DataStax Repo for Apache Cassandra
baseurl=http://rpm.datastax.com/community
enabled=1
gpgcheck=0
- Install
the package using yum
- $ sudo yum install dsc1.1
Note: You might encounter an error like this - "cassandra dead but pid file exists". To fix this issue, Edit the cassandra-env.sh:
sudo vi
/etc/cassandra/conf/cassandra-env.sh
and change the 180k to 256k like this:
JVM_OPTS="$JVM_OPTS -Xss180k"
to:
JVM_OPTS="$JVM_OPTS -Xss256k"
That should fix it.
2 comments:
This fix not work for me :(
This fix not work for me :(
Post a Comment