Uh oh!
There was an error while loading. Please reload this page.
Add JDBC Interpreter for Mysql - #60
Conversation
Leemoonsoo
commented
May 6, 2015
Thanks for the contribution. For default value of zeppelin-site.xml, you'll need add JDBCInterpreter to zeppelin-zengine/src/main/java/org/apache/conf/ZeppelinConfiguration.java L384, ZEPPELIN_INTERPRETERS. And about mysql dependency in jdbc/pom.xml file, I think the dependency's version is The GNU General Public License, Version 2 and should not be used. |
…GNU General Public License, Version 2
…main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java
1teed
commented
May 6, 2015
Thanks for your comment. |
sylvinho81
commented
May 6, 2015
Hi @1teed, I am trying to apply this patch and test it, because I think is really interesting and I need it. I can see: [INFO] ------------------------------------------------------------------------ But when I execute "bin/zeppelin-daemon.sh start" and try to add the interpreter in http://localhost:8080/ I can not see the option "jdbc" in the dropdown "Interpreter". |
1teed
commented
May 7, 2015
Thank you for your interest. I think you seem to be not latest source. |
sylvinho81
commented
May 7, 2015
Thanks @1teed. I had not seen the latest changes |
There was a problem hiding this comment.
Since this is using java.sql.DriverManager, it should support all JDBC driver with the same code, and not just mysql, correct?
There was a problem hiding this comment.
@felixcheung are correct.
Using java.sql.DriverManager is support all JDBC driver with the same code.
(such as jdbc/src/main/java/org/apache/zeppelin/jdbc/MysqlConnection.java : Line 73)
But every JDBC driver name and url pattern is different.
jmrr
commented
May 12, 2015
@1teed Thanks for the contribution. Tested with a centos-zeppeling docker image and works fine! Looking forward to the merge! |
There was a problem hiding this comment.
version should be 0.5.0-incubating-SNAPSHOT
and line 31, too. (check #59)
Leemoonsoo
commented
May 13, 2015
@hyonaldobe4b52b changes the mysql dependency version. but it is still GPLv2 License. In my understanding, If code is depends on some GPL (depends means more like can not functioning without it), it can not be included. If i'm right, I think it's better to make JdbcInterpreter completely independent to mysql. Any ideas? |
jmrr
commented
May 21, 2015
Are temporary tables possible with the interpreter connector? I quickly tried one and got Apart from that everything else runs smoothly. Thanks! |
ZhijieWang
commented
May 30, 2015
@1teed I added postgresql support and create a merge request to your repo. Limitation of this interpreter -- may crush zeppelin when running large query. |
jongyoul
commented
Jun 1, 2015
@Leemoonsoo Concerning licenses, I've heard that GPL shouldn't be included in apache projects, and known that some project in Apache also doesn't have a mysql-connector-java packages due to same reason. I think JdbcInterpreter looks better and general. @1teed How about you? |
riomario1
commented
Jun 10, 2015
Looks good, when are we merging it? |
jmrr
commented
Jun 10, 2015
+1 please go ahead and merge into master On Wed, Jun 10, 2015 at 6:40 PM, riomario1 notifications@github.com wrote:
|
jmrr
commented
Jul 2, 2015
What happened to this? It hasn't been merged to master yet and I'm having problems merging it locally as the master branch is starting to diverge... Thanks |
rquast
commented
Jul 29, 2015
Is this getting merged still? Just tried it out and found that it could do with some default settings for the interpreter (jdbc - default it to mysql, host, user, password, port). Works great - very useful. |
Leemoonsoo
commented
Aug 3, 2015
I'm not sure about merging it, while this implementation depends on |
tdunning
commented
Aug 3, 2015
Yes. The GPL license makes mysql-connector be category X. We cannot ship a release with that component, even unmodified. |
martin-g
commented
Aug 4, 2015
Do you pack mysql-connector.jar within the release? |
riomario1
commented
Aug 7, 2015
Hi, How do I use MySQL with zeppelin? Please provide steps Thank you |
Leemoonsoo
commented
Aug 8, 2015
I think answer currently is yes, although binary packages are provided as a favor. Exclude mysql interpreter by default from the build, but let user enabling with some special flag, will this solve the license issue? |
martin-g
commented
Aug 11, 2015
At http://apache.cbox.biz/incubator/zeppelin/0.5.0-incubating/ (my neareast Apache mirror) I see two binary downloads and one source download. |
neptun2000
commented
Aug 29, 2015
When do you planning to release MySQL interpreter ? |
riomario1
commented
Aug 29, 2015
Mysql is the most awaited feature :) Sent from my iPhone
|
jongyoul
commented
Dec 6, 2015
@1teed Hi, do you still have an interest to contribute this feature? I've found that your PR is the first one for supporting JDBC thus I think it's important to ask your opinion. |
jongyoul
commented
Dec 21, 2015
@1teed Now, I will try to contact @andrescelis to accept jdbc interpreter. I hope you would understand it. And please check the mailing(https://www.mail-archive.com/dev@zeppelin.incubator.apache.org/msg05504.html) and issue(https://issues.apache.org/jira/browse/ZEPPELIN-439) |
jongyoul
commented
Feb 25, 2016
@1teed please close this PR. |
I added jdbc interpreter for mysql
I used Abstract Factory Pattern
It has the advantage that can be separated using the JDBC Connection only argument value
How to add your jdbc driver
Set interpreter

How to Use
