Cassandra single node installation

对着背影说爱祢 提交于 2019-12-13 18:04:35

问题


I just try to install cassandra on my ubuntu:12.04. Steps i have followed

  Installed java version 1.7.XX and verified with java -version
  apt-get install libjna-java  //Installs jna
  python 2.7 is installed already

  Extracted to /usr/local/installables/
  Successfully extracted.

  Then I set cassandra home

  export CASSANDRA_HOME=/usr/local/installables/dse-2.2.2/resources/cassandra
  export PATH=$PATH:$CASSANDRA_HOME/bin

pscenter.tar.gz dse.tar.gz

  I created /var/cassandra/saved_caches, /var/cassandra/data, /var/cassandra/commitlog

  I updated cassandra-env.sh -Xss 280 from 180

  I left listen_address as empty, rpc_address as 0.0.0.0 and seed ip as 127.0.0.1 

  I left jmx port as 7199. I left all the default config in cassandra.yaml

Now i tried to run cassandra

  /usr/local/installbles/dse/cassandra/bin/cassandra

It says

  xss =  -ea -javaagent:/usr/local/installables/dse-2.2.2/resources/cassandra/lib/jamm-0.2.5.jar -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1954M -Xmx1954M -Xmn200M -XX:+HeapDumpOnOutOfMemoryError -Xss280k
 Error: Could not find or load main class com.datastax.bdp.server.DseDaemon

So I can understand i missed some installation config steps of dse. Please let me know whats the error and any links to set up single node cassandra setup.


回答1:


You are using the wrong command to start it. If you have dse installed then the command would be:

<path to dse bin>/dse cassandra

This will start dse running in the background. If you want to run it in the foreground then:

<path to dse bin>/dse cassandra -f


来源:https://stackoverflow.com/questions/28626365/cassandra-single-node-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!