twitter-archive / cassie Goto Github PK
View Code? Open in Web Editor NEWA Scala client for Cassandra
Home Page: http://groups.google.com/group/twitter-cassie
License: Other
A Scala client for Cassandra
Home Page: http://groups.google.com/group/twitter-cassie
License: Other
val twttr = "Twitter's Repository" at "http://maven.twttr.com/"
val cassie = "com.twitter" % "cassie" % "0.19.0"
then later:
val cluster = new Cluster("host1,host2", OstrichStatsReceiver)
This doesn't work because:
val cluster = new Cluster("host1,host2", new OstrichStatsReceiver)
(the "new" keyword is missing in the example)
And since we're here, I see that the current source version is 0.25.0-SNAPSHOT . But the twitter repository at http://maven.twttr.com/com/twitter/cassie/ only contains the versions up to 0.20.0 , and according to the other open issues the sources do not compile outside the twitter environment.
Not good.
Is it possible to add 0.24.0 to the Twitter repository at http://maven.twttr.com/? The most recent version in the repository is 0.20.0.
The parent POMs are not resolvable.
[INFO] Scanning for projects...
Downloading: http://nexus.xwiki.org/nexus/content/groups/public/com/twitter/scala-parent-292/0.0.2/scala-parent-292-0.0.2.pom
Downloading: http://repo1.maven.org/maven2/com/twitter/scala-parent-292/0.0.2/scala-parent-292-0.0.2.pom
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project com.twitter:cassie-core:0.22.1-SNAPSHOT (/Users/tcurdt/Downloads/cassie/cassie-core/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact com.twitter:scala-parent-292:pom:0.0.2 in xwiki-releases (http://nexus.xwiki.org/nexus/content/groups/public) and 'parent.relativePath' points at wrong local POM @ line 8, column 11 -> [Help 2]
[ERROR]
I have a CompositeCodec I'd like to contribute, but the SBT build fails with the following output:
[info] == cassie-core / compile ==
[info] Source analysis: 39 new/modified, 44 indirectly invalidated, 0 removed.
[info] Compiling main sources...
[error] Note: Some input files use unchecked or unsafe operations.
[error] Note: Recompile with -Xlint:unchecked for details.
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/BaseColumnFamily.scala:48: value setTerminalId is not a member of object com.twitter.finagle.tracing.Trace
[error] Trace.setTerminalId(Trace.nextId)
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/BatchMutationBuilder.scala:62: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/Cluster.scala:56: not found: value collectionAsScalaIterable
[error] this(collectionAsScalaIterable(seedHosts).toSet, 9160, NullStatsReceiver)
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ClusterRemapper.scala:58: not found: value collectionAsScalaIterable
[error] collectionAsScalaIterable(h.endpoints).map {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:184: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(rows.entrySet))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:231: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/ColumnFamily.scala:284: not found: value collectionAsScalaIterable
[error] for (key <- collectionAsScalaIterable(result.keySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterBatchMutationBuilder.scala:49: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterColumnFamily.scala:166: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(rows.entrySet))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/CounterColumnFamily.scala:198: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/Keyspace.scala:76: value Void is not a member of object com.twitter.util.Future
[error] if (batches.size == 0) return Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/SuperCounterBatchMutationBuilder.scala:33: value Void is not a member of object com.twitter.util.Future
[error] Future.Void
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/SuperCounterColumnFamily.scala:81: not found: value collectionAsScalaIterable
[error] for (rowEntry <- collectionAsScalaIterable(result.entrySet)) {
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/Codec.scala:18: collectionAsScalaIterable is not a member of scala.collection.JavaConversions
[error] import scala.collection.JavaConversions.collectionAsScalaIterable
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/Codec.scala:41: not found: value collectionAsScalaIterable
[error] for (value <- collectionAsScalaIterable(values))
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/LegacyUtf8Codec.scala:24: overloaded method constructor deprecated with alternatives:
errordeprecated
[error](message: String)deprecated
[error] cannot be applied to (java.lang.String, java.lang.String)
[error] @deprecated("""Use the new Utf8Codec if you can. You may need to use this for backwards
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/LegacyUtf8Codec.scala:28: overloaded method constructor deprecated with alternatives:
errordeprecated
[error](message: String)deprecated
[error] cannot be applied to (java.lang.String, java.lang.String)
[error] @deprecated("""Use the new Utf8Codec if you can. You may need to use this for backwards
[error] ^
[error] /Users/rstrickland/workspace/cassie/cassie-core/src/main/scala/com/twitter/cassie/codecs/LegacyUtf8Codec.scala:32: overloaded method constructor deprecated with alternatives:
errordeprecated
[error](message: String)deprecated
[error] cannot be applied to (java.lang.String, java.lang.String)
[error] @deprecated("""Use the new Utf8Codec if you can. You may need to use this for backwards
[error] ^
[error] 18 errors found
[info] == cassie-core / compile ==
[info]
[info] == cassie-stress / check-deps-exist ==
[info] == cassie-stress / check-deps-exist ==
[info]
[info] == cassie-serversets / check-deps-exist ==
[info] == cassie-serversets / check-deps-exist ==
[info]
[info] == cassie-hadoop / check-deps-exist ==
[info] == cassie-hadoop / check-deps-exist ==
[error] Error running compile: Compilation failed
[info]
[info] Total time: 35 s, completed Oct 11, 2012 9:44:55 AM
[info]
[info] Total session time: 41 s, completed Oct 11, 2012 9:44:55 AM
[error] Error during build.
I noticed the sbt dependencies are different than the ones in the pom, so I tried updating the sbt ones to match the pom. This gets rid of the Twitter-related errors, but not the Scala ones. Changing to Scala 2.9 gets rid of those, but then the unit tests fail. I also tried the Maven build, but it complains of a missing plugin that seems to be internal to Twitter.
Am I missing something?
Robbie
val c = new Cluster(host(0), port).mapHostsEvery(0.seconds)
val keyspace = c.keyspace(repo).connect()
keyspace.close()
running this on "com.twitter" % "cassie-core" % "0.25.2",
results after calling close() in 100% CPU utilisation by some background threads.
I don't think this belongs there: https://github.com/twitter/cassie/wiki
This repo isn't usable outside of Twitter.
[~/Code/cassie]$ mvn [master][system]
[INFO] Scanning for projects...
[ERROR] The build could not read 4 projects -> [Help 1]
[ERROR]
[ERROR] The project com.twitter:cassie-core:0.25.1-SNAPSHOT (/Users/leepa/Code/cassie/cassie-core/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.twitter:scala-parent-292:pom:0.0.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 11 -> [Help 2]
[ERROR]
[ERROR] The project com.twitter:cassie-hadoop:0.25.1-SNAPSHOT (/Users/leepa/Code/cassie/cassie-hadoop/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.twitter:scala-parent-292:pom:0.0.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 11 -> [Help 2]
[ERROR]
[ERROR] The project com.twitter:cassie-serversets:0.25.1-SNAPSHOT (/Users/leepa/Code/cassie/cassie-serversets/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.twitter:scala-parent-292:pom:0.0.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 11 -> [Help 2]
[ERROR]
[ERROR] The project com.twitter:cassie-stress:0.25.1-SNAPSHOT (/Users/leepa/Code/cassie/cassie-stress/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find com.twitter:scala-parent-292:pom:0.0.4 in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 8, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException```
This request is specifically aimed at providing support for connecting to Cassandra clusters configured to use 'org.apache.cassandra.auth.PasswordAuthenticator'.
Is this supported? I can find a batch
method on other column family types, but not SuperColumnFamily
.
Hi there,
I am trying to include the library in a simple project and am getting these resolve dependencies exceptions:
sbt.ResolveException: download failed: javax.jms#jms;1.1!jms.jar
download failed: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar
download failed: com.sun.jmx#jmxri;1.2.1!jmxri.jar
Following is my build.sbt file:
name := "scala-cassandra-spike"
organization := "ardlema"
version := "0.0.1"
scalaVersion := "2.10.3"
val twitterRepo = "Twitter's Repository" at "http://maven.twttr.com/"
val cassie = "com.twitter" % "cassie" % "0.19.0"
resolvers ++= Seq(twitterRepo)
libraryDependencies ++= Seq(
"org.scalacheck" %% "scalacheck" % "1.10.0" % "test" withSources() withJavadoc(),
cassie
)
initialCommands := "import ardlema.scalacassandraspike._"
Thank you in advance
Are there plans to have scala version specific cassie releases
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.