GitHub user doanduyhai opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/657
Update cassandra-spark-1.5 profile to use Guava 16.0.1 and connector
1.5.0-RC1
### What is this PR for?
Right now, the Maven profile **cassandra-spark-1.5** is broken because an
older version of Guava is used (**15.0** to be exact). This PR addresses this
issue and also update the version of the Spark/Cassandra connector:
* Guava version set to **16.0.1** because the spark-cassandra connector is
pulling the Java driver **3.0.0-rc1** which requires Guava 16.0.1
* spark-cassandra connector set to **1.5.0-RC1**
### What type of PR is it?
[Bug Fix]
### Todos
* [ ] - Test by the community
### Is there a relevant Jira issue?
**[ZEPPELIN-620]**
### How should this be tested?
* Build Zeppelin with `mvn clean package -Dcassandra-spark-1.5 -DskipTests`
* Ensure you have a **Cassandra 3.x** running locally
* Create the following dataset in Cassandra:
* `CREATE KEYSPACE test WITH replication = {'class': 'SimpleStrategy',
'replication_factor': 1};`
* `CREATE TABLE test.data(id int PRIMARY KEY, val text);`
* `INSERT INTO test.data(id,val) VALUES(1, 'one');`
* `INSERT INTO test.data(id,val) VALUES(2, 'two');`
* `INSERT INTO test.data(id,val) VALUES(3, 'three');`
* Edit the Spark interpreter to add this property
* spark.cassandra.connection.host: 127.0.0.1 (or localhost, depending
on your config)
* Create a new notebook **Spark/Cassandra**
* Create a first paragraph to register the **Cassandra** table:
```
%sql
CREATE TEMPORARY TABLE data USING org.apache.spark.sql.cassandra
OPTIONS(cluster "Test Cluster", keyspace "test", table "data")
```
* Create a second paragraph to request data using SparkSQL
```
%sql
SELECT * FROM data
```
### Screenshots (if appropriate)
Spark interpreter config

Cassandra data set

SparkSQL using Cassandra data

### Questions:
* Does the licenses files need update? --> No
* Is there breaking changes for older versions? --> No
* Does this needs documentation? --> No
[ZEPPELIN-620]: https://issues.apache.org/jira/browse/ZEPPELIN-620
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/doanduyhai/incubator-zeppelin
UpdateCassandraSpark1.5Profile
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/657.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #657
----
commit 4e91064929bc2f13d63c0081ebf8611988aaa8ca
Author: DuyHai DOAN <[email protected]>
Date: 2016-01-19T10:59:37Z
Update cassandra-spark-1.5 profile to use Guava 16.0.1 and connector
1.5.0-RC1
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---