Skip to content

Instantly share code, notes, and snippets.

@eksenga
Created March 10, 2015 18:20
Show Gist options
  • Save eksenga/cba0c1fde946d1cc0e07 to your computer and use it in GitHub Desktop.
Save eksenga/cba0c1fde946d1cc0e07 to your computer and use it in GitHub Desktop.

Revisions

  1. eksenga created this gist Mar 10, 2015.
    46 changes: 46 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    curl -XPUT 'http://localhost:9200/_river/cassandra-river/_meta' -d '{
    "type" : "cassandra",
    "cassandra" : {
    "connection" :
    {
    "hosts" : "192.168.10.200",
    "data_centre" : "dc"
    },
    "sync" :
    {
    "batch_size" : 20000,
    "schedule" : "0 0/10 * * * ?"
    },
    "keyspaces" :
    [
    {
    "name" : "my_keyspace",
    "column_families" :
    [
    {
    "name" : "users",
    "primary_key" : "username,userid",
    "index" :
    {
    "name" : "username_index",
    "type" : "string"
    },
    "columns" :
    [
    {
    "name" : "username",
    "type" : "string",
    "raw": "true"
    },
    {
    "name" : "userid",
    "type" : "int",
    "raw": "true"
    }
    ]
    }
    ]
    }
    ]
    }
    }'