---
layout: page
title: "Cassandra CQL Interpreter for Apache Zeppelin"
description: "Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance."
group: interpreter
---
{% include JB/setup %}
# Cassandra CQL Interpreter for Apache Zeppelin
| Property Name |
Description |
Default Value |
| `cassandra.cluster` |
Name of the Cassandra cluster to connect to |
Test Cluster |
| `cassandra.compression.protocol` |
On wire compression. Possible values are: `NONE`, `SNAPPY`, `LZ4` |
`NONE` |
| `cassandra.credentials.username` |
If security is enable, provide the login |
none |
| `cassandra.credentials.password` |
If security is enable, provide the password |
none |
| `cassandra.hosts` |
Comma separated Cassandra hosts (DNS name or IP address).
Ex: `192.168.0.12,node2,node3`
|
`localhost` |
| `cassandra.interpreter.parallelism` |
Number of concurrent paragraphs(queries block) that can be executed |
10 |
| `cassandra.keyspace` |
Default keyspace to connect to.
It is strongly recommended to let the default value
and prefix the table name with the actual keyspace
in all of your queries
|
`system` |
| `cassandra.load.balancing.policy` |
Load balancing policy. Default = `DefaultLoadBalancingPolicy`
To Specify your own policy, provide the fully qualify class name (FQCN) of your policy.
At runtime the driver will instantiate the policy using class name.
|
DEFAULT |
| `cassandra.max.schema.agreement.wait.second` |
Cassandra max schema agreement wait in second |
10 |
| `cassandra.pooling.connection.per.host.local` |
Protocol V3 and above default = 1 |
1 |
| `cassandra.pooling.connection.per.host.remote` |
Protocol V3 and above default = 1 |
1 |
| `cassandra.pooling.heartbeat.interval.seconds` |
Cassandra pool heartbeat interval in secs |
30 |
| `cassandra.pooling.max.request.per.connection` |
Protocol V3 and above default = 1024 |
1024 |
| `cassandra.pooling.pool.timeout.millisecs` |
Cassandra pool time out in millisecs |
5000 |
| `cassandra.protocol.version` |
Cassandra binary protocol version (`V3`, `V4`, ...) |
`DEFAULT` (detected automatically) |
| cassandra.query.default.consistency |
Cassandra query default consistency level
Available values: `ONE`, `TWO`, `THREE`, `QUORUM`, `LOCAL_ONE`, `LOCAL_QUORUM`, `EACH_QUORUM`, `ALL`
|
`ONE` |
| `cassandra.query.default.fetchSize` |
Cassandra query default fetch size |
5000 |
| `cassandra.query.default.serial.consistency` |
Cassandra query default serial consistency level
Available values: `SERIAL`, `LOCAL_SERIAL`
|
`SERIAL` |
| `cassandra.reconnection.policy` |
Cassandra Reconnection Policy.
Default = `ExponentialReconnectionPolicy`
To Specify your own policy, provide the fully qualify class name (FQCN) of your policy.
At runtime the driver will instantiate the policy using class name.
|
DEFAULT |
| `cassandra.retry.policy` |
Cassandra Retry Policy.
Default = `DefaultRetryPolicy`
To Specify your own policy, provide the fully qualify class name (FQCN) of your policy.
At runtime the driver will instantiate the policy using class name.
|
DEFAULT |
| `cassandra.socket.connection.timeout.millisecs` |
Cassandra socket default connection timeout in millisecs |
500 |
| `cassandra.socket.read.timeout.millisecs` |
Cassandra socket read timeout in millisecs |
12000 |
| `cassandra.socket.tcp.no_delay` |
Cassandra socket TCP no delay |
true |
| `cassandra.speculative.execution.policy` |
Cassandra Speculative Execution Policy.
Default = `NoSpeculativeExecutionPolicy`
To Specify your own policy, provide the fully qualify class name (FQCN) of your policy.
At runtime the driver will instantiate the policy using class name.
|
DEFAULT |
| `cassandra.ssl.enabled` |
Enable support for connecting to the Cassandra configured with SSL.
To connect to Cassandra configured with SSL use true
and provide a truststore file and password with following options.
|
false |
| `cassandra.ssl.truststore.path` |
Filepath for the truststore file to use for connection to Cassandra with SSL.
|
|
| `cassandra.ssl.truststore.password` |
Password for the truststore file to use for connection to Cassandra with SSL.
|
|
| `cassandra.format.output` |
Output format for data - strict CQL (`cql`), or human-readable (`human`) |
`human` |
| `cassandra.format.locale` |
Which locale to use for output (any locale supported by JVM could be specified) |
`en_US` |
| `cassandra.format.timezone` |
For which timezone format time/date-related types (any timezone supported by JVM could be specified) |
`UTC` |
| `cassandra.format.timestamp` |
Format string for `timestamp` columns (any valid DateTimeFormatter pattern could be used) |
`yyyy-MM-dd'T'HH:mm:ss.SSSXXX` |
| `cassandra.format.time` |
Format string for `time` columns (any valid DateTimeFormatter pattern could be used) |
`HH:mm:ss.SSS` |
| `cassandra.format.date` |
Format string for `date` columns (any valid DateTimeFormatter pattern could be used) |
`yyyy-MM-dd` |
| `cassandra.format.float_precision` |
Precision when formatting values of `float` type |
`5` |
| `cassandra.format.double_precision` |
Precision when formatting values of `double` type |
`12` |
| `cassandra.format.decimal_precision` |
Precision when formatting values of `decimal` type |
`-1` (show everything) |
Besides these parameters, it's also possible to set other driver parameters by adding them into interpreter configuration. The configuration key should have full form with `datastax-java-driver` prefix, as [described in documentation](https://docs.datastax.com/en/developer/java-driver/latest/manual/core/configuration/). For example, to specify 5 seconds request timeout, you can use `datastax-java-driver.basic.request.timeout` with value of `5 seconds`. Full list of available configuration options is [available in documentation](https://docs.datastax.com/en/developer/java-driver/latest/manual/core/configuration/reference/). Additional options may override the options that are specified by the interpreter's configuration parameters.
## Change Log
**4.0** _(Zeppelin {{ site.ZEPPELIN_VERSION }})_ :
* Refactor to use unified Java driver 4.7 ([ZEPPELIN-4378](https://issues.apache.org/jira/browse/ZEPPELIN-4378):
* changes in configuration were necessary, as new driver has different architecture, and configuration options
* interpreter got support for DSE-specific data types, and other extensions
* support for `@retryPolicy` is removed, as only single retry policy is shipped with driver
* allow to specify any configuration option of Java driver
* dropped support for Cassandra 1.2 & 2.0, that isn't supported by driver anymore
* added support for formatting options, both interpreter & cell level
**3.1** _(Zeppelin {{ site.ZEPPELIN_VERSION }})_ :
* Upgrade Java driver to 3.7.2 ([ZEPPELIN-4331](https://issues.apache.org/jira/browse/ZEPPELIN-4331);
**3.0** _(Zeppelin {{ site.ZEPPELIN_VERSION }})_ :
* Update documentation
* Update interactive documentation
* Add support for binary protocol **V4**
* Implement new `@requestTimeOut` runtime option
* Upgrade Java driver version to **3.0.1**
* Allow interpreter to add dynamic forms programmatically when using FormType.SIMPLE
* Allow dynamic form using default Zeppelin syntax
* Fixing typo on FallThroughPolicy
* Look for data in AngularObjectRegistry before creating dynamic form
* Add missing support for `ALTER` statements
**2.0** _(Zeppelin {{ site.ZEPPELIN_VERSION }})_ :
* Update help menu and add changelog
* Add Support for **User Defined Functions**, **User Defined Aggregates** and **Materialized Views**
* Upgrade Java driver version to **3.0.0-rc1**
**1.0** _(Zeppelin 0.5.5-incubating)_ :
* Initial version
## Bugs & Contacts
If you encounter a bug for this interpreter, please create a **[JIRA]** ticket.
[Datastax Java Driver for Apache Cassandra]: https://docs.datastax.com/en/developer/java-driver/latest/
[standard CQL syntax]: http://docs.datastax.com/en/cql/3.1/cql/cql_using/use_collections_c.html
[Tuple CQL syntax]: http://docs.datastax.com/en/cql/3.1/cql/cql_reference/tupleType.html
[UDT CQL syntax]: http://docs.datastax.com/en/cql/3.1/cql/cql_using/cqlUseUDT.html
[Zeppelin Dynamic Form](../usage/dynamic_form/intro.html)
[Interpreter Binding Mode](../usage/interpreter/interpreter_binding_mode.html)
[JIRA]: https://issues.apache.org/jira/browse/ZEPPELIN