carloscm / gossie Goto Github PK
View Code? Open in Web Editor NEWCassandra library for Go
Cassandra library for Go
Is it possible to pass in credentials through gossie? Doesn't seem like it is, but it is in the generated thrift. Maybe it's easy to add.
I'm trying to run code from example for mapping and keep getting:
multiple-value gossie.NewMapping() in single-value context
Would it be possible to update the docs to show how to save/query composite columns and how to do column range queries on composite columns?
We do this all the time in Astyanax on Java, so we are trying to find out how to do the same thing in gossie
thank you
It's idiomatic to put your Go source files in the root of your repo, so gossie may be imported as github.com/carloscm/gossie
and not github.com/carloscm/gossie/src/gossie
.
What is the estimation of supporting CQL? thanks.
==================
WARNING: DATA RACE
Write by goroutine 24:
github.com/carloscm/gossie/src/gossie.(*connectionPool).blacklist()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:339 +0x159
github.com/carloscm/gossie/src/gossie.(*connectionPool).acquire()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:312 +0x441
github.com/carloscm/gossie/src/gossie.(*connectionPool).runWithRetries()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:237 +0x59
github.com/carloscm/gossie/src/gossie.(*connectionPool).run()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:227 +0x5d
github.com/carloscm/gossie/src/gossie.(*writer).Run()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/writer.go:172 +0x112
main.func·015()
/home/mjoiner/gopath/src/code.brandscreen.net/cortex/uniques-proxy/main.go:331 +0x3cf
main.func·005()
/home/mjoiner/gopath/src/code.brandscreen.net/cortex/uniques-proxy/main.go:149 +0x79
gosched0()
/home/mjoiner/src/go/src/pkg/runtime/proc.c:1231 +0x9f
Previous read by goroutine 21:
github.com/carloscm/gossie/src/gossie.(*connectionPool).randomNode()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:280 +0x104
github.com/carloscm/gossie/src/gossie.(*connectionPool).acquire()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:305 +0x207
github.com/carloscm/gossie/src/gossie.(*connectionPool).runWithRetries()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:237 +0x59
github.com/carloscm/gossie/src/gossie.(*connectionPool).run()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/connection.go:227 +0x5d
github.com/carloscm/gossie/src/gossie.(*writer).Run()
/home/mjoiner/gopath/src/github.com/carloscm/gossie/src/gossie/writer.go:172 +0x112
main.func·015()
/home/mjoiner/gopath/src/code.brandscreen.net/cortex/uniques-proxy/main.go:331 +0x3cf
main.func·005()
/home/mjoiner/gopath/src/code.brandscreen.net/cortex/uniques-proxy/main.go:149 +0x79
gosched0()
/home/mjoiner/src/go/src/pkg/runtime/proc.c:1231 +0x9f
I'm trying to mutate into C* something quite simple. I have a row key, a column name and a value. Each of these is just a string (I generally use the BytesType comparator).
My question is how I would achieve this using Gossie. I have spent a while messing around with it and I think there is something I'm not understanding; possibly around exactly how I should marshal my data into the structure required to do:
err = pool.Writer().Insert("MyColumnFamily", row).Run()
I'm trying to use what you describe as the "low level API" since my data does not really fit the entity-like model that is described later on (your Twitter example).
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.