Skip to content

Instantly share code, notes, and snippets.

@Houdini
Created Mar 29, 2010
Embed
What would you like to do?
houdini@mozart:~/cassandra_gem$ rake cassandra
(in /usr/lib/ruby/gems/1.8/gems/cassandra-0.8.0)
tar xzf apache-cassandra-0.6.0-beta2-bin.tar.gz
mv apache-cassandra-0.6.0-beta2 server
ant ivy-retrieve
Buildfile: /home/houdini/cassandra/server/build.xml
ivy-download:
[echo] Downloading Ivy...
[mkdir] Created dir: /home/houdini/cassandra/server/build
[get] Getting: http://repo2.maven.org/maven2/org/apache/ivy/ivy/2.1.0/ivy-2.1.0.jar
[get] To: /home/houdini/cassandra/server/build/ivy-2.1.0.jar
ivy-init:
[mkdir] Created dir: /home/houdini/cassandra/server/build/lib
ivy-retrieve:
[ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url = jar:file:/home/houdini/cassandra/server/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: apache-cassandra#cassandra;working@mozart
[ivy:retrieve] confs: [default]
[ivy:retrieve] found commons-logging#commons-logging;1.1.1 in public
[ivy:retrieve] found log4j#log4j;1.2.12 in public
[ivy:retrieve] found logkit#logkit;1.0.1 in public
[ivy:retrieve] found avalon-framework#avalon-framework;4.1.3 in public
[ivy:retrieve] found javax.servlet#servlet-api;2.3 in public
[ivy:retrieve] found org.apache.mahout.hadoop#hadoop-core;0.20.1 in public
[ivy:retrieve] found commons-httpclient#commons-httpclient;3.1 in default
[ivy:retrieve] found commons-codec#commons-codec;1.2 in public
[ivy:retrieve] found com.thoughtworks.paranamer#paranamer-ant;2.1 in public
[ivy:retrieve] found com.thoughtworks.paranamer#paranamer-generator;2.1 in public
[ivy:retrieve] found com.thoughtworks.qdox#qdox;1.10 in public
[ivy:retrieve] found asm#asm;3.2 in public
[ivy:retrieve] found ant#ant;1.6.5 in public
[ivy:retrieve] found org.codehaus.jackson#jackson-mapper-asl;1.4.0 in public
[ivy:retrieve] found org.codehaus.jackson#jackson-core-asl;1.4.0 in public
[ivy:retrieve] found com.google.collections#google-collections;1.0 in public
[ivy:retrieve] found com.google.code.findbugs#jsr305;1.3.7 in public
[ivy:retrieve] found commons-cli#commons-cli;1.1 in public
[ivy:retrieve] found commons-collections#commons-collections;3.2.1 in public
[ivy:retrieve] found commons-lang#commons-lang;2.4 in public
[ivy:retrieve] found jline#jline;0.9.94 in public
[ivy:retrieve] found org.slf4j#slf4j-api;1.5.8 in public
[ivy:retrieve] found org.slf4j#slf4j-log4j12;1.5.8 in public
[ivy:retrieve] found log4j#log4j;1.2.14 in public
[ivy:retrieve] found com.googlecode.json-simple#json-simple;1.1 in public
[ivy:retrieve] found junit#junit;4.6 in public
[ivy:retrieve] :: resolution report :: resolve 1519ms :: artifacts dl 125ms
[ivy:retrieve] :: evicted modules:
[ivy:retrieve] log4j#log4j;1.2.12 by [log4j#log4j;1.2.14] in [default]
[ivy:retrieve] commons-logging#commons-logging;1.0.4 by [commons-logging#commons-logging;1.1.1] in [default]
[ivy:retrieve] junit#junit;3.8.1 by [junit#junit;4.6] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 28 | 0 | 0 | 3 || 43 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: apache-cassandra#cassandra [sync]
[ivy:retrieve] confs: [default]
[ivy:retrieve] 37 artifacts copied, 0 already retrieved (9031kB/389ms)
BUILD SUCCESSFUL
Total time: 9 seconds
mkdir -p /home/houdini/cassandra/test/data
env CASSANDRA_INCLUDE=/usr/lib/ruby/gems/1.8/gems/cassandra-0.8.0/conf/cassandra.in.sh CASSANDRA_HOME=/home/houdini/cassandra/server CASSANDRA_CONF=/usr/lib/ruby/gems/1.8/gems/cassandra-0.8.0/conf bin/cassandra -f
Здесь могу быть ошибки, у меня она связана с тем, что порт 8080 занят, но может быть и ошибка вида
ERROR - Exception encountered during startup.
java.lang.ExceptionInInitializerError
at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:91)
at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:174)
Caused by: java.lang.RuntimeException: java.io.IOException: unable to mkdirs /var/lib/cassandra/data
Дело в том, что не настроены файлы конфигурации, и эти папки у меня закрыты
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8080; nested exception is:
java.net.BindException: Address already in use
rake aborted!
Command failed with status (1): [env CASSANDRA_INCLUDE=/usr/lib/ruby/gems/1...]
/usr/lib/ruby/gems/1.8/gems/cassandra-0.8.0/Rakefile:36
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment