Skip to content

Instantly share code, notes, and snippets.

@oubiwann
Created October 20, 2015 19:38
Show Gist options
  • Select an option

  • Save oubiwann/206776168823efe6a3aa to your computer and use it in GitHub Desktop.

Select an option

Save oubiwann/206776168823efe6a3aa to your computer and use it in GitHub Desktop.
lcmap-rest.app=> (def conn (cc/connect ["127.0.0.1"] {:keyspace "lcmap" :version 3}))
...
#'lcmap-rest.app/conn
lcmap-rest.app=> (cql/select conn "epsg_5070")
ReadTimeoutException Cassandra timeout during read query at consistency ONE
(1 responses were required but only 0 replica responded)
com.datastax.driver.core.Responses$Error$1.decode (Responses.java:61)
;; Then an attempt with the lcmap prefix, tried out of desperation, knowing that the
;; connection alreay had the keyspace defined.
lcmap-rest.app=> (cql/select conn "lcmap.epsg_5070")
InvalidQueryException unconfigured table lcmap.epsg_5070
com.datastax.driver.core.Responses$Error.asException (Responses.java:103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment