Commit graph

2860 commits

Author SHA1 Message Date
1ambda
acf59fafbd fix: Clean zeppelin-display/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
93015859cf fix: Clean spark-dependencies/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
893bffa5ca fix: Clean spark/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
ff91207e10 fix: Clean shell/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
5b3785745b fix: Clean scio/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
c0dbe9b636 fix: Clean scalding/pom.xml 2016-12-01 12:37:36 +09:00
1ambda
e6c661b823 fix: Clean r/pom.xml 2016-12-01 12:37:31 +09:00
1ambda
e80388ed1b fix: Clean postgres/pom.xml 2016-12-01 12:31:09 +09:00
1ambda
cc61c68743 fix: Clean pig/pom.xml 2016-12-01 12:31:09 +09:00
1ambda
1fe71f90fa fix: Clean markdown/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
96a9f07684 fix: Clean livy/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
4cc4e3780a fix: Clean lens/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
6d834bc346 fix: Clean kylin/pom.xml
we already specified in the parent pom.xml

- 1.5 commons-codec
- 4.3.6 httpclient

so it's safe to remove their version fields
2016-12-01 12:31:08 +09:00
1ambda
b14bb3f685 fix: Clean jdbc/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
8b3a3ed307 fix: Clean ignite/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
1b3fdbb0a9 fix: Clean hbase/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
faad4be743 fix: Clean geode/pom.xml 2016-12-01 12:31:08 +09:00
1ambda
c9e42e78fe fix: Clean flink/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
647249dbc7 fix: Clean file/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
be0a4e7cae fix: Clean elasticsearch/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
f80c172696 fix: Clean cassandra/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
1b9c8c1277 fix: Clean bigquery/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
b6749a6b44 fix: library versions in beam/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
fd01b3a72a fix: Remove plugin versions in beam/pom.xml 2016-12-01 12:31:07 +09:00
1ambda
ec75b40a45 fix: Clean angular/pom.xml
we don't need to specify enforcer, dependency plugin versions in children pom.xml
2016-12-01 12:31:07 +09:00
1ambda
c61b56e180 fix: Clean alluxio/pom.xml
- we already specified versions of enforcer, dependencies in root pom.xml
2016-12-01 12:31:06 +09:00
1ambda
28d10a753d fix: Clean root pom.xml 2016-12-01 12:31:06 +09:00
Mohammad Amin Khashkhashi Moghaddam
7d878f7c22 Add doc for exchanging data frames
### What is this PR for?
ZeppelinContext can be used to exchange DataFrames but there are some nasty tricks and typecasts.
It's good to provide some examples.

### What type of PR is it?
Documentation

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

Author: Mohammad Amin Khashkhashi Moghaddam <amin.moghaddamV@gmail.com>

Closes #1677 from m30m/patch-3 and squashes the following commits:

a039d5c [Mohammad Amin Khashkhashi Moghaddam] Add doc for exchanging data frames
2016-11-30 18:13:48 -08:00
Jeff Zhang
2cccfb9266 ZEPPELIN-1716. Error of interpreter not found is not propagated to fr…
### What is this PR for?
It is introduced in ZEPPELIN-1399, we call `InterpreterFactory.getInterpreter` before calling `Paragraph.jobRun`. This PR would ignore the `InterpreterException` in `Paragraph.isValidIntepreter`

### What type of PR is it?
[Bug Fix | Improvement | Feature | Documentation | Hot Fix | Refactoring]

### Todos
* [ ] - Task

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

### How should this be tested?
Tested manually, see the following screenshot

### Screenshots (if appropriate)

Before this PR, only see the following error in log, but not in frontend
```
ERROR [2016-11-28 15:16:47,378] ({qtp1471868639-17} NotebookServer.java[onMessage]:303) - Can't handle message
org.apache.zeppelin.interpreter.InterpreterException: spark.sparkr interpreter not found
    at org.apache.zeppelin.interpreter.InterpreterFactory.getInterpreter(InterpreterFactory.java:1302)
    at org.apache.zeppelin.notebook.Paragraph.isValidInterpreter(Paragraph.java:596)
    at org.apache.zeppelin.notebook.Paragraph.getMagic(Paragraph.java:586)
    at org.apache.zeppelin.socket.NotebookServer.runParagraph(NotebookServer.java:1337)
    at org.apache.zeppelin.socket.NotebookServer.onMessage(NotebookServer.java:226)
    at org.apache.zeppelin.socket.NotebookSocket.onWebSocketText(NotebookSocket.java:59)
```
After this PR
![2016-11-28_1514](https://cloud.githubusercontent.com/assets/164491/20659318/e8d00a58-b57d-11e6-854d-899614c4ca87.png)

### 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 #1691 from zjffdu/ZEPPELIN-1716 and squashes the following commits:

ad7ec63 [Jeff Zhang] ZEPPELIN-1716. Error of interpreter not found is not propagated to frontend.
2016-11-30 18:05:25 -08:00
astroshim
01c45d7ae6 [ZEPPELIN-1724] conda run command removed in 4.1.0
### What is this PR for?
Because `conda run` command removed since version `4.0.9`, PythonCondaInterpreter not working after the `conda-4.0.9`.
This PR fixes this issue.

I tested conda-4.2.12 and conda-4.0.9 .

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

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

### How should this be tested?
Please refer to https://github.com/apache/zeppelin/pull/1645

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

Author: astroshim <hsshim@nflabs.com>

Closes #1699 from astroshim/ZEPPELIN-1724 and squashes the following commits:

294b6f9 [astroshim] refactoring and fix testcase
8c3fbd3 [astroshim] fix conda version
2016-11-30 18:02:33 -08:00
Lee moon soo
850fd81a51 [ZEPPELIN-212] Multiple paragraph results
### What is this PR for?
Currently a paragraph can display only a single type of result.
For example
```
print("""
%text textout
%html htmlout
""")
```

will display only last display system detected, "htmlout".

This pr implements multiple results supports, so not only the last, but also all the display systems in a paragraph outputs can be displayed.

To do that, Note.json format need to be changed. from

```
   paragraph : [
      {
          result : {
              code: "",
              type: "",
              msg: ""
          },
          config : {
             graph : {},
             ...
          },
          ...
      },
      ...
   ],
   ...
```

to

```
   paragraph : [
      {
          results : {
             {
                code: "",
                msg: [
                   {
                        type: "",
                        data: ""
                    },
                    {
                        type: "",
                        data: ""
                     },
                     ...
                ]
          },
          config : {
             results : [
                {
                    graph : {},
                },
                {
                    graph : {},
                },
                ...
             ]
          },
          ...
      },
      ...
   ],
   ...
```

### What type of PR is it?
Improvement

### Todos
* [x] - Make InterpreterResult and InterpreterOutput support multiple display system
* [x] - Automatic migration old format to new format
* [x] - Render multiple results in front-end
* [x] - Take care Importing old notebook format
* [x] - Make helium framework support multiple results

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

### How should this be tested?

run following code in a single spark paragraph.
```
%spark
// default output is text
(1 to 3).foreach{i=>
  println(new java.util.Date())
  Thread.sleep(1000)
}

// print something in html
println(s"""%html <h3><font style="color:blue">Some HTML</font></h3>""")

// create table
println(s"""%table key\tvalue
sun\t100
moon\t200

""")

// display text again
println("""%text""")
(1 to 3).foreach{i=>
  println(new java.util.Date())
  Thread.sleep(1000)
}

// another table
Thread.sleep(1000)
println(s"""%table key\tvalue
apple\t100
banana\t200
""")
```

### Screenshots (if appropriate)
![multipleout](https://cloud.githubusercontent.com/assets/1540981/20465902/23379948-af1d-11e6-85cf-4d70597fb94e.gif)

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

Author: Lee moon soo <moon@apache.org>

Closes #1658 from Leemoonsoo/ZEPPELIN-212 and squashes the following commits:

0c6a13c [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
519cf23 [Lee moon soo] Update PythonInterpreterPandasSqlTest
e6268ac [Lee moon soo] Update PythonInterpreterMatplotlibTest.java
f5034b8 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
d5981d5 [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
a1fe729 [Lee moon soo] document note format change
282504e [Lee moon soo] Merge remote-tracking branch 'origin/master' into ZEPPELIN-212
7ab6679 [Lee moon soo] update selenium test
6a897a5 [Lee moon soo] Update rest-api doc
cbbd58a [Lee moon soo] update unittest
e89c9b8 [Lee moon soo] restore tutoral note
3ba37b7 [Lee moon soo] Let old version import note without error
d09e03f [Lee moon soo] enable helium only in the last result
6682908 [Lee moon soo] Remove unnecessary listener method
0f1d28f [Lee moon soo] Merge branch 'master' into ZEPPELIN-212
73b3a81 [Lee moon soo] update selenium test
e69f1a1 [Lee moon soo] update test
f12230f [Lee moon soo] Remove unnecessary newline in test
26e201a [Lee moon soo] Update testcase
b01d70f [Lee moon soo] Make helium app work
0a5b4d1 [Lee moon soo] Update HeliumApplicationFactoryTest
d8ca07f [Lee moon soo] update NotebookTest
aaf9778 [Lee moon soo] fix r test
3e43df4 [Lee moon soo] make zeppelin-web test pass
1d6fd3e [Lee moon soo] fix compile errors
0156ffc [Lee moon soo] take care angular object
804768d [Lee moon soo] Take care output streaming
57d6b2f [Lee moon soo] Render multiple results
95b6037 [Lee moon soo] Multiple results
2016-11-30 17:23:57 -08:00
Alexander Bezzubov
985bb0c875 [HOTFIX] Make Spark download stable on CI
### What is this PR for?
There has been issues with downloading\caching Spark, esp in #1689 #1696
This is hotfix for Spark download on CI.

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

### Todos
 - [x] do not use distrs.apache.org
 - [x] levirage `download-maven-plugin` cache for Spark download
 - [x] set timeout 1min and 5 re-tries on download
 - [x] un-pack them under `/target/` so `mvn clean` works as expected
 - [x] mute logs for `./testing/install_external_dependencies.sh`

### How should this be tested?
In CI logs, Spark should be downloaded by `spark-dependencies` and cached under `${HOME}/.m2/repository/.cache/maven-download-plugin`

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

Author: Alexander Bezzubov <bzz@apache.org>

Closes #1709 from bzz/make-ci-stabel and squashes the following commits:

06c031c [Alexander Bezzubov] Move logging config to MAVEN_OPTS
702dcdd [Alexander Bezzubov] Spark download\cached, using download-maven-plugin
7040b09 [Alexander Bezzubov] Switch Spark download dir
1d85b5c [Alexander Bezzubov] Mute dependency install logs
78109af [Alexander Bezzubov] Set readTimeOut for download-maven-plugin
7a64690 [Alexander Bezzubov] Bump download-maven-plugin version to lastes 1.3.0
605dea9 [Alexander Bezzubov] Spark 2.0.1 on CI, same as in pom.xml
9ee9c04 [Alexander Bezzubov] Direct Spark download url for CI as INFRA-12996
2016-12-01 01:08:57 +09:00
soralee
a459c02494 [ZEPPELIN-1686] Added clear output to keyboard shortcut
### What is this PR for?
This PR Added "Clear output" of paragraph to the keyboard shortcut.

### What type of PR is it?
Improvement

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

### How should this be tested?
Click in paragraph and press Ctrl+Shift+c

### Screenshots (if appropriate)
![screenshot from 2016-11-27 06-29-27](https://cloud.githubusercontent.com/assets/8110458/20644011/e8d8f370-b46a-11e6-83cd-2d2fffc10a77.png)

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

Author: soralee <sora0728@nflabs.com>

Closes #1686 from soralee/ZEPPELIN-1686 and squashes the following commits:

e6e8d42 [soralee] changed short key from ctrl+shift+c to ctrl+alt+l
bbd96f9 [soralee] changed short key from ctrl+shift+c to ctrl+alt+l
225d18d [soralee] changed short key from ctrl+shift+c to ctrl+alt+l
d89afa1 [soralee] Added clear output to a keyboard shortcut
2016-11-30 20:12:29 +09:00
Anthony Corbacho
b0bef98a74 [ZEPPELIN-1691] Implement NotebookRepoSetting to ZeppelinHub notebookRepo
### What is this PR for?
Implement notebookRepo setting in ZeppelinHub notebook repo.
This change will allow users to directly switch from instance without switching token in `zeppelin-env.sh`.

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

### What is the Jira issue?
* [ZEPPELIN-1691](https://issues.apache.org/jira/browse/ZEPPELIN-1691)

### How should this be tested?
You need to have a valid [Zeppelinhub account](https://www.zeppelinhub.com/register).
You need to enable zeppelinhub notebook repo (only) in zeppelin-env.sh
```
export ZEPPELIN_NOTEBOOK_STORAGE="org.apache.zeppelin.notebook.repo.zeppelinhub.ZeppelinHubRepo"
export ZEPPELINHUB_API_ADDRESS="https://www.zeppelinhub.com"
```

[Enable shiro](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/security/shiroauthentication.html#1-enable-shiro) and set it to use [Zeppelinhub realm](https://zeppelin.apache.org/docs/0.7.0-SNAPSHOT/security/shiroauthentication.html#zeppelinhub).

Start zeppelin, login, you will see your list of notebooks, if you want to switch instance, go to NotebookRepos, and edit.

### Screenshots (if appropriate)
![zeppelinhub_note_repo_instance_switch](https://cloud.githubusercontent.com/assets/3139557/20626992/8b518628-b360-11e6-9c73-c5af793a93c5.gif)

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

Author: Anthony Corbacho <corbacho.anthony@gmail.com>

Closes #1681 from anthonycorbacho/ZEPPELIN-1691 and squashes the following commits:

fe86558 [Anthony Corbacho] Add logger in getUserInstances try-catch
4ed62af [Anthony Corbacho] Implement NotebookRepo settings option in ZeppelinHub notebook Repository.  This change will allow users to directly switch from instance without switching token in zeppelin-env.sh.
2016-11-30 16:31:24 +09:00
Jun Kim
249cf6cdec [HOTFIX] Exclude org/apache/zeppelin/scio/avro/* once at pom.xml
### What is this PR for?
Previously on #1676, I excluded path **twice**. It's my mistake! khalidhuseynov pointed that out (Thanks!).

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

### How should this be tested?
Build with command `mvn clean package install -DskipTests -DskipRat`

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

Author: Jun Kim <i2r.jun@gmail.com>

Closes #1706 from tae-jun/patch-2 and squashes the following commits:

ae6f00e [Jun Kim] Exclude org/apache/zeppelin/scio/avro/* once
2016-11-29 22:52:59 -08:00
Prabhjyot Singh
752c8abba1 Downloading dependency/changing version for an interpreter results in error sometimes
### What is this PR for?
At times on downloading dependency/changing version for an interpreter results in error

```
 INFO [2016-11-29 11:16:52,998] ({qtp60559178-18} InterpreterRestApi.java[updateSetting]:137) - Update interpreterSetting 2C2ENJBEV
ERROR [2016-11-29 11:16:53,047] ({Thread-61} InterpreterFactory.java[run]:494) - Error while downloading repos for interpreter group : jdbc, go to interpreter setting page click on edit and save it again to make this interpreter work properly. : File does not exist: /Users/xxx/local-repo/2C2ENJBEV/twill-zookeeper-0.6.0-incubating.jar
java.io.FileNotFoundException: File does not exist: /Users/xxx/local-repo/2C2ENJBEV/twill-zookeeper-0.6.0-incubating.jar
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2275)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
	at org.apache.zeppelin.interpreter.InterpreterFactory$3.run(InterpreterFactory.java:470)
ERROR [2016-11-29 11:16:53,047] ({Thread-64} InterpreterFactory.java[run]:494) - Error while downloading repos for interpreter group : jdbc, go to interpreter setting page click on edit and save it again to make this interpreter work properly. : File does not exist: /Users/xxx/local-repo/2C2ENJBEV/zookeeper-3.4.6.jar
java.io.FileNotFoundException: File does not exist: /Users/xxx/local-repo/2C2ENJBEV/zookeeper-3.4.6.jar
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2275)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
	at org.apache.zeppelin.interpreter.InterpreterFactory$3.run(InterpreterFactory.java:470)
```

but on re-saving it works fine.

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

### Todos

### What is the Jira issue?
* [ZEPPELIN-1725](https://issues.apache.org/jira/browse/ZEPPELIN-1725)

### How should this be tested?
Configure following as dependencies in JDBC
```
org.apache.hive:hive-jdbc:2.0.1
org.apache.hadoop:hadoop-common:2.7.1
org.apache.hive.shims:hive-shims-0.23:2.1.0
org.apache.phoenix:phoenix-core:4.7.0-HBase-1.1
```
now try changing one of it, say "org.apache.hadoop:hadoop-common:2.7.1" to "org.apache.hadoop:hadoop-common:2.6.0"

Save should happen all the time.

### Screenshots (if appropriate)

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

Author: Prabhjyot Singh <prabhjyotsingh@gmail.org>

Closes #1698 from prabhjyotsingh/ZEPPELIN-1725 and squashes the following commits:

b535bb9 [Prabhjyot Singh] do a check for FileNotFoundException, which would mean it was already deleted/not present.
2016-11-30 10:27:41 +05:30
Jeff Zhang
71632967de ZEPPELIN-1707. Pass userName when creating interpreter through thrift
### What is this PR for?
In ZEPPELIN-1607, I'd like refactor livy interpreter to scoped mode by default, this require username when open this interpreter. So I propose to pass username when creating interpreter through thrift.
What I did in this PR.
* update `RemoteInterpreterService.thrift` and regenerate the java thrift code.
* update `genthrift.sh`, otherwise hashCode method won't be generated correctly.
* This is one compilation issue (`PythonDockerInterpreterTest.java`) in the existing master branch, I also fix it here.

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

### Todos
* [ ] - Task

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

### Screenshots (if appropriate)

### 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 #1679 from zjffdu/ZEPPELIN-1707 and squashes the following commits:

763455f [Jeff Zhang] regenerate it using thrift 0.9.2
a247552 [Jeff Zhang] ZEPPELIN-1707. Pass userName when creating interpreter through thrift
2016-11-30 13:18:53 +09:00
felizbear
97cdfa987e remove usage of non-standard string method
### What is this PR for?
This PR removes a non-standard string prototype method `contains` that can cause potential bugs in the future maintenance.

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

### Todos
* [x] - remove usage of non-standard string method `contains` in favor of standard `indexOf`

### How should this be tested?
Download as `csv / tsv` (graph view) should work as expected

Author: felizbear <ilya@nflabs.com>

Closes #1701 from felizbear/front-end-do-not-modify-protoypes-please and squashes the following commits:

ae9820e [felizbear] remove usage of non-standard string method
2016-11-30 12:36:55 +09:00
Lee moon soo
c4e7fabf08 [HOT FIX] Fix broken link to userimpersonation.html
### What is this PR for?
https://github.com/apache/zeppelin/pull/1554 added a `processenduser.md`, but the navigation menu different name on it's link `userimpersonation.html`

This PR changes filename from `processenduser.md` to `userimpersonation.md`.

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

### Todos
* [x] - Change file name

### What is the Jira issue?
https://github.com/apache/zeppelin/pull/1554

### How should this be tested?
build docs and navigate "Interpreter -> Interpreter User Impersonation"

### Screenshots (if appropriate)

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

Author: Lee moon soo <moon@apache.org>

Closes #1704 from Leemoonsoo/fix_link and squashes the following commits:

8ede96e [Lee moon soo] Change filename
2016-11-29 14:18:31 -08:00
astroshim
234c42bdb1 [ZEPPELIN-1714] Build error of scio Intepreter on Centos
### What is this PR for?
This PR fixes build error of scio Intepreter on CentOS.

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

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

### How should this be tested?
Run `mvn clean package -DskipTest' on CentOS

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

Author: astroshim <hsshim@nflabs.com>

Closes #1685 from astroshim/fix/scio-builderror and squashes the following commits:

330f38d [astroshim] add scala prefix
2016-11-30 01:31:39 +09:00
CloverHearts
9db840c655 [ZEPPELIN-1665] Z.run with external note executable and access resource for zeppelin in each interpreter
### What is this PR for?
Currently, the z.run command is restricted.
Only paragraphs in a single note can be executed.
I have modified this to allow you to freely execute paragraphs of other notes.
This PR provides the basis for the freeful use of Zeppelin's resources at each Interpreter implementation.

### What type of PR is it?
Improvement, Feature

### Todos
- [x] extends z.run
- [x] run all paragraph in external note
- [x] run paragraph for external note.
- [x] get resource for zeppelin in each interpreter.
- [x] improve test case.
- [x] how to use docuement

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

### How should this be tested?
Currently under development.

run paragraph in same note
```
%spark
z.run("paragraphID")
```

run paragraph with external note
```
z.run("noteid", "paragraphid");
```

all note run
```
z.runNote("noteid");
```

### Screenshots (if appropriate)
- paragraph run
![zrun](https://cloud.githubusercontent.com/assets/10525473/20304857/ca056300-ab75-11e6-8276-0fe0667a5a24.gif)

- noterun
![runnote](https://cloud.githubusercontent.com/assets/10525473/20472104/527cd8de-affa-11e6-9587-0438140e264f.gif)

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

Author: CloverHearts <cloverheartsdev@gmail.com>

Closes #1637 from cloverhearts/extends-zrun-remote-transaction and squashes the following commits:

41fa9d7 [CloverHearts] restore unless changed and import
113b475 [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
03a3a2b [CloverHearts] testcase change z.run(2, context) to z.run(2)
2a2c173 [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
f2e3bcf [CloverHearts] fix TestCase
5a80a5a [CloverHearts] last test case time check to print string
e6cd82c [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
3862166 [CloverHearts] regenerate thrfit class
5ec4640 [CloverHearts] change defined protocol for thrift
7562535 [CloverHearts] remove unused import and asterisk import
8a54917 [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
342752d [CloverHearts] add document for extends z.run and z.runNote
292319a [CloverHearts] add test case for extends z.run and z.runNote
10c2a47 [CloverHearts] Implement runNote and re implement run method
f9661c8 [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
9ab05af [CloverHearts] Change structure and remove remoteWorksManager
8cbe46c [CloverHearts] remote remoteworksController in interpreter.java
8d42c16 [CloverHearts] Merge branch 'master' into extends-zrun-remote-transaction
f11fed4 [CloverHearts] Merge branch 'workflow' into extends-zrun-remote-transaction
c074f07 [CloverHearts] fix sio support
4b1ef08 [CloverHearts] fix thrift interface
2628a20 [CloverHearts] fix thrift
6fbe08a [CloverHearts] Merge branch 'master' into workflow
3f75bd5 [CloverHearts] support scald
55e8704 [CloverHearts] support spark r
5a7886f [CloverHearts] fix sio support
afb9db7 [CloverHearts] Merge branch 'master' into workflow
3ed556c [CloverHearts] remove debug console message.
3d34f9e [CloverHearts] Implement getParagraphRunner transaction.
2523238 [CloverHearts] Implement eventForWait class
0570ae8 [CloverHearts] add remote works controller class and include interpreter factory
6e1f219 [CloverHearts] code base workflow for remote zeppelin server control default thrift transaction.
2016-11-29 08:07:15 -08:00
Mleekko
6a2a341b0c [ZEPPELIN-1013] Don't run paragraph on selectbox change
### What is this PR for?
Enabling to change values of multiple selectboxes witout running the paragraph

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

### Todos
No

### What is the Jira issue?
[ZEPPELIN-1013]

### How should this be tested?
1. Create a paragraph with  a selectbox via z.select(...)
2. Select any value other than currently selected
Actual result:   value changes and paragraph gets executed
Expected result: value changes

### Screenshots (if appropriate)

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

Author: Mleekko <mleekko@gmail.com>

Closes #1647 from Mleekko/master and squashes the following commits:

13b65a2 [Mleekko] [ZEPPELIN-1013] Don't run paragraph on selectbox change
2016-11-29 08:06:22 -08:00
Randy Gelhausen
07fbc6ec8c ZEPPELIN-1645: JDBC Interpreter does not commit updates
### What is this PR for?
Allow users to issue insert/update/upsert statements from Zeppelin notes

### What type of PR is it?
Improvement

### Todos
* [ ] - Task

### What is the Jira issue?
[ZEPPELIN-1645](https://issues.apache.org/jira/browse/ZEPPELIN-1645)

### How should this be tested?
For Phoenix Interpreter:
Paragraph 1:
%jdbc
UPSERT INTO CX_TEST (ACCT_NBR, HSE_ID) VALUES ('a', 'b')

Paragraph 2:
%jdbc
select count(*) from cx_test

Result: 1

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

Author: Randy Gelhausen <rgelhau@gmail.com>

Closes #1617 from randerzander/master and squashes the following commits:

1cf1ce3 [Randy Gelhausen] Added check for connection autocommit status
2016-11-29 08:04:52 -08:00
1ambda
cb5c8a414a [ZEPPELIN-1695] chore: Set xml plugin phase to verify (minor)
### What is this PR for?

Changed the phase of xml validation plugin from validate to verify so that developers can use `mvn test` in submodule dirctories
(**this PR doesn't affect on runtime application behaivor.**)

```
[INFO] --- xml-maven-plugin:1.0.1:validate (default)  zeppelin-markdown ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.643 s
[INFO] Finished at: 2016-11-28T17:53:47+09:00
[INFO] Final Memory: 17M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:xml-maven-plugin:1.0.1:validate (default) on project zeppelin-markdown: Failed to load schema with public ID null, system ID _tools/maven-4.0.0.xsd: /Users/lambda/github/apache-zeppelin/zeppelin-feature/markdown/_tools/maven-4.0.0.xsd (No such file or directory) -> [Help 1]
[ERROR]
```

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

### Todos

### What is the Jira issue?

[ZEPPELIN-1695](https://issues.apache.org/jira/browse/ZEPPELIN-1695?filter=-3)

### How should this be tested?

```
$ cd markdown
$ mvn test
```

### Screenshots (if appropriate)

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

Author: 1ambda <1amb4a@gmail.com>

Closes #1693 from 1ambda/chore/modify-xml-plugin-phase-to-verify and squashes the following commits:

cc3858b [1ambda] chore: Set xml plugin phase to verify
2016-11-29 17:18:47 +09:00
Khalid Huseynov
78ff94c177 [DOCS] Update Shiro configuration file with new package names
### What is this PR for?
Since most of authentication related realm classes has moved from `org.apache.zeppelin.server` package into `org.apache.zeppelin.realm`, we need to update corresponding `shiro.ini.template` file

### What type of PR is it?
Improvement | Documentation

### Todos
* [x] - update class packages

### What is the Jira issue?
N/A

### How should this be tested?
same as for testing `LdapGroupRealm` or `ActiveDirectoryGroupRealm`

### Screenshots (if appropriate)

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

Author: Khalid Huseynov <khalidhnv@gmail.com>

Closes #1700 from khalidhuseynov/update/shiro-config and squashes the following commits:

2eabc24 [Khalid Huseynov] update package names
2016-11-29 17:03:09 +09:00
Alex Goodman
4ac577f711 [ZEPPELIN-1639] Add tests with external python dependencies to CI build
### What is this PR for?
Take 2 of #1618 because I had some earlier problems with rebasing. Since, then I have added some new features, namely:

- Matplotlib integration tests for pyspark
- `install_external_dependencies.sh` which conditionally installs the R or python dependencies based on the specified build profile in `.travis.yml`. This saves several minutes of time for a few of the build profiles since the R dependencies are compiled from source and therefore take quite a bit of time to install.
- The extra python unit tests which require external dependencies (`matplotlib` and `pandas`) are now relegated to two separate build profiles. This is done primarily to efficiently test both Python 2 and 3.
- Some minor bugs in the python and pyspark interpreters (mostly with respect to python 3 compatibility) were caught as a result of these tests, and are also fixed in this PR.

### What type of PR is it?
Improvement and Bugfix

### What is the Jira issue?
[ZEPPELIN-1639](https://issues.apache.org/jira/browse/ZEPPELIN-1639)

### How should this be tested?
CI tests should be green!

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

Author: Alex Goodman <agoodm@users.noreply.github.com>

Closes #1632 from agoodm/ZEPPELIN-1639 and squashes the following commits:

01380c2 [Alex Goodman] Make sure python 3 profile uses scala 2.11
363019e [Alex Goodman] Use spark 2.0 with python 3
a4f43af [Alex Goodman] Update comments in .travis.yml
5a60181 [Alex Goodman] Isolate python tests
73663f6 [Alex Goodman] Update tests for new InterpreterContext constructor
5709c5d [Alex Goodman] Re-add pyspark to build profile
ee95d67 [Alex Goodman] Move python 3 tests to all modules with spark 2.0
3a76958 [Alex Goodman] Travis
42da31c [Alex Goodman] Shorten python version
b6b88be [Alex Goodman] Add python dependencies to .travis.yml
2016-11-29 17:00:07 +09:00
Sangwoo Lee
a13d05a2df Fix filter icon not displaying problem
### What is this PR for?
Filter icon is not displayed properly due to the css font-family order.

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

### Todos

### What is the Jira issue?

### How should this be tested?
See filter input box in the home page or navbar.

### Screenshots (if appropriate)
[Before]
![before](https://cloud.githubusercontent.com/assets/17305893/20638381/8ee71fb2-b3e9-11e6-9604-4344239d65c3.png)
[After]
![after](https://cloud.githubusercontent.com/assets/17305893/20638382/93b9155e-b3e9-11e6-8dde-534806ec0193.png)

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

Author: Sangwoo Lee <marchpig87@gmail.com>

Closes #1684 from marchpig/fix-filter-icon and squashes the following commits:

bc92c4e [Sangwoo Lee] Fix filter icon not displaying problem
2016-11-29 12:50:30 +09:00
Felix Cheung
e8cea41c61 Fix Travis build error with ls command
### What is this PR for?
Fix error with

```
$ ls -la .spark-dist ${HOME}/.m2/repository/.cache/maven-download-plugin
ls: cannot access /home/travis/.m2/repository/.cache/maven-download-plugin: No such file or directory
.spark-dist:
total 4
drwxr-xr-x  2 travis travis    6 Nov 25 19:27 .
drwxr-xr-x 47 travis travis 4096 Nov 25 19:27 ..
The command "ls -la .spark-dist ${HOME}/.m2/repository/.cache/maven-download-plugin" failed and exited with 2 during .
Your build has been stopped.
```
https://travis-ci.org/apache/zeppelin/jobs/178918031

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

### How should this be tested?
CI

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

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes #1683 from felixcheung/fixls and squashes the following commits:

e399ce0 [Felix Cheung] this passes http://lint.travis-ci.org/
0548861 [Felix Cheung] fix exit code
2016-11-26 11:27:36 -08:00
Mina Lee
a84818c6fe [ZEPPELIN-1694] Show result when editor language changed from markup to another
### What is this PR for?
* Show result when editor language changed from markup to another
* Fix syntax highlight bug when paragraph contains String `%something` in the middle of contents in case the default repl name(`%spark`) is not specified at the beginning of paragraph.
* Save `editOnDblClick` field in note.json so it can be applied after reloading page.

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

### What is the Jira issue?
[ZEPPELIN-1694](https://issues.apache.org/jira/browse/ZEPPELIN-1694)

### How should this be tested?
Outline the steps to test the PR here.

### Screenshots (if appropriate)
**Show result after repl change**
Before
![nov-21-2016 17-21-17](https://cloud.githubusercontent.com/assets/8503346/20490686/1479aba6-b00f-11e6-9376-0d3e1df484b1.gif)

After
![nov-21-2016 17-21-28](https://cloud.githubusercontent.com/assets/8503346/20490690/17d1c3d8-b00f-11e6-9d5f-7217b74044ae.gif)

**Fix highlight bug**
Before
<img width="324" alt="screen shot 2016-11-21 at 5 14 23 pm" src="https://cloud.githubusercontent.com/assets/8503346/20490467/694e522c-b00e-11e6-984e-611d0a7ff4a5.png">

After
<img width="332" alt="screen shot 2016-11-21 at 5 12 00 pm" src="https://cloud.githubusercontent.com/assets/8503346/20490472/6d00ee2a-b00e-11e6-9908-8f7b8a0f42f0.png">

**Fix edit on double click bug after refresh**
Before
![nov-21-2016 17-25-13](https://cloud.githubusercontent.com/assets/8503346/20490833/916d7f20-b00f-11e6-992a-7b9946898e30.gif)

After
![nov-21-2016 17-25-44](https://cloud.githubusercontent.com/assets/8503346/20490838/95fe9682-b00f-11e6-96a4-40b67e859267.gif)

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

Author: Mina Lee <minalee@apache.org>

Closes #1665 from minahlee/ZEPPELIN-1694 and squashes the following commits:

ce6a496 [Mina Lee] Open output if editor modechanged from markup language to others
2755b49 [Mina Lee] Fix bug of wrong syntax highlight when there is %html String in paragraph
2016-11-26 23:04:09 +09:00
Jun
823e2e0248 [ZEPPELIN-1705] Exclude unnecessary source file when check style on scio
### What is this PR for?
When building Zeppelin with `mvn clean package install -DskipTests -DskipRat`, it fails on `scio` with an error log below:
```sh
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.13:check (checkstyle-fail-build) on project zeppelin-scio_2.10: You have 51 Checkstyle violations. -> [Help 1]
```
This is because of **style check on a generated source**, which is exactly `$ZEPPELIN_HOME/scio/target/generated-sources/avro/org/apache/zeppelin/scio/avro/Account.java`

This PR will make style check excludes the generated source.

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

### What is the Jira issue?
[ZEPPELIN-1705](https://issues.apache.org/jira/browse/ZEPPELIN-1705)

### How should this be tested?
Run `mvn clean package install -DskipTests -DskipRat`. It should print `BUILD SUCCESS`

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

Author: Jun <i2r.jun@gmail.com>

Closes #1676 from tae-jun/ZEPPELIN-1705 and squashes the following commits:

2c1c56b [Jun] Exclude unnecessary source file when check style on scio
2016-11-26 20:33:50 +09:00