Cassandra单节点安装

时间:2015-02-20 10:09:38

标签: cassandra datastax

我只是尝试在cassandra上安装ubuntu:12.04。我遵循的步骤

  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

现在我试图运行cassandra

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

它说

  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

所以我可以理解我错过了dse的一些安装配置步骤。请让我知道错误和设置单节点cassandra设置的任何链接。

1 个答案:

答案 0 :(得分:2)

您使用错误的命令启动它。如果你安装了dse,那么命令将是:

<path to dse bin>/dse cassandra

这将启动dse在后台运行。如果你想在前台运行它,那么:

<path to dse bin>/dse cassandra -f