-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Add JDBC Interpreter for Mysql #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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
|
Thanks for your comment. |
|
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". |
|
Thank you for your interest. I think you seem to be not latest source. |
|
Thanks @1teed. I had not seen the latest changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
|
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
version should be 0.5.0-incubating-SNAPSHOT
and line 31, too. (check #59)
|
@hyonaldo be4b52b 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? |
|
Are temporary tables possible with the interpreter connector? I quickly tried one and got Apart from that everything else runs smoothly. Thanks! |
|
@1teed I added postgresql support and create a merge request to your repo. Limitation of this interpreter -- may crush zeppelin when running large query. |
|
@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? |
|
Looks good, when are we merging it? |
|
+1 please go ahead and merge into master On Wed, Jun 10, 2015 at 6:40 PM, riomario1 [email protected] wrote:
|
|
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 |
|
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. |
|
I'm not sure about merging it, while this implementation depends on |
|
Yes. The GPL license makes mysql-connector be category X. We cannot ship a release with that component, even unmodified. |
|
Do you pack mysql-connector.jar within the release? |
|
Hi, How do I use MySQL with zeppelin? Please provide steps Thank you |
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? |
|
At http://apache.cbox.biz/incubator/zeppelin/0.5.0-incubating/ (my neareast Apache mirror) I see two binary downloads and one source download. |
|
When do you planning to release MySQL interpreter ? |
|
Mysql is the most awaited feature :) Sent from my iPhone
|
|
@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. |
|
@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/[email protected]/msg05504.html) and issue(https://issues.apache.org/jira/browse/ZEPPELIN-439) |
|
@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
