zeppelin/testing
Jeff Zhang 125a42ca1f ZEPPELIN-1786. Refactor LivyHelper
### What is this PR for?

This PR continue the work of livy refactoring. Here's the main changes in this PR
* Move the code from `LivyHelper` to `BaseLivyInterprereter`
* Define POJO for livy request and response instead of using Map (sometimes nested Map)
* Move the livy session initialization from `interpret` to `open`
* Add one more complicated test which use the spark basic tutorial note.
* Support livy.sql for spark2
* Use zeppelin.livy.create.session.timeout instead of retry count as retry count is internal implementation and user don't know what does it mean.
* Improve travis (wrap livy related work in `setupLivy.sh`)

### What type of PR is it?
[Improvement | Refactoring]

### Todos
* [ ] - Task

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-1786

### How should this be tested?

One more integration test is added

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjffdu@apache.org>

Closes #1751 from zjffdu/ZEPPELIN-1786 and squashes the following commits:

30443f8 [Jeff Zhang] Fix string escape issue for livy.sql
d6fb35d [Jeff Zhang] address comments
6e5cbb8 [Jeff Zhang] ZEPPELIN-1786. Refactor LivyHelper
2016-12-22 22:14:36 +05:30
..
downloadLivy.sh ZEPPELIN-1607. Refactor Livy Interpreter to adapt scope mode 2016-12-11 13:24:10 -05:00
downloadSpark.sh [HOTFIX] Restore uninteded change of exit code in testing/dowloadSpark.sh 2016-12-05 20:08:57 +09:00
install_external_dependencies.sh [HOTFIX] CAN'T install cran packages using apt in Travis CI 2016-12-16 16:50:49 +09:00
setupLivy.sh ZEPPELIN-1786. Refactor LivyHelper 2016-12-22 22:14:36 +05:30