-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[ZEPPELIN-4602] Added initial version of InfluxDB interpreter #3640
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
influxdb/README.md
Outdated
| ## Build | ||
|
|
||
| ``` | ||
| mvn -pl zeppelin-interpreter,zeppelin-display,influxdb -DskipTests package |
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.
You can use mvn -pl influxdb -am -DskipTests package, influxdb depends on zeppelin-interpreter-shaded, so use -am would be easier. BTW, does influxdb interpreter depends on zeppelin-display ?
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.
The interpreter does not depends on zeppelin-display, I just copied it from another interpreter. It is very basic interpreter now. In future we would like to add syntax highlighting and code complete.
| <dependency> | ||
| <groupId>com.influxdb</groupId> | ||
| <artifactId>influxdb-client-java</artifactId> | ||
| <version>${influxdb.client.version}</version> |
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.
What is the license of this dependency ? You need to put it in LICENCE file.
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.
MIT, I added license to zeppelin-distribution/src/bin_license/LICENSE
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.
I also added RxJava (Apache2 license) (used by InfluxDB client library)
| <dependency> | ||
| <groupId>com.squareup.okhttp3</groupId> | ||
| <artifactId>mockwebserver</artifactId> | ||
| <version>${dependency.okhttp3.version}</version> |
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.
Same licence issue as above
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.
Apache 2, I added license to zeppelin-distribution/src/bin_license/LICENSE
influxdb/pom.xml
Outdated
| <groupId>org.apache.maven.plugins</groupId> | ||
| <artifactId>maven-checkstyle-plugin</artifactId> | ||
| <configuration> | ||
| <skip>false</skip> |
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.
It's better to enable it. We are planning to enable it for other modules as well.
|
@rhajek Could you do a rebase and trigger the travis CI again ? |
|
It looks like there are some breaking changes, InfluxDBInterpreter.java:[28,39] cannot find symbol symbol: class BaseZeppelinContext, I will look on that. |
|
@rhajek This is due to code refactoring which we just rename |
|
ping @rhajek Any update ? |
|
Oh sorry, Instead of rebase I merged 'apache:master' into my fork 'rhajek:master'. Now this PR should be ready for merge. |
|
@zjffdu how does this look now? Good to go? |
|
@rajeshkp Could you paste the travis CI link ? |
Any updates ? Can I help with something ? |
|
Sorry, I ping the wrong id, @rhajek Could you rebase this PR and paste the travis CI link ? |
|
Rebased, here is the travis link: https://travis-ci.org/github/rhajek/zeppelin?utm_medium=notification&utm_source=github_status |
|
@rhajek There's several failure, may be due to flaky test. Could you rerun the build ? |
alexott
left a comment
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.
LGTM...
@zjffdu what do you think?
| static final String EMPTY_COLUMN_VALUE = ""; | ||
|
|
||
| InfluxDBClient client; | ||
| QueryApi queryApi; |
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.
does it make sense to mark it as volatile ?
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.
I'am not sure, I marked both variables as private and volatile.
…plugin configuration
…port for InfluxDB 1.8, interpreter code cleanup
|
I rebased PR, Travis build also looks ok. |
|
LGTM |
1 similar comment
|
LGTM |
### What is this PR for? The goal is to add support for querying InfluxDB 2.x using Flux language in Zeppelin notebook. InfluxDB 2.0 (beta) docs https://v2.docs.influxdata.com/v2.0/ Flux language docs: https://docs.influxdata.com/flux/ ### What type of PR is it? Feature ### What is the Jira issue? * Open an issue on Jira https://issues.apache.org/jira/browse/ZEPPELIN-4602 ### 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) linked in docs/interpreter/influxdb.md Author: Robert Hajek <[email protected]> Closes #3640 from rhajek/master and squashes the following commits: 206848e [Robert Hajek] [ZEPPELIN-4602] updated influxdb client libraries to 1.7.0, added support for InfluxDB 1.8, interpreter code cleanup 34cd9ed [Robert Hajek] [ZEPPELIN-4602] BaseZeppelinContext replaced 8955205 [Robert Hajek] [ZEPPELIN-4602] Updated README.md, removed specific maven-checkstyle-plugin configuration 04b7e28 [Robert Hajek] [ZEPPELIN-4602] Added licences b6b9a48 [Robert Hajek] [ZEPPELIN-4602] Added initial version of InfluxDB interpreter (cherry picked from commit 94300b3) Signed-off-by: Alex Ott <[email protected]>

What is this PR for?
The goal is to add support for querying InfluxDB 2.x using Flux language in Zeppelin notebook.
InfluxDB 2.0 (beta) docs
https://v2.docs.influxdata.com/v2.0/
Flux language docs:
https://docs.influxdata.com/flux/
What type of PR is it?
Feature
What is the Jira issue?
How should this be tested?
Screenshots (if appropriate)
linked in docs/interpreter/influxdb.md