sto seguendo le istruzioni per l'installazione Cassandra a Install CassandraUbuntu 12.04 e Cassandra installare - + HeapDumpOnOutOfMemoryError -Xss128k
Quando ho installato, ottengo il seguente. Come posso risolvere?
service cassandra start
xss = -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1001M -Xmx1001M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss128k
[email protected]:~# service cassandra status
xss = -ea -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms1001M -Xmx1001M -Xmn100M -XX:+HeapDumpOnOutOfMemoryError -Xss128k
* Cassandra is not running
Sono in esecuzione su una macchina con 2 GB di RAM. Ecco come installo su una bare bare 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
[email protected]:~# 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
Non capisco quale sia la domanda. Cosa stai cercando di sistemare? –
Non riesco a ottenere cassandra per l'esecuzione su un'installazione predefinita. Presumo che il problema sia + HeapDumpOnOutOfMemoryError. Non riesco a capire quel messaggio criptico. – Tampa
La tua ipotesi è sbagliata. Quel messaggio ti sta solo mostrando le opzioni passate a cassandra, inclusa un'opzione che lo fa fare un dump dell'heap se incontra un errore di memoria insufficiente. Quale versione di Java ha detto che eri in esecuzione quando hai controllato? –