【发布时间】:2013-10-18 16:49:46
【问题描述】:
我正在按照Install Cassandra 安装 cassandra 的说明进行操作
安装后,我得到以下信息。我该如何解决?
service cassandra start
xss = -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1001M -Xmx1001M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss128k
root@i-157-16647-VM:~# service cassandra status
xss = -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1001M -Xmx1001M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss128k
* Cassandra is not running
我在一台有 2 GB RAM 的机器上运行。这是我在裸机 VM 上安装的方法。
sudo vi /etc/apt/sources.list
#add sources.list
deb http://debian.datastax.com/community stable main
deb http://us.archive.ubuntu.com/ubuntu/ precise main contrib non-free
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
sudo apt-get update
sudo apt-get install python-cql dsc1.1
root@i-157-16647-VM:~# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
/var/log/cassandra/output.log
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: i-157-16647-VM: i-157-16647-VM
Service exit with a return value of 1
Error: Exception thrown by the agent : java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: i-157-16647-VM: i-157-16647-VM
Service exit with a return value of 1
【问题讨论】:
-
我不明白问题是什么。你想解决什么问题?
-
我无法让 cassandra 在默认安装上运行。我认为问题是 +HeapDumpOnOutOfMemoryError。我无法理解那个神秘的信息。
-
你的假设是错误的。该消息只是向您显示传递给 cassandra 的选项,包括一个在遇到内存不足错误时导致其进行堆转储的选项。检查时它说您运行的是哪个版本的 Java?
-
添加版本。希望使用它是正确的。根据安装文档,deb us.archive.ubuntu.com/ubuntu 精确的主要贡献是非免费的。
-
根据stackoverflow.com/questions/7496640/…将主机名添加到/etc/hosts
标签: cassandra