Closed ecurtin closed 7 years ago
+1 FYI, for the configuration you currently store in Zookeeper we added secure application config in V4.2 that could be used for configuration. See details here http://www.ibm.com/support/knowledgecenter/SSCRJU_4.2.0/com.ibm.streams.dev.doc/doc/creating-secure-app-configs-dev.html
+1
+1! very nice proposal btw!
+1
2016-10-07 0:04 GMT+03:00 Samantha Chan notifications@github.com:
+1! very nice proposal btw!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IBMStreams/administration/issues/99#issuecomment-252088072, or mute the thread https://github.com/notifications/unsubscribe-auth/AGvlA2CSLe0VJaqiVc0FQUgWkWdSW0tJks5qxWJLgaJpZM4KQRUL .
Best regards, Leonid Gorelik.
Repository creation underway.
Sweet deal, I see the repo that got created! Two questions
@ecurtin before you can push code, can you please sign this document: https://github.com/IBMStreams/administration/blob/master/IBMStreams-cla-individual.pdf
Yes, I think you can keep the current version number.
Repository created and set up. @ecurtin and @cin are initial committers.
Woo!! Thanks all!! Here it is! https://github.com/IBMStreams/streamsx.cassandra
Proposal: streamsx.cassandra
streamsx.cassandra is a toolkit in active development (and production!) at The Weather Company. It consists of an operator that writes Streams tuples to Cassandra.
The operator is a very thin Java facade for a Scala implementation. It's built using SBT.
Basic Capabilities
The operator is configured by specifying connection information in a ZooKeeper node. Additionally, it provides mechanisms, also configurable in ZK, for writing values as NULLS.
Nearly all SPL types are supported, including sets, lists, and maps.
Null Value Mechanism
For a real-life example, say we have a tuple representing a report from a weather station:
Old-school meteorological convention specifies that invalid observations are reported as -9999. When these observations are written in Cassandra, however, we don't want to keep them as -9999, we want to take advantage of Cassandra's ability to write nulls. So if I specify in the JSON blob that I store in ZooKeeper:
Any tuples that pass into the operator with the tempF value of -9999 will be written with a tempF value of NULL in Cassandra.
Licensing
The source is licensed under Apache V2.
Currently Supported Versions
Sample SPL Code
The znodes specify the connection to a dev Cassandra cluster and specifies that the null value for "nint" is -2147483647.
And here's a sample of the output, which I am pulling using CQL using a call that you should never ever use on a real table :)
Future Work