Differences between revisions 4 and 5
Revision 4 as of 2010-08-16 15:05:55
Size: 4715
Editor: andy.africa
Comment:
Revision 5 as of 2013-11-14 20:05:36
Size: 4776
Editor: GehrigKunz
Comment: statcounter
Deletions are marked like this. Additions are marked like this.
Line 13: Line 13:

{{https://c.statcounter.com/9397521/0/fe557aad/1/|stats}}

Quick start with Hector and Apache Wicket.

  1. Install Apache Maven if you don't. Just download it, extract, drop "...\apache-maven\bin" to your PATH envrimonet variable.
  2. Download & extract Apache Cassanra. Go to "...\apache-cassandra-0.6.4\bin" and run it (cassandra.bat).

  3. Download & extract Hector (http://github.com/rantav/hector/downloads) just in case near with apache-maven folder.

  4. 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)

  5. 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-->

  6. 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.

  7. From "hector-0.6.0-15" folder to "cassandrabrowser\lib" copy jars: cassandra-javautils.jar, hector-0.6.0-15.jar.

  8. Test jetty by running in project folder command "mvn jetty:run"

  9. Visit http://localhost:8080/

stats

Hector (last edited 2013-11-14 20:05:36 by GehrigKunz)