Quick start with Hector and Apache Wicket.
- Install Apache Maven if you don't. Just download it, extract, drop "...\apache-maven\bin" to your PATH envrimonet variable.
- Download & extract Apache Cassanra. Go to "...\apache-cassandra-0.6.4\bin" and run it (cassandra.bat).
- Download & extract Hector (http://github.com/rantav/hector/downloads) just in case near with apache-maven folder.
- Setup new wicket project. Go to the folder with your projects and type "mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.4.10 -DgroupId=com.mycompany -DartifactId=cassandrabrowser" (more details at http://wicket.apache.org/start/quickstart.html)
- Go to "cassandrabrowser" project folder and add this lines to pom.xml after <dependencies> line.
<!-HECTOR->
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra</artifactId>
<version>0.6.4</version>
<systemPath>${basedir}/lib/apache-cassandra-0.6.4.jar</systemPath>
<scope>system</scope>
</dependency>
<dependency>
<groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-javautils</artifactId>
<systemPath>${basedir}/lib/cassandra-javautils.jar</systemPath>
<version>1.0.0</version>
<scope>system</scope>
</dependency>
<dependency>
<groupId>com.reardencommerce</groupId>
<artifactId>clhm-production</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/clhm-production.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>me.prettyprint.cassandra</groupId>
<artifactId>hector</artifactId>
<version>0.6.15</version>
<scope>system</scope>
<systemPath>${basedir}/lib/hector-0.6.0-15.jar</systemPath>
</dependency>
<dependency>
<groupId>org.cliffc.high_scale_lib</groupId>
<artifactId>high-scale</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/high-scale-lib.jar</systemPath>
</dependency>
<dependency>
<groupId>libthrift</groupId>
<artifactId>libthrift</artifactId>
<version>917130</version>
<scope>system</scope>
<systemPath>${basedir}/lib/libthrift-r917130.jar</systemPath>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.perf4j</groupId>
<artifactId>perf4j</artifactId>
<version>0.9.12</version>
</dependency>
<!-/HECTOR->
- From "apache-cassandra-0.6.4\lib\" to "cassandrabrowser\lib" copy jars: apache-cassandra-0.6.4.jar, clhm-production.jar, high-scale-lib.jar, libthrift-r917130.jar.
- From "hector-0.6.0-15" folder to "cassandrabrowser\lib" copy jars: cassandra-javautils.jar, hector-0.6.0-15.jar.
- Test jetty by running in project folder command "mvn jetty:run"
- Visit http://localhost:8080/ 1.