Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

thrxorg/thrx-callengerone-lagom-experimental

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChallengerOne

Setup:

install java 8 install SBT install activator (optional)

using SCALA

created with SBT:

This project has been generated by the lagom/lagom-scala.g8 template.

$ sbt new lagom/lagom-scala.g8

GIT

git init git add * git commit (initial)

Working with eclipse:

adding plugin 4 eclipse

insert line to .\project\plugins.sbt

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "5.1.0")

added .project file to project root

for importing root project to eclipse challengerone

debuging with sbt or activator:

On the command-line - use 'sbt -jvm-debug'

There's a very convenient -jvm-debug flag in the official SBT packages based on Bash (ie the Unix ones... and very recently, it's been added to the Windows SBT launcher too). You can use the flag like this to specify the debug port:

sbt -jvm-debug 9999 runAll
activator -jvm-debug 9999 run

// in build.sbt needed for debugging tests fork in Test := false

Cassandra Database:

Ports:

''' 7199 - JMX (was 8080 pre Cassandra 0.8.xx) 1024 - 65355 Random port required by JMX. Starting with Java 7u4 a specific port can be specified using the com.sun.management.jmxremote.rmi.port property. 7000 - Internode communication (not used if TLS enabled) 7001 - TLS Internode communication (used if TLS enabled) 9042 - CQL native transport port (lagom: 4000) 9160 - Thrift client API (lagom default: OFF) '''

Tools for access:

JDBC / SQUIRREL

https://github.com/adejanovski/cassandra-jdbc-wrapper

JDBC driver class : com.github.adejanovski.cassandra.jdbc.CassandraDriver JDBC URL : jdbc:cassandra://localhost--localhost:4000/system

oder:

https://github.com/datastax/java-driver

native cql

install:

download / extract: https://cassandra.apache.org/download/

cqlsh

cqlsh.bat 127.0.0.1 4000

if error:

Connection error: ('Unable to connect to any servers', {'127.0.0.1': ProtocolError("cql_version '3.4.2' is not supported by remote (w/ native protocol). Supported versions: [u'3.4.0']",)})

cqlsh.bat 127.0.0.1 4000 --cqlversion 3.4.0

nodetool:

nodetool.bat -h 127.0.0.1 -p 4099 status

nodetool.bat -h 127.0.0.1 -p 4099 snapshot

https://wiki.apache.org/cassandra/NodeTool

  flush \[keyspace\] \[cfnames\] - Flush one or more column family
  repair \[keyspace\] \[cfnames\] - Repair one or more column family
  cleanup \[keyspace\] \[cfnames\] - Run cleanup on one or more column family
  compact \[keyspace\] \[cfnames\] - Force a (major) compaction on one or more column family

Connect über "thrift" rpc server

Zugriff über helenos

https://github.com/tomekkup/helenos

''' //lagomCassandraJvmOptions in ThisBuild := // Seq("-Xms256m", "-Xmx1024m", "-Dcassandra.jmx.local.port=4099", // "-DCassandraLauncher.configResource=thrx-dev-embedded-cassandra.yaml") // these are actually the default jvm options ''' hat nicht funktioniert -- thrx-dev-embedded-cassandra.yaml wurde nicht gefunden/geladen

About

challenger.one tech preview on lagom scala

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages