You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by onkarshedge <gi...@git.apache.org> on 2016/05/04 13:08:12 UTC
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
GitHub user onkarshedge opened a pull request:
https://github.com/apache/incubator-zeppelin/pull/873
Zeppelin configuration getStringValue() returns multiple values comma\u2026
### What is this PR for?
ZeppelinConfiguration getStringValue(String name,String d) returns only a single value. To have it return multiple comma separated values. These multiple values are used by NotebookRepoSync and interpreterClassList in InterpreterFactory in zeppelin-zengine
### What type of PR is it?
[Bug Fix ]
### Todos
* [ ] - Review
### What is the Jira issue?
* [ZEPPELIN-839](https://issues.apache.org/jira/browse/ZEPPELIN-839)
### How should this be tested?
Create a Note and have a look at Configuration
### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update?
* Is there breaking changes for older versions?
* Does this needs documentation?
\u2026 separated
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/onkarshedge/incubator-zeppelin Zeppelin-839-Zeppelin-configuration
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-zeppelin/pull/873.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 #873
----
commit 23307459784e4fa862181463197241342d3da506
Author: onkarshedge <sh...@gmail.com>
Date: 2016-05-04T12:26:31Z
Zeppelin configuration getStringValue() returns multiple values comma separated
----
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge closed the pull request at:
https://github.com/apache/incubator-zeppelin/pull/873
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/873#issuecomment-217056217
Hi @onkarshedge thank you for submitting a fix!
In case of fixing a bug in any code, first thing to do is to try adding some kind of (unit-)test to the existing project test suite in order to reproduce the bug. And then implement the fix and make sure the tests pass.
This way we are building a "safe-net", so other people can be sure that this particular bug does not happen again, later on.
Good place to add a test that reproduces this bug would be in [ZeppelinConfigurationTest.java](https://github.com/apache/incubator-zeppelin/blob/master/zeppelin-zengine/src/test/java/org/apache/zeppelin/conf/ZeppelinConfigurationTest.java)
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by khalidhuseynov <gi...@git.apache.org>.
Github user khalidhuseynov commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/873#issuecomment-217091429
@onkarshedge I believe you can add test(s) in this PR
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by bzz <gi...@git.apache.org>.
Github user bzz commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/873#issuecomment-217450451
@onkarshedge it's perfectly fine, you did very well and thank you for taking a stab!
Shall we continue with original plan of submitting a PR to https://github.com/bzz/incubator-zeppelin with XML notebook repo?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/873#issuecomment-217082413
@bzz so shall I send another pull request with the test case in ZeppelinConfigurationTest.java or in this PR itself ?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-zeppelin pull request: Zeppelin configuration getStringV...
Posted by onkarshedge <gi...@git.apache.org>.
Github user onkarshedge commented on the pull request:
https://github.com/apache/incubator-zeppelin/pull/873#issuecomment-217352893
Ohh, I get it. I was adding new NotebookRepos in zeppelin-site.xml this way. So I was getting only one Notebookrepo and wrote the code in PR to combine them in a single string.
<property>
<name>zeppelin.notebook.storage</name>
<value>org.apache.zeppelin.notebook.repo.IPFSNotebookRepo</value>
<description>some new notebookrepo experiments </description>
</property>
<property>
<name>zeppelin.notebook.storage</name>
<value>org.apache.zeppelin.notebook.repo.VFSNotebookRepo</value>
<description>notebook persistence layer implementation</description>
</property>
```allvalues = "org.apache.zeppelin.notebook.repo.VFSNotebookRepo,org.apache.zeppelin.notebook.repo.IPFSNotebookRepo,"```
We have to give the values(notebook.storage class names) in zeppelin-site.xml comma separated there itself.
<property>
<name>zeppelin.notebook.storage</name>
<value>org.apache.zeppelin.notebook.repo.VFSNotebookRepo,org.apache.zeppelin.notebook.repo.IPFSNotebookRepo</value>
<description>notebook persistence layer implementation</description>
</property>
I am really sorry @bzz
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---