- Dynamo http://www.allthingsdistributed.com/files/amazon-dynamo-sosp2007.pdf
- Building on Quicksand http://www-db.cs.wisc.edu/cidr/cidr2009/Paper_133.pdf
- Cassandra paper http://www.cs.cornell.edu/projects/ladis2009/papers/lakshman-ladis2009.pdf
- Google's Mega Store http://research.google.com/pubs/archive/36971.pdf
- Dremel http://static.googleusercontent.com/external_content/untrusted_dlcp/research.google.com/en/us/pubs/archive/36632.pdf
- Bid Data Complexity http://www.slideshare.net/nathanmarz/runaway-complexity-in-big-data-and-a-plan-to-stop-it
- Joshua Bloch on Good API Design http://lcsd05.cs.tamu.edu/slides/keynote.pdf
- GigaOM Pro report on MBaaS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are three main components to the security features provided by Cassandra: | |
- TLS/SSL encryption for client and inter-node communication | |
- Client authentication | |
- Authorization | |
By default, these features are disabled as Cassandra is configured to easily find and be found by other members of a | |
cluster. In other words, an out-of-the-box Cassandra installation presents a large attack surface for a bad actor. | |
Enabling authentication for clients using the binary protocol is not sufficient to protect a cluster. Malicious users | |
able to access internode communication and JMX ports can still: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClusterManager { | |
private Session session; | |
private Cluster cluster; | |
@javax.annotation.PostConstruct | |
public void init() throws IOException | |
{ | |
cluster = createCluster(); // private method that builds a cluster | |
session = createSession(); // private method that builds a session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
server_encryption_options: | |
internode_encryption: all | |
keystore: conf/server-keystore.jks | |
keystore_password: awesomekeypass | |
truststore: conf/server-truststore.jks | |
truststore_password: truststorepass | |
protocol: TLS | |
algorithm: SunX509 | |
store_type: JKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server_count = 5 | |
network = '192.168.50.' | |
first_ip = 100 | |
servers = [] | |
seeds = [] | |
cassandra_tokens = [] | |
(0..server_count-1).each do |i| | |
name = 'node' + (i + 1).to_s | |
ip = network + (first_ip + i).to_s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zznate-mcp:usergrid-rest-apigee-production$ mvn clean install -Dusergrid.stack.shasum=40cc5158eaaf7e5017d1f7e078847b0bc3d8223b | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building org.usergrid.core [org.usergrid] 1.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ usergrid-rest-apigee-production --- | |
[INFO] | |
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ usergrid-rest-apigee-production --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/alternatives/jre_1.7.0/bin/java CryptTest test | |
original: test | |
encrypted: ڝ8?p??7m?Q(7?? | |
Exception in thread "main" java.lang.IllegalStateException: javax.crypto.BadPaddingException: Invalid pad value! | |
at CryptTest.decrypt(CryptTest.java:67) | |
at CryptTest.main(CryptTest.java:25) | |
Caused by: javax.crypto.BadPaddingException: Invalid pad value! | |
at sun.security.pkcs11.P11Cipher$PKCS5Padding.unpad(P11Cipher.java:106) | |
at sun.security.pkcs11.P11Cipher.implDoFinal(P11Cipher.java:893) | |
at sun.security.pkcs11.P11Cipher.engineDoFinal(P11Cipher.java:552) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list<ColumnOrSuperColumn> get_slice(1:required binary key, | |
2:required ColumnParent column_parent, | |
3:required SlicePredicate predicate, | |
4:required ConsistencyLevel consistency_level=ConsistencyLevel.ONE) | |
throws (1:InvalidRequestException ire, 2:UnavailableException ue, | |
3:TimedOutException te), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"e":[ | |
{"type":"SETKEYSPACE","op":{"keyspace":"myks"}}, | |
{"type":"CREATEKEYSPACE","op":{"name":"myks","replication":1}}, | |
{"type":"CREATECOLUMNFAMILY","op":{"name":"mycf"}}, | |
{"type":"SETCOLUMNFAMILY","op":{"columnfamily":"mycf"}}, | |
{"type":"AUTOTIMESTAMP","op":{}}, | |
{"type":"SET","op":{"columnName":"6","rowkey":"5","value":"7"}}, | |
{"type":"SLICE","op":{"end":"9","rowkey":"5","size":4,"start":"1"}} | |
]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java b/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsRe | |
index 8d98ca5..414c63b 100644 | |
--- a/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java | |
+++ b/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java | |
@@ -124,7 +124,7 @@ public class OrganizationsResource extends AbstractContextResource { | |
OrganizationOwnerInfo organizationOwner = management | |
.createOwnerAndOrganization(organizationName, username, name, | |
- email, password, false, false, true); | |
+ email, password, true, false, false); |
NewerOlder