[jira] [Created] (ZEPPELIN-3971) Different spark versions for release 0.8.1

2019-01-28 Thread miyamoto (JIRA)
miyamoto created ZEPPELIN-3971:
--

 Summary: Different spark versions for release 0.8.1
 Key: ZEPPELIN-3971
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3971
 Project: Zeppelin
  Issue Type: Bug
  Components: build
Affects Versions: 0.8.1
 Environment: * Linux
 * docker 18.09.1
 * Zeppelin 0.8.1 (local install)
 * Zeppelin 0.8.1 (docker image)
Reporter: miyamoto


When using the docker image of zeppelin 0.8.1 the spark interpreter version is 
2.2.1, however, when running locally 0.8.1 has spark 2.3.1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] liuxunorg commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom menu display with multiple URL link

2019-01-28 Thread GitBox
liuxunorg commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom 
menu display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-458145415
 
 
   @zjffdu , I re-completed the custom single menu and multi-menu test, fixed 
the bug of the custom single menu, and passed the 
[CI](https://travis-ci.org/liuxunorg/zeppelin/builds/485355195), please help me 
merge the code, thank you!


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] liuxunorg edited a comment on issue #3273: [ZEPPELIN-3920] Paragraph support custom menu display with multiple URL link

2019-01-28 Thread GitBox
liuxunorg edited a comment on issue #3273: [ZEPPELIN-3920] Paragraph support 
custom menu display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-458102309
 
 
   **Complete custom single-menu & multi-menu test.**
   
   Custom single-menu test code:
   ```
   Map infos = new java.util.HashMap();
   infos.put("jobUrl", "jobUrl");
   infos.put("label", "SPARK JOB");
   infos.put("tooltip", "View in Spark web UI");
   infos.put("noteId", context.getNoteId());
   infos.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-single-menu.png?raw=true
 "custom-single-menu.png")
   
Custom multi-menu test code:
   ```
   Map infos = new java.util.HashMap();
   infos.put("jobUrl", "jobUrl");
   infos.put("label", "SPARK JOB");
   infos.put("jobLabel", "Yarn log");
   infos.put("tooltip", "View in Spark web UI");
   infos.put("noteId", context.getNoteId());
   infos.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos);
   
   Map infos2 = new java.util.HashMap();
   infos2.put("jobUrl", "jobUrl");
   infos2.put("label", "SPARK JOB");
   infos2.put("tooltip", "View in Spark web UI");
   infos2.put("noteId", context.getNoteId());
   infos2.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos2);
   
   Map infos3 = new java.util.HashMap();
   infos3.put("jobUrl", "jobUrl");
   infos3.put("label", "SPARK JOB");
   infos3.put("tooltip", "View in Spark web UI");
   infos3.put("noteId", context.getNoteId());
   infos3.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos3);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-multi-menu.png?raw=true
 "custom-multi-menu.png")
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] liuxunorg commented on issue #3203: [ZEPPELIN-3626] Cluster server and client module design

2019-01-28 Thread GitBox
liuxunorg commented on issue #3203: [ZEPPELIN-3626] Cluster server and client 
module design
URL: https://github.com/apache/zeppelin/pull/3203#issuecomment-458155921
 
 
   @zjffdu , I re-triggered the 
CI(https://travis-ci.org/liuxunorg/zeppelin/builds/484259181) and generated the 
run log. JOB3, JOB7 and JOB8 in travis CI failed due to `guava.version` version 
issue, please help me solve it, thank you!
   My git repository address: 
(https://github.com/liuxunorg/zeppelin/tree/ZEPPELIN-3626)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] liuxunorg commented on issue #3288: [ZEPPELIN-2274] - update cron UI

2019-01-28 Thread GitBox
liuxunorg commented on issue #3288: [ZEPPELIN-2274] - update cron UI
URL: https://github.com/apache/zeppelin/pull/3288#issuecomment-458148940
 
 
   The effect is good. It means that the color matching of the interface is not 
well coordinated with zeppelin, and the background color of the editing area on 
the right may be better.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] maziyarpanahi edited a comment on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a more recent commons-lang3 than Zeppelin-0.8

2019-01-28 Thread GitBox
maziyarpanahi edited a comment on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a 
more recent commons-lang3 than Zeppelin-0.8
URL: https://github.com/apache/zeppelin/pull/3290#issuecomment-458241138
 
 
   Thank you @zjffdu 
   I will make another pull request to add the 2 new tests to the master.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] maziyarpanahi closed pull request #3290: [ZEPPELIN-3939] Spark 2.4 uses a more recent commons-lang3 than Zeppelin-0.8

2019-01-28 Thread GitBox
maziyarpanahi closed pull request #3290: [ZEPPELIN-3939] Spark 2.4 uses a more 
recent commons-lang3 than Zeppelin-0.8
URL: https://github.com/apache/zeppelin/pull/3290
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] maziyarpanahi commented on issue #3107: [ZEPPELIN-3646] Add note for updating user permissions

2019-01-28 Thread GitBox
maziyarpanahi commented on issue #3107: [ZEPPELIN-3646] Add note for updating 
user permissions
URL: https://github.com/apache/zeppelin/pull/3107#issuecomment-458240909
 
 
   Most definitely! Thank you @egorklimov and @zjffdu  


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] maziyarpanahi commented on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a more recent commons-lang3 than Zeppelin-0.8

2019-01-28 Thread GitBox
maziyarpanahi commented on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a more 
recent commons-lang3 than Zeppelin-0.8
URL: https://github.com/apache/zeppelin/pull/3290#issuecomment-458241138
 
 
   Thank you @zjffdu 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


R docker container support

2019-01-28 Thread tecgie88
Hi

In zeppelin 0.8, there is a support for python container. I want to know if 
there is a plan to support R container? If not, any suggestion on 3rd library 
that behaves like py4j? We are evaluating how to have a R interpreter to send R 
script to a R container for execution and get the result back for display.

Thanks
Denny


[GitHub] Tagar commented on issue #3263: ZEPPELIN-3907. Add code statement into Spark JobGroup Id for SparkInterpreter

2019-01-28 Thread GitBox
Tagar commented on issue #3263: ZEPPELIN-3907. Add code statement into Spark 
JobGroup Id for SparkInterpreter
URL: https://github.com/apache/zeppelin/pull/3263#issuecomment-458275316
 
 
   > While this is a really nice feature to have, it does introduce some risk 
of information leakage in an organization. Take for example `select * from 
tableofsecrets where secretcolumn = 'supersecret'`.
   > What about adding a configuration parameter for activating this feature?
   
   That's a good point. 
   
   Although I think it's possible to lock down Spark Driver UI through 
`spark.ui.filters`?
   
   Also it might be possible to redact out passwords and other sensitive 
information in Zeppelin - something similar to `spark.redaction.regex`.
   
   Maybe this change should be an option and off by default?
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[jira] [Created] (ZEPPELIN-3973) REST API should be backward compatible

2019-01-28 Thread Raz Yalov (JIRA)
Raz Yalov created ZEPPELIN-3973:
---

 Summary: REST API should be backward compatible
 Key: ZEPPELIN-3973
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3973
 Project: Zeppelin
  Issue Type: Improvement
  Components: rest-api
Affects Versions: 0.8.0
Reporter: Raz Yalov


The whole idea of an API is that it is backward compatible so that my code can 
handle changes gracefully. The current API is so poorly designed that even the 
version API itself broke compatibility between version 0.7.x and 0.8.x. I would 
expect that APIs would be 100% version compatible and if a need arises to 
change an API, you should introduce a version prefix such as /api/v1/ and 
/api/v2/ so that all calls within a version are not changing.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] zjffdu opened a new pull request #3292: ZEPPELIN-3970. JdbcInterpreter is broken

2019-01-28 Thread GitBox
zjffdu opened a new pull request #3292: ZEPPELIN-3970. JdbcInterpreter is broken
URL: https://github.com/apache/zeppelin/pull/3292
 
 
   ### What is this PR for?
   A few sentences describing the overall goals of the pull request's commits.
   First time? Check out the contributing guide - 
https://zeppelin.apache.org/contribution/contributions.html
   
   
   ### What type of PR is it?
   [Bug Fix | Improvement | Feature | Documentation | Hot Fix | Refactoring]
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/
   * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. 
[ZEPPELIN-533]
   
   ### How should this be tested?
   * First time? Setup Travis CI as described on 
https://zeppelin.apache.org/contribution/contributions.html#continuous-integration
   * Strongly recommended: add automated unit tests for any new or changed 
behavior
   * Outline any manual steps to test the PR here.
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the licenses files need update?
   * Is there breaking changes for older versions?
   * Does this needs documentation?
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


Re: R docker container support

2019-01-28 Thread Jeff Zhang
Zeppelin has R interpreter which you can use to evaluate r script. Could
you let us know why this R interpreter can not meet your requirement ?

 于2019年1月29日周二 上午3:16写道:

> Hi
>
> In zeppelin 0.8, there is a support for python container. I want to know
> if there is a plan to support R container? If not, any suggestion on 3rd
> library that behaves like py4j? We are evaluating how to have a R
> interpreter to send R script to a R container for execution and get the
> result back for display.
>
> Thanks
> Denny
>


-- 
Best Regards

Jeff Zhang


[GitHub] zjffdu commented on issue #3278: [ZEPPELIN-3931] Redisplay angularObjectBind when the note is reopened

2019-01-28 Thread GitBox
zjffdu commented on issue #3278: [ZEPPELIN-3931] Redisplay angularObjectBind 
when the note is reopened
URL: https://github.com/apache/zeppelin/pull/3278#issuecomment-458391600
 
 
   @liuxunorg Could you rebase it to fix the conflict ?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] asfgit closed pull request #3291: ZEPPELIN-3887. Print INTERPRETER_RUN_COMMAND in interpreter.sh for debugging purpose

2019-01-28 Thread GitBox
asfgit closed pull request #3291: ZEPPELIN-3887. Print INTERPRETER_RUN_COMMAND 
in interpreter.sh for debugging purpose
URL: https://github.com/apache/zeppelin/pull/3291
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] asfgit closed pull request #3273: [ZEPPELIN-3920] Paragraph support custom menu display with multiple URL link

2019-01-28 Thread GitBox
asfgit closed pull request #3273: [ZEPPELIN-3920] Paragraph support custom menu 
display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


Re: R docker container support

2019-01-28 Thread Jeff Zhang
There's one jira about support k8s on zeppelin, maybe this is what you need.

https://jira.apache.org/jira/browse/ZEPPELIN-3840



 于2019年1月29日周二 下午12:00写道:

> Hi
>
> Currently, we have zeppelin and python containers running separately, so
> we can scale them individually. For example, user can specify how much
> computer resources (cpu and memory) to assign to the python container
> depending on the python script compute requirement. We want to do the same
> for R language. I can see there are R docker images out there, so it
> shouldn’t be an issue running R in a container. However, it is not clear to
> me how R interpreter can send R scripts to the container for execution and
> get the result back for display. Do you have any suggestion?
>
> Thanks
> Denny
>
> > On Jan 28, 2019, at 8:37 PM, Jeff Zhang  wrote:
> >
> > Zeppelin has R interpreter which you can use to evaluate r script. Could
> > you let us know why this R interpreter can not meet your requirement ?
> >
> >  于2019年1月29日周二 上午3:16写道:
> >
> >> Hi
> >>
> >> In zeppelin 0.8, there is a support for python container. I want to know
> >> if there is a plan to support R container? If not, any suggestion on 3rd
> >> library that behaves like py4j? We are evaluating how to have a R
> >> interpreter to send R script to a R container for execution and get the
> >> result back for display.
> >>
> >> Thanks
> >> Denny
> >>
> >
> >
> > --
> > Best Regards
> >
> > Jeff Zhang
>
>

-- 
Best Regards

Jeff Zhang


[GitHub] liuxunorg commented on issue #3278: [ZEPPELIN-3931] Redisplay angularObjectBind when the note is reopened

2019-01-28 Thread GitBox
liuxunorg commented on issue #3278: [ZEPPELIN-3931] Redisplay angularObjectBind 
when the note is reopened
URL: https://github.com/apache/zeppelin/pull/3278#issuecomment-458407029
 
 
   @zjffdu , I rebase it to fix the conflict, CI 
Pass(https://travis-ci.org/liuxunorg/zeppelin/builds/485718405)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[jira] [Created] (ZEPPELIN-3975) Add limit local property for SparkInterpreter and JdbcInterpreter

2019-01-28 Thread Jeff Zhang (JIRA)
Jeff Zhang created ZEPPELIN-3975:


 Summary: Add limit local property for SparkInterpreter and 
JdbcInterpreter
 Key: ZEPPELIN-3975
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3975
 Project: Zeppelin
  Issue Type: Improvement
Reporter: Jeff Zhang






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] asfgit closed pull request #3289: ZEPPELIN-3935. Enable color output of spark scala interpreter

2019-01-28 Thread GitBox
asfgit closed pull request #3289: ZEPPELIN-3935. Enable color output of spark 
scala interpreter
URL: https://github.com/apache/zeppelin/pull/3289
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] zjffdu commented on issue #3107: [ZEPPELIN-3646] Add note for updating user permissions

2019-01-28 Thread GitBox
zjffdu commented on issue #3107: [ZEPPELIN-3646] Add note for updating user 
permissions
URL: https://github.com/apache/zeppelin/pull/3107#issuecomment-458374638
 
 
   Thanks @egorklimov and @maziyarpanahi  I have merged it and update the 
zeppelin web site. 
   
   @egorklimov Could you close this PR ?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[jira] [Created] (ZEPPELIN-3974) Organize zeppelin integration test

2019-01-28 Thread Jeff Zhang (JIRA)
Jeff Zhang created ZEPPELIN-3974:


 Summary: Organize zeppelin integration test
 Key: ZEPPELIN-3974
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3974
 Project: Zeppelin
  Issue Type: Improvement
Reporter: Jeff Zhang


Currently zeppelin's integration test is scattered in several places, some are 
in zeppelin-integration module, and some are in zeppelin-zengine module. we 
should organize them properly.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


Re: R docker container support

2019-01-28 Thread tecgie88
Hi

Currently, we have zeppelin and python containers running separately, so we can 
scale them individually. For example, user can specify how much computer 
resources (cpu and memory) to assign to the python container depending on the 
python script compute requirement. We want to do the same for R language. I can 
see there are R docker images out there, so it shouldn’t be an issue running R 
in a container. However, it is not clear to me how R interpreter can send R 
scripts to the container for execution and get the result back for display. Do 
you have any suggestion?

Thanks
Denny

> On Jan 28, 2019, at 8:37 PM, Jeff Zhang  wrote:
> 
> Zeppelin has R interpreter which you can use to evaluate r script. Could
> you let us know why this R interpreter can not meet your requirement ?
> 
>  于2019年1月29日周二 上午3:16写道:
> 
>> Hi
>> 
>> In zeppelin 0.8, there is a support for python container. I want to know
>> if there is a plan to support R container? If not, any suggestion on 3rd
>> library that behaves like py4j? We are evaluating how to have a R
>> interpreter to send R script to a R container for execution and get the
>> result back for display.
>> 
>> Thanks
>> Denny
>> 
> 
> 
> -- 
> Best Regards
> 
> Jeff Zhang



[GitHub] zjffdu commented on issue #3249: [ZEPPELIN-3898] Adding repo in testDelRepo so test can run by itself

2019-01-28 Thread GitBox
zjffdu commented on issue #3249: [ZEPPELIN-3898] Adding repo in testDelRepo so 
test can run by itself
URL: https://github.com/apache/zeppelin/pull/3249#issuecomment-458418120
 
 
   Will merge if no more comments


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] asfgit closed pull request #3249: [ZEPPELIN-3898] Adding repo in testDelRepo so test can run by itself

2019-01-28 Thread GitBox
asfgit closed pull request #3249: [ZEPPELIN-3898] Adding repo in testDelRepo so 
test can run by itself
URL: https://github.com/apache/zeppelin/pull/3249
 
 
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[jira] [Created] (ZEPPELIN-3976) Create AbstractInterprter for common usage

2019-01-28 Thread Jeff Zhang (JIRA)
Jeff Zhang created ZEPPELIN-3976:


 Summary: Create AbstractInterprter for common usage
 Key: ZEPPELIN-3976
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3976
 Project: Zeppelin
  Issue Type: Improvement
Reporter: Jeff Zhang


* Support ZeppelinContext
 * Support z variable replacement



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] zjffdu opened a new pull request #3293: ZEPPELIN-3976. Create AbstractInterprter for common usage

2019-01-28 Thread GitBox
zjffdu opened a new pull request #3293: ZEPPELIN-3976. Create 
AbstractInterprter for common usage
URL: https://github.com/apache/zeppelin/pull/3293
 
 
   ### What is this PR for?
   A few sentences describing the overall goals of the pull request's commits.
   First time? Check out the contributing guide - 
https://zeppelin.apache.org/contribution/contributions.html
   
   
   ### What type of PR is it?
   [Bug Fix | Improvement | Feature | Documentation | Hot Fix | Refactoring]
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN/
   * Put link here, and add [ZEPPELIN-*Jira number*] in PR title, eg. 
[ZEPPELIN-533]
   
   ### How should this be tested?
   * First time? Setup Travis CI as described on 
https://zeppelin.apache.org/contribution/contributions.html#continuous-integration
   * Strongly recommended: add automated unit tests for any new or changed 
behavior
   * Outline any manual steps to test the PR here.
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Does the licenses files need update?
   * Is there breaking changes for older versions?
   * Does this needs documentation?
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] liuxunorg commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom menu display with multiple URL link

2019-01-28 Thread GitBox
liuxunorg commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom 
menu display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-458102309
 
 
   **Complete single-menu & multi-menu test.**
   
   Custom single-menu test code:
   ```
   Map infos = new java.util.HashMap();
   infos.put("jobUrl", "jobUrl");
   infos.put("label", "SPARK JOB");
   infos.put("tooltip", "View in Spark web UI");
   infos.put("noteId", context.getNoteId());
   infos.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-single-menu.png?raw=true
 "custom-single-menu.png")
   
Custom multi-menu test code:
   ```
   Map infos = new java.util.HashMap();
   infos.put("jobUrl", "jobUrl");
   infos.put("label", "SPARK JOB");
   infos.put("jobLabel", "Yarn log");
   infos.put("tooltip", "View in Spark web UI");
   infos.put("noteId", context.getNoteId());
   infos.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos);
   
   Map infos2 = new java.util.HashMap();
   infos2.put("jobUrl", "jobUrl");
   infos2.put("label", "SPARK JOB");
   infos2.put("tooltip", "View in Spark web UI");
   infos2.put("noteId", context.getNoteId());
   infos2.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos2);
   
   Map infos3 = new java.util.HashMap();
   infos3.put("jobUrl", "jobUrl");
   infos3.put("label", "SPARK JOB");
   infos3.put("tooltip", "View in Spark web UI");
   infos3.put("noteId", context.getNoteId());
   infos3.put("paraId", context.getParagraphId());
   context.getIntpEventClient().onParaInfosReceived(infos3);
   ```
   ![alt 
text](https://github.com/liuxunorg/images/blob/master/zeppelin/custom-multi-menu.png?raw=true
 "custom-multi-menu.png")
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[jira] [Created] (ZEPPELIN-3972) Inaccurate result values in UI with BigInt values

2019-01-28 Thread Vladimir Riha (JIRA)
Vladimir Riha created ZEPPELIN-3972:
---

 Summary: Inaccurate result values in UI with BigInt values
 Key: ZEPPELIN-3972
 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3972
 Project: Zeppelin
  Issue Type: Bug
  Components: front-end
Affects Versions: 0.8.0
Reporter: Vladimir Riha


We are trying to display data from sql table using sql interpreter and found 
out that it is not possible to display numbers higher than 
Number.MAX_SAFE_INTEGER due to the way how results are being parsed in 
frontend. As a result, if we have large number in DB, zeppelin UI will display 
it wrong.

 

In file {{apache-zeppelin/zeppelin-web/src/app/tabledata/tabledata.js }} there 
is following piece of code in method {{loadParagraphResult}}
{noformat}
 if (!isNaN(valueOfCol = parseFloat(col)) && isFinite(col)) {
col = valueOfCol;
  }
{noformat}
The problem is that in JS, following code:
{noformat}
parseFloat("1234567890123456785", 10)
{noformat}
returns {{1234567890123456800}} so the displayed results are not accurate. I 
think it should be possible to use e.g. BigInt [1] or maybe even avoid casting 
the value to number completely?

[1] 
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[GitHub] zjffdu commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom menu display with multiple URL link

2019-01-28 Thread GitBox
zjffdu commented on issue #3273: [ZEPPELIN-3920] Paragraph support custom menu 
display with multiple URL link
URL: https://github.com/apache/zeppelin/pull/3273#issuecomment-458050820
 
 
   LGTM, will merge if no more comment


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] zjffdu commented on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a more recent commons-lang3 than Zeppelin-0.8

2019-01-28 Thread GitBox
zjffdu commented on issue #3290: [ZEPPELIN-3939] Spark 2.4 uses a more recent 
commons-lang3 than Zeppelin-0.8
URL: https://github.com/apache/zeppelin/pull/3290#issuecomment-458067719
 
 
   @maziyarpanahi  I have committed it to branch-0.8, could you close this PR ?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] egorklimov opened a new pull request #3107: [ZEPPELIN-3646] Add note for updating user permissions

2019-01-28 Thread GitBox
egorklimov opened a new pull request #3107: [ZEPPELIN-3646] Add note for 
updating user permissions
URL: https://github.com/apache/zeppelin/pull/3107
 
 
   ### What is this PR for?
   
   This is @mebelousov workaround to @maziyarpanahi 
[problem](https://issues.apache.org/jira/browse/ZEPPELIN-3646) refactored with 
REST API. It will be helpful for everyone who is upgrading from any version 
less than 0.8.x
   
   ### What type of PR is it?
   Improvement
   
   ### What is the Jira issue?
   issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-3646
   
   ### How should this be tested?
   * Tested manually 
   
   ### Screenshots (if appropriate)
   * Note in report view:
   
   ![screenshot_2018-08-06 migrate from 0 7 - zeppelin 
1](https://user-images.githubusercontent.com/6136993/43728805-dce8de10-99ae-11e8-9436-5a5abc515e29.png)
   
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs documentation? Yes, docs updated
   


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] egorklimov commented on issue #3107: [ZEPPELIN-3646] Add note for updating user permissions

2019-01-28 Thread GitBox
egorklimov commented on issue #3107: [ZEPPELIN-3646] Add note for updating user 
permissions
URL: https://github.com/apache/zeppelin/pull/3107#issuecomment-458071772
 
 
   I think it would be a nice solution ;)
   
   @maziyarpanahi WDYT?


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services