ZEPPELIN-565 ZEPPELIN-564 Paragraph UI bugs

### What is this PR for?
Bug fix paragraph UI

### What type of PR is it?
Bug Fix

### Is there a relevant Jira issue?
ZEPPELIN-565 & ZEPPELIN-564

### Screenshots (if appropriate)
Before
![5](https://cloud.githubusercontent.com/assets/2031306/12164296/8cb54948-b53a-11e5-8f6c-792dfc83063d.PNG)
![2 1](https://cloud.githubusercontent.com/assets/2031306/12164297/8ec65bdc-b53a-11e5-9d5b-95c8585100b0.PNG)

<hr>
After
<img width="527" alt="screen shot 2016-01-07 at 12 29 13 pm" src="https://cloud.githubusercontent.com/assets/2031306/12164271/60a4068c-b53a-11e5-8909-f44c128d4916.png">
<img width="1671" alt="screen shot 2016-01-07 at 12 29 33 pm" src="https://cloud.githubusercontent.com/assets/2031306/12164277/695f542a-b53a-11e5-84eb-17a174c83733.png">

Author: Renjith Kamath <renjith.kamath@gmail.com>

Closes #606 from r-kamath/ZEPPELIN-560 and squashes the following commits:

aae30d2 [Renjith Kamath] ZEPPELIN-565 ZEPPELIN-564 Paragraph UI bugs

(cherry picked from commit 3d4dc43669ab0c33e1ac90657960b6f10f38b188)
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
1 file changed
tree: 6d265b3cebd377b29db137d3f637f596c264bfa3
  1. _tools/
  2. angular/
  3. bin/
  4. cassandra/
  5. conf/
  6. dev/
  7. docs/
  8. elasticsearch/
  9. flink/
  10. geode/
  11. hive/
  12. ignite/
  13. kylin/
  14. lens/
  15. licenses/
  16. markdown/
  17. notebook/
  18. phoenix/
  19. postgresql/
  20. scalding/
  21. scripts/
  22. shell/
  23. spark/
  24. spark-dependencies/
  25. tajo/
  26. testing/
  27. zeppelin-distribution/
  28. zeppelin-interpreter/
  29. zeppelin-server/
  30. zeppelin-web/
  31. zeppelin-zengine/
  32. .gitignore
  33. .travis.yml
  34. CONTRIBUTING.md
  35. DISCLAIMER
  36. LICENSE
  37. NOTICE
  38. pom.xml
  39. README.md
  40. Roadmap.md
  41. STYLE.md
README.md

#Zeppelin

Documentation: User Guide
Mailing Lists: User and Dev mailing list
Continuous Integration: Build Status
Contributing: Contribution Guide
Issue Tracker: Jira
License: Apache 2.0

Zeppelin, a web-based notebook that enables interactive data analytics. You can make beautiful data-driven, interactive and collaborative documents with SQL, Scala and more.

Core feature:

  • Web based notebook style editor.
  • Built-in Apache Spark support

To know more about Zeppelin, visit our web site http://zeppelin.incubator.apache.org

Requirements

  • Java 1.7
  • Tested on Mac OSX, Ubuntu 14.X, CentOS 6.X
  • Maven (if you want to build from the source code)
  • Node.js Package Manager

Getting Started

Before Build

If you don't have requirements prepared, install it. (The installation method may vary according to your environment, example is for Ubuntu.)

sudo apt-get update
sudo apt-get install git
sudo apt-get install openjdk-7-jdk
sudo apt-get install npm
sudo apt-get install libfontconfig

# install maven
wget http://www.eu.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
sudo tar -zxf apache-maven-3.3.3-bin.tar.gz -C /usr/local/
sudo ln -s /usr/local/apache-maven-3.3.3/bin/mvn /usr/local/bin/mvn

Notes:

  • Ensure node is installed by running node --version
  • Ensure maven is running version 3.1.x or higher with mvn -version

Build

If you want to build Zeppelin from the source, please first clone this repository, then:

mvn clean package -DskipTests [Options]

Each Interpreter requires different Options.

Spark Interpreter

To build with a specific Spark version, Hadoop version or specific features, define one or more of the following profiles and options:

-Pspark-[version]

Set spark major version

Available profiles are

-Pspark-1.6
-Pspark-1.5
-Pspark-1.4
-Pspark-1.3
-Pspark-1.2
-Pspark-1.1
-Pcassandra-spark-1.5
-Pcassandra-spark-1.4
-Pcassandra-spark-1.3
-Pcassandra-spark-1.2
-Pcassandra-spark-1.1

minor version can be adjusted by -Dspark.version=x.x.x

-Phadoop-[version]

set hadoop major version

Available profiles are

-Phadoop-0.23
-Phadoop-1
-Phadoop-2.2
-Phadoop-2.3
-Phadoop-2.4
-Phadoop-2.6

minor version can be adjusted by -Dhadoop.version=x.x.x

-Pyarn (optional)

enable YARN support for local mode

-Ppyspark (optional)

enable PySpark support for local mode

-Pvendor-repo (optional)

enable 3rd party vendor repository (cloudera)

-Pmapr[version] (optional)

For the MapR Hadoop Distribution, these profiles will handle the Hadoop version. As MapR allows different versions of Spark to be installed, you should specify which version of Spark is installed on the cluster by adding a Spark profile (-Pspark-1.2, -Pspark-1.3, etc.) as needed. For Hive, check the hive/pom.xml and adjust the version installed as well. The correct Maven artifacts can be found for every version of MapR at http://doc.mapr.com

Available profiles are

-Pmapr3
-Pmapr40
-Pmapr41
-Pmapr50

Here're some examples:

# basic build
mvn clean package -Pspark-1.6 -Phadoop-2.4 -Pyarn -Ppyspark

# spark-cassandra integration
mvn clean package -Pcassandra-spark-1.5 -Dhadoop.version=2.6.0 -Phadoop-2.6 -DskipTests

# with CDH
mvn clean package -Pspark-1.5 -Dhadoop.version=2.6.0-cdh5.5.0 -Phadoop-2.6 -Pvendor-repo -DskipTests

# with MapR
mvn clean package -Pspark-1.5 -Pmapr50 -DskipTests

Ignite Interpreter

mvn clean package -Dignite.version=1.1.0-incubating -DskipTests

Scalding Interpreter

mvn clean package -Pscalding -DskipTests

Configure

If you wish to configure Zeppelin option (like port number), configure the following files:

./conf/zeppelin-env.sh
./conf/zeppelin-site.xml

(You can copy ./conf/zeppelin-env.sh.template into ./conf/zeppelin-env.sh. Same for zeppelin-site.xml.)

Setting SPARK_HOME and HADOOP_HOME

Without SPARK_HOME and HADOOP_HOME, Zeppelin uses embedded Spark and Hadoop binaries that you have specified with mvn build option. If you want to use system provided Spark and Hadoop, export SPARK_HOME and HADOOP_HOME in zeppelin-env.sh You can use any supported version of spark without rebuilding Zeppelin.

# ./conf/zeppelin-env.sh
export SPARK_HOME=...
export HADOOP_HOME=...

External cluster configuration

Mesos

# ./conf/zeppelin-env.sh
export MASTER=mesos://...
export ZEPPELIN_JAVA_OPTS="-Dspark.executor.uri=/path/to/spark-*.tgz" or SPARK_HOME="/path/to/spark_home"
export MESOS_NATIVE_LIBRARY=/path/to/libmesos.so

If you set SPARK_HOME, you should deploy spark binary on the same location to all worker nodes. And if you set spark.executor.uri, every worker can read that file on its node.

Yarn

# ./conf/zeppelin-env.sh
export SPARK_HOME=/path/to/spark_dir

Run

./bin/zeppelin-daemon.sh start

browse localhost:8080 in your browser.

For configuration details check ./conf subdirectory.

Package

To package the final distribution including the compressed archive, run:

  mvn clean package -Pbuild-distr

To build a distribution with specific profiles, run:

  mvn clean package -Pbuild-distr -Pspark-1.5 -Phadoop-2.4 -Pyarn -Ppyspark

The profiles -Pspark-1.5 -Phadoop-2.4 -Pyarn -Ppyspark can be adjusted if you wish to build to a specific spark versions, or omit support such as yarn.

The archive is generated under zeppelin-distribution/target directory

###Run end-to-end tests Zeppelin comes with a set of end-to-end acceptance tests driving headless selenium browser

  #assumes zeppelin-server running on localhost:8080 (use -Durl=.. to override)
  mvn verify

  #or take care of starting\stoping zeppelin-server from packaged _zeppelin-distribuion/target_
  mvn verify -P using-packaged-distr

Analytics