You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/06/16 12:29:04 UTC
[GitHub] [flink] lirui-apache opened a new pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
lirui-apache opened a new pull request #12682:
URL: https://github.com/apache/flink/pull/12682
…tor-hive 1.2.2 and 2.2.0
<!--
*Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*
*Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*
## Contribution Checklist
- Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.
- Name the pull request in the form "[FLINK-XXXX] [component] Title of the pull request", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.
Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Azure Pipelines CI to do that following [this guide](https://cwiki.apache.org/confluence/display/FLINK/Azure+Pipelines#AzurePipelines-Tutorial:SettingupAzurePipelinesforaforkoftheFlinkrepository).
- Each pull request should address only one issue, not mix up code from multiple issues.
- Each commit in the pull request has a meaningful commit message (including the JIRA id)
- Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.
**(The sections below can be removed for hotfixes of typos)**
-->
## What is the purpose of the change
flink-sql-connector-hive depends on `hive-exec` which is a uber jar and doesn't come with a proper NOTICE file. So we need to find out the artifacts included in `hive-exec`and list them in our NOTICE file.
## Brief change log
- Update NOTICE file and add licenses for some dependencies.
## Verifying this change
NA
## Does this pull request potentially affect one of the following parts:
NA
## Documentation
NA
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441451360
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
>I believe we can keep Hive 1.x support in the source code, with the bad JSON dependency, if we add a warning to the documentation.
We did not only did not provide a binary license, but also had an opt-in profile for including the module.
Technically this is also the case right now (since we have a dedicated profile for setting the version to hive 1.1.x), but IMO it's not distinct enough from the other profiles. It very much looks like "just another" a version switch.
With that in mind, we'd either need to splice out hive 1.1 from the existing hive-connector (not feasible for practical reason I suppose), have an opt-in profile for hive as a whole (likely not feasible since the entire table ecosystem is interlinked like a web), or make the hive 1.1 profile especially explicit (in the documentation and source).
In any case however nothing we release to maven central or bundle in the distribution must have a reference to hive 1.1.
This implies that users would have to recompile Flink against hive 1.1 to use it. Given the reported frictions with Flink users getting up and running in the Table/SQL APIs in regards to connectors, which is especially worse with Hive, this to me implies that it would be basically unusable. IIRC, the _current state_ was already described as such.
Hence why I referred to this as not being _feasible_. _Possible_, yes, but I daresay that it's not worth the effort.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645136144
> Looking through these checks, I am wondering if we have a set of unnecessary dependencies here. For example Kryo, minlog, objenises are all dependencies of flink-core already, so we should not require them here.
I agree there can be duplicated dependencies since hive-exec is a huge uber jar. But I don't know a good method to find all such dependencies. Perhaps I should just compare the `flink-sql-connector-hive` and `flink-dist` jars to determine that?
As for the example of Kryo, hive-exec has relocated it so we cannot reuse what's already included in Flink.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441390991
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
And some dependencies included may not be visible in the dependency tree because of the dependency-reduced pom
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645140465
> It seems that there are a lot of `org/apache/hadoop{fs,hive,mapred,security}` files, but it is not clear through with dependency they come in. It is not the `parquet-hadoop-bundle`.
`org/apache/hadoop/{fs,hive,security}` comes from `org.apache.hive.shims:hive-shims-common`.
`org/apache/hadoop/mapred` comes from `org.apache.hive.shims:hive-shims-common`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440911348
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
We can only support version 2.2.0+; https://issues.apache.org/jira/browse/HIVE-15144.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441342850
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
> Do you mean we should always use the latest license? I was deliberately adding license files that are close to the specific version of each dependency...
Which would be absolutely correct.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644732497
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.
## Automated Checks
Last check on commit 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d (Tue Jun 16 12:31:09 UTC 2020)
**Warnings:**
* No documentation files were touched! Remember to keep the Flink docs up to date!
<sub>Mention the bot in a comment to re-run the automated checks.</sub>
## Review Progress
* ❓ 1. The [description] looks good.
* ❓ 2. There is [consensus] that the contribution should go into to Flink.
* ❓ 3. Needs [attention] from.
* ❓ 4. The change fits into the overall [architecture].
* ❓ 5. Overall code [quality] is good.
Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
- `@flinkbot approve all` to approve all aspects
- `@flinkbot approve-until architecture` to approve everything until `architecture`
- `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
- `@flinkbot disapprove architecture` to remove an approval you gave earlier
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441342613
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
yes, that's good. It would be good to document this _somewhere_, maybe the [Licensing](https://cwiki.apache.org/confluence/display/FLINK/Licensing) wiki page until we found a better place.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441387570
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
For reference
```
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ flink-sql-connector-hive-1.2.2_2.11 ---
[INFO] org.apache.flink:flink-sql-connector-hive-1.2.2_2.11:jar:1.12-SNAPSHOT
[INFO] +- org.apache.flink:flink-connector-hive_2.11:jar:1.12-SNAPSHOT:compile
[INFO] +- org.apache.hive:hive-exec:jar:1.2.2:compile
[INFO] | +- org.apache.hive:hive-ant:jar:1.2.2:compile
[INFO] | | \- org.apache.velocity:velocity:jar:1.5:compile
[INFO] | | \- oro:oro:jar:2.0.8:compile
[INFO] | +- org.apache.hive:hive-shims:jar:1.2.2:compile
[INFO] | | +- org.apache.hive.shims:hive-shims-common:jar:1.2.2:compile
[INFO] | | +- org.apache.hive.shims:hive-shims-0.20S:jar:1.2.2:runtime
[INFO] | | +- org.apache.hive.shims:hive-shims-0.23:jar:1.2.2:runtime
[INFO] | | | \- org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:2.6.0:runtime
[INFO] | | | +- com.google.inject.extensions:guice-servlet:jar:3.0:runtime
[INFO] | | | +- com.google.inject:guice:jar:3.0:runtime
[INFO] | | | | +- javax.inject:javax.inject:jar:1:runtime
[INFO] | | | | \- aopalliance:aopalliance:jar:1.0:runtime
[INFO] | | | +- com.sun.jersey:jersey-json:jar:1.9:runtime
[INFO] | | | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:runtime
[INFO] | | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:runtime
[INFO] | | | | \- org.codehaus.jackson:jackson-xc:jar:1.8.3:runtime
[INFO] | | | +- com.sun.jersey.contribs:jersey-guice:jar:1.9:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-common:jar:2.4.1:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.6.0:runtime
[INFO] | | | +- javax.xml.bind:jaxb-api:jar:2.3.1:runtime
[INFO] | | | | \- javax.activation:javax.activation-api:jar:1.2.0:runtime
[INFO] | | | +- org.codehaus.jettison:jettison:jar:1.1:runtime
[INFO] | | | +- com.sun.jersey:jersey-client:jar:1.9:runtime
[INFO] | | | +- org.mortbay.jetty:jetty-util:jar:6.1.26:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0:runtime
[INFO] | | | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:2.6.0:runtime
[INFO] | | | \- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.6.0:runtime
[INFO] | | | \- org.mortbay.jetty:jetty:jar:6.1.26:runtime
[INFO] | | \- org.apache.hive.shims:hive-shims-scheduler:jar:1.2.2:runtime
[INFO] | +- commons-codec:commons-codec:jar:1.10:compile
[INFO] | +- commons-httpclient:commons-httpclient:jar:3.0.1:compile
[INFO] | +- commons-io:commons-io:jar:2.4:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- log4j:apache-log4j-extras:jar:1.2.17:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.4:compile
[INFO] | | +- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] | | \- antlr:antlr:jar:2.7.7:compile
[INFO] | +- org.antlr:ST4:jar:4.0.4:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.1:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.9.1:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.20:compile
[INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.14:compile
[INFO] | | +- com.github.spotbugs:spotbugs-annotations:jar:3.1.9:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- org.apache.curator:curator-framework:jar:2.6.0:compile
[INFO] | | \- org.apache.curator:curator-client:jar:2.6.0:compile
[INFO] | +- org.apache.curator:apache-curator:pom:2.6.0:compile
[INFO] | +- org.codehaus.groovy:groovy-all:jar:2.1.6:compile
[INFO] | +- org.datanucleus:datanucleus-core:jar:3.2.10:compile
[INFO] | +- org.apache.calcite:calcite-core:jar:1.2.0-incubating:compile
[INFO] | | +- org.apache.calcite:calcite-linq4j:jar:1.2.0-incubating:compile
[INFO] | | +- net.hydromatic:eigenbase-properties:jar:1.1.5:compile
[INFO] | | +- org.codehaus.janino:janino:jar:2.7.6:compile
[INFO] | | \- org.codehaus.janino:commons-compiler:jar:2.7.6:compile
[INFO] | +- org.apache.calcite:calcite-avatica:jar:1.2.0-incubating:compile
[INFO] | +- stax:stax-api:jar:1.0.1:compile
[INFO] | \- jline:jline:jar:2.12:compile
[INFO] +- org.apache.hive:hive-metastore:jar:1.2.2:compile
[INFO] | +- org.apache.hive:hive-serde:jar:1.2.2:compile
[INFO] | | +- org.apache.hive:hive-common:jar:1.2.2:compile
[INFO] | | | +- joda-time:joda-time:jar:2.5:compile
[INFO] | | | \- org.json:json:jar:20090211:compile
[INFO] | | +- org.apache.avro:avro:jar:1.8.2:compile
[INFO] | | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | | | +- com.thoughtworks.paranamer:paranamer:jar:2.7:compile
[INFO] | | | +- org.xerial.snappy:snappy-java:jar:1.1.4:compile
[INFO] | | | \- org.tukaani:xz:jar:1.5:compile
[INFO] | | +- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | | \- com.twitter:parquet-hadoop-bundle:jar:1.6.0:compile
[INFO] | +- com.google.guava:guava:jar:14.0.1:compile
[INFO] | +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
[INFO] | +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.apache.derby:derby:jar:10.10.2.0:compile
[INFO] | +- org.datanucleus:datanucleus-api-jdo:jar:3.2.6:compile
[INFO] | +- org.datanucleus:datanucleus-rdbms:jar:3.2.9:compile
[INFO] | +- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] | +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | +- javax.jdo:jdo-api:jar:3.0.1:compile
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
[INFO] | \- org.apache.thrift:libthrift:jar:0.9.2:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.3:compile
[INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.6:compile
[INFO] +- org.apache.thrift:libfb303:jar:0.9.2:compile
[INFO] +- org.apache.orc:orc-core:jar:nohive:1.4.3:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | +- org.apache.hadoop:hadoop-common:jar:2.4.1:compile
[INFO] | | +- org.apache.hadoop:hadoop-annotations:jar:2.4.1:compile
[INFO] | | +- org.apache.commons:commons-math3:jar:3.5:compile
[INFO] | | +- xmlenc:xmlenc:jar:0.52:compile
[INFO] | | +- commons-net:commons-net:jar:3.1:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | | +- com.sun.jersey:jersey-server:jar:1.9:compile
[INFO] | | | \- asm:asm:jar:3.1:compile
[INFO] | | +- commons-configuration:commons-configuration:jar:1.7:compile
[INFO] | | | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[INFO] | | +- org.apache.hadoop:hadoop-auth:jar:2.4.1:compile
[INFO] | | \- com.jcraft:jsch:jar:0.1.42:compile
[INFO] | \- org.apache.hive:hive-storage-api:jar:2.2.1:compile
[INFO] +- io.airlift:aircompressor:jar:0.8:compile
[INFO] | \- io.airlift:slice:jar:0.29:compile
[INFO] | \- org.openjdk.jol:jol-core:jar:0.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.15:provided
[INFO] +- com.google.code.findbugs:jsr305:jar:1.3.9:provided
[INFO] +- org.apache.flink:flink-test-utils-junit:jar:1.12-SNAPSHOT:test
[INFO] +- org.apache.flink:force-shading:jar:1.12-SNAPSHOT:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.mockito:mockito-core:jar:2.21.0:test
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.8.15:test
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.8.15:test
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- org.powermock:powermock-module-junit4:jar:2.0.4:test
[INFO] | \- org.powermock:powermock-module-junit4-common:jar:2.0.4:test
[INFO] | +- org.powermock:powermock-reflect:jar:2.0.4:test
[INFO] | \- org.powermock:powermock-core:jar:2.0.4:test
[INFO] | \- org.javassist:javassist:jar:3.24.0-GA:test
[INFO] +- org.powermock:powermock-api-mockito2:jar:2.0.4:test
[INFO] | \- org.powermock:powermock-api-support:jar:2.0.4:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.12.1:test
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.12.1:test
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.12.1:test
[INFO] \- org.apache.logging.log4j:log4j-1.2-api:jar:2.12.1:test
[INFO] ------------------------------------------------------------------------
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645164498
Thank you all for the review. I have updated to address (some of) the comments. The JSON classes are excluded from the jar (Flink does't need them to integrate with Hive). Would like to get some feedback whether that's the right way to go.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441516497
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
I don't think transitive dependencies are included, if an explicit `include` configuration is present. But of course, checking include configuration doesn't cover the case where an included dependency is also a uber jar, e.g. Kryo. In that case, seems we need to do this recursively...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441342850
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
> I was deliberately adding license files that are close to the specific version of each dependency...
Which would be absolutely correct.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r442098171
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
The only important thing is that the license name makes it clear to which dependencies it applies to. generally I think we tried to be as short as possible.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
}, {
"hash" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 64c5b2db65ac727ae4243d8e6941baf3c47eacfb Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752)
* 580c3609aeeac0ada14487b84f18d5f4eb3d5e35 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441396842
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
I also don't know what's the best way forward. The problem is that the Hive project is not providing a proper `NOTICE` file that we could use.
We could do something crazy and build hive 1.2.2 ourselves, and take the output of their maven-shade-plugin run in the "hive/ql" (=`hive-exec`) run to get all the included dependencies.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441523212
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Fair enough about `flink-connector-hive`. If it is just for testing, then it should be fine.
I don't think it's that easy though for `flink-sql-connector-hive`. The reality is: this component cannot be used without a category-x dependency. Whether this dependency is explicit in the build files, or implied by the packaging, does not really matter, because there's no practical difference.
At the end of the day, the dependency _exists_. So we can't release this jar to maven central, or have it in the build process by default.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645131846
> It seems that there are a lot of `org/apache/hadoop{fs,hive,mapred,security}` files, but it is not clear through with dependency they come in. It is not the `parquet-hadoop-bundle`.
`org/apache/hadoop/hive` are hive's own classes. `org/apache/hadoop{fs,mapred,security}` also come from hive -- they're in the shim modules used to support multiple versions of Hadoop
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440910774
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
I confirmed that hive 1.2.2 depends on this: https://github.com/apache/hive/blob/rel/release-1.2.2/ql/pom.xml#L295
This basically means we have to drop hvie 1.2.2 support.
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
I confirmed that hive 1.2.2 depends on this: https://github.com/apache/hive/blob/rel/release-1.2.2/ql/pom.xml#L295
This basically means we have to drop hive 1.2.2 support.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441594602
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
OK. Then we don't have to drop support for 1.x. But we cannot publish `flink-sql-connector-hive` for 1.x. That means users using 1.x will have to go back to the old way to add dependencies.
@JingsongLi Does this sound acceptable to you?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440905642
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
How did you determine that these are the included dependencies?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441248366
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
@zentol Do you mean we're not allowed to depend on hive-exec or we're not allowed to bundle hive-exec?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440880126
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
We can not bundle anything that is licensed under the JSON license, it is "Category X": https://www.apache.org/legal/resolved.html#category-x
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441468576
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
Yes, but you don't know what they include transitively (for example hadoop)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441399678
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
A possible solution to No. 2 is to publish our own hive-exec 1.x. I think that's what Spark does, although their initial motivation is not about license problems.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441263211
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Alternatively, if we exclude JSON from the shaded jar, i.e. by filtering out `org/json/**` from hive-exec, will that solve the problem here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441397316
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Maybe we can discuss each scenario that involves hive-exec:
1. User deploys Flink and adds flink-sql-connector-hive (or his/her own hive-exec) to connect with Hive.
2. User checkouts Flink source and tries out our hive connector tests.
I guess No. 1 is OK if we exclude JSON from `flink-sql-connector-hive`. But we cannot completely get rid of JSON in No. 2, because JSON was included in hive-exec so we cannot exclude it from hive-exec, and from Flink perspective, it's not even a transitive dependency.
If No. 2 is really a problem, maybe we have to officially drop support for Hive 1.x ( which is bad :( ). At least we cannot have the hive-1.x maven profiles for testing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644792071
There are some `javaewah/` files in the archive, which are not documented in the license files yet.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r442129921
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
> There's also the question how exactly it was verified that in all code-paths we use we do not call into json.org:json, or how to ensure that this does not happen in the future.
json.org:json is excluded when we add hive-exec to our jar. It doesn't exist in the jar we publish. If any code path calls into json.org:json, it probably will hit exceptions complaining class not found.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645130436
> There are some `javaewah/` files in the archive, which are not documented in the license files yet.
Those are from `com.googlecode.javaewah:JavaEWAH:0.3.2` which I have listed under the ASLv2
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441282026
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
Do you mean we should always use the latest license? I was deliberately adding license files that are close to the specific version of each dependency...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441248922
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
I checked the pom file of hive-exec to determine what artifacts are included. Is that the right way to do it?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441341436
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
> Does that mean we're allowed to bundle JSON libraries released before that date?
If you were able to find a distro were the license is different sure, But I looked at the oldest release available in maven central, and it still had the problematic passage.
> Alternatively, if we exclude JSON from the shaded jar, i.e. by filtering out org/json/** from hive-exec, will that solve the problem here?
Well, yes and no. Ultimately, by virtue of containing a category-X dependency, hive-exec is also category-x. We could filter out json.org:json here, indeed. But what about all the other dependencies to hive-exec? Those cannot state that we only depend on the non-json stuff.
So if a user checks out the Flink source, and runs some hive example or whatnot, then this must not pull in json.org:json. And I don't believe this to be feasible.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441378309
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
To clarify: We are not always using the latest license. We are using the license of the released version (which we are including).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
}, {
"hash" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3823",
"triggerID" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 580c3609aeeac0ada14487b84f18d5f4eb3d5e35 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3823)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624)
* 75e41c0fe9bad8ad059489cb1134d340fe39ee07 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644796264
It seems that there are a lot of `org/apache/hadoop{fs,hive,mapred,security}` files, but it is not clear through with dependency they come in. It is not the `parquet-hadoop-bundle`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441935551
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
> The reality is: this component cannot be used without a category-x dependency.
Hi @zentol
User can use `flink-sql-connector-hive` with this json category-x dependency.
json is used in hive 1.x for testing, tez, compile and some very limited places. These places actually we never touched. So without json in `flink-sql-connector-hive`, it is OK.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624)
* 75e41c0fe9bad8ad059489cb1134d340fe39ee07 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r446588819
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Thanks @lirui-apache and @zentol for your discussion.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-647895172
Jingsong is on annual leave. @zentol could you please help merge this PR?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 75e41c0fe9bad8ad059489cb1134d340fe39ee07 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441341436
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
> Does that mean we're allowed to bundle JSON libraries released before that date?
If you were able to find a distro were the license is different sure, But I looked at the oldest release available in maven central, and it still had the problematic passage.
> Alternatively, if we exclude JSON from the shaded jar, i.e. by filtering out org/json/** from hive-exec, will that solve the problem here?
Well, yes and no. Ultimately, by virtue of containing a category-X dependency, hive-exec is also category-x. We could filter out json.org:json here, indeed. But what about all the other dependencies to hive-exec? Those cannot state that we only depend on the non-json stuff.
So if a user checks out the Flink source, and runs some hive example or whatnot, then this must not pull in json.org:json. And I don't believe this to be feasible.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441282801
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
What's the naming convention of these license files? I also added `LICENSE.protobuf-java` which perhaps should be changed to `LICENSE.protobuf`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644796264
It seems that there are a lot of `org/apache/hadoop{fs,hive,mapred,security}` files, but it is not clear through with dependency they come in
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441389417
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
I believe not all dependencies reported by `mvn dependency:tree` are included?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440880908
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
This sentence is the problem (it makes the licenses non-free): https://wiki.debian.org/qa.debian.org/jsonevil
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 61808c49ff0ad562cbaf0b0bbc5c99e542f5563d Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441341992
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
Let's continue this discussion in https://github.com/apache/flink/pull/12682#discussion_r440880126.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r442789312
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Hey @zentol , thanks for sharing your insights about this issue, very informative. Given that Hive 1.x is still used by quite some users, I'm afraid we can't drop support for it any time soon w/o hurting the adoption of the feature. We can revisit this topic if it really brings us too much headaches in the future.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol merged pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol merged pull request #12682:
URL: https://github.com/apache/flink/pull/12682
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441461754
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
The hive-exec pom includes a very explicit shade-plugin include configuration;
```
<!-- order is meant to be the same as the ant build -->
<include>org.apache.hive:hive-common</include>
<include>org.apache.hive:hive-exec</include>
<include>org.apache.hive:hive-serde</include>
<include>com.esotericsoftware.kryo:kryo</include>
<include>com.twitter:parquet-hadoop-bundle</include>
<include>org.apache.thrift:libthrift</include>
<include>commons-lang:commons-lang</include>
<include>org.apache.commons:commons-lang3</include>
<include>org.jodd:jodd-core</include>
<include>org.json:json</include>
<include>org.apache.avro:avro</include>
<include>org.apache.avro:avro-mapred</include>
<include>org.apache.hive.shims:hive-shims-0.20S</include>
<include>org.apache.hive.shims:hive-shims-0.23</include>
<include>org.apache.hive.shims:hive-shims-0.23</include>
<include>org.apache.hive.shims:hive-shims-common</include>
<include>com.googlecode.javaewah:JavaEWAH</include>
<include>javolution:javolution</include>
<include>com.google.protobuf:protobuf-java</include>
<include>org.iq80.snappy:snappy</include>
<include>org.codehaus.jackson:jackson-core-asl</include>
<include>org.codehaus.jackson:jackson-mapper-asl</include>
<include>com.google.guava:guava</include>
<include>net.sf.opencsv:opencsv</include>
<include>org.apache.hive:spark-client</include>
<include>joda-time:joda-time</include>
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 75e41c0fe9bad8ad059489cb1134d340fe39ee07 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670)
* 64c5b2db65ac727ae4243d8e6941baf3c47eacfb Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "CANCELED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 75e41c0fe9bad8ad059489cb1134d340fe39ee07 Azure: [CANCELED](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670)
* 64c5b2db65ac727ae4243d8e6941baf3c47eacfb UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441274051
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
LICENSE.jodd is enough?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440902418
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
Review comment:
please separate these entries; one section for ones we bundle directly, another section by what is bundled by hive-exec. This otherwise becomes impossible to verify in the next release; similar to what happened in FLINK-18330.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441400796
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
I believe we can keep Hive 1.x support in the source code, with the bad JSON dependency, **if we add a warning to the documentation**.
The "flink-connector-kinesis" connector used to have a Category X license (Amazon Software License) as well. For that connector, we didn't provide a binary release, users had to compile it themselves.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441391352
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
No, not all of them, but I believe some (like the hadoop dependencies from the shims)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441491238
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
Let me clarify a little bit about the hive connector jars to make sure we're on the same page.
`flink-connector-hive` is the module containing all the Flink code needed to integrate with Hive. `flink-connector-hive` depends on Hive 2.3.4 (provided scope), but it also has some maven profiles to build and test with other Hive versions from 1.x to 3.x. These profiles are for **testing only**. The artifact we publish to maven doesn't bundle any Hive class and depends on Hive 2.3.4. Users don't have to recompile it to run with different Hive versions. Theoretically, we won't drop support for 1.x by just removing the 1.x maven profile. It's only that we don't have test coverage for that version.
We also have four `flink-sql-connector-hive` jars. These jars are only meant to make things easier for users to deploy dependencies in order to integrate with Hive. W/o these jars, users have to add `flink-connector-hive` as well as several other jars to connect to Hive. With these jars, users only need to pick one of them (according to their Hive version) and add to classpath. Each `flink-sql-connector-hive` jar contains hive-exec code. But with the filter added in this PR, it no longer contains JSON classes.
IIUC, the only problematic scenario is `flink-connector-hive` with 1.x profile, which pulls in the JSON library. What do you think?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441517046
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
For that you will naturally have to move up the dependency tree and investigate each dependencies. There's no other way. For each you will either have to check the packaging output, or analyze the build files.
Traditionally we did not go this far though, because it is ultimately impractical to do this for all dependencies.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440903126
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
Yes, this is a category-X license. If this is required for Hive, then Hive has a big problem, we we will not be able to depend on hive-exec.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-645820804
Updated to include changes for `flink-sql-connector-hive-2.2.0`. Hopefully this one can be less controversial.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
}, {
"hash" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3823",
"triggerID" : "580c3609aeeac0ada14487b84f18d5f4eb3d5e35",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 64c5b2db65ac727ae4243d8e6941baf3c47eacfb Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752)
* 580c3609aeeac0ada14487b84f18d5f4eb3d5e35 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3823)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441247643
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
OK then I'll remove flink-sql-connector-hive 1.2.2.
BTW, I was also looking at [HIVE-15144](https://issues.apache.org/jira/browse/HIVE-15144) and it mentions that JSON license was moved to CatX as of 2016-11-03. Does that mean we're allowed to bundle JSON libraries released before that date?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644736459
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3624",
"triggerID" : "61808c49ff0ad562cbaf0b0bbc5c99e542f5563d",
"triggerType" : "PUSH"
}, {
"hash" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3670",
"triggerID" : "75e41c0fe9bad8ad059489cb1134d340fe39ee07",
"triggerType" : "PUSH"
}, {
"hash" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752",
"triggerID" : "64c5b2db65ac727ae4243d8e6941baf3c47eacfb",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 64c5b2db65ac727ae4243d8e6941baf3c47eacfb Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3752)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441275184
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.jodd-core
##########
@@ -0,0 +1,31 @@
+Copyright (c) 2003-2014, Jodd Team
Review comment:
There is a new license:
```
Copyright (c) 2003-2020, Jodd Team All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r442767756
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
After thinking about it some more, I believe this is fine. @lirui-apache @JingsongLi Thank you for this discussion.
It _is_ an annoying special-case though; we can probably save ourselves some headaches by eventually dropping hive 1.X support.
(E.g., if a user scans the flink dependencies from the source, this could potentially get flagged, and then we have to explain this whole thing again)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r442101556
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
+- org.apache.hive.shims:hive-shims-0.23:1.2.2
+- org.apache.hive.shims:hive-shims-common:1.2.2
+- org.apache.hive:spark-client:1.2.2
+- com.twitter:parquet-hadoop-bundle:1.6.0
+- org.apache.thrift:libthrift:0.9.2
- org.apache.thrift:libfb303:0.9.2
- org.apache.orc:orc-core:1.4.3
- io.airlift:aircompressor:0.8
+- commons-lang:commons-lang:2.6
+- org.apache.commons:commons-lang3:3.1
+- org.apache.avro:avro:1.7.5
+- org.apache.avro:avro-mapred:1.7.5
+- com.googlecode.javaewah:JavaEWAH:0.3.2
+- org.iq80.snappy:snappy:0.2
+- org.codehaus.jackson:jackson-core-asl:1.9.2
+- org.codehaus.jackson:jackson-mapper-asl:1.9.2
+- com.google.guava:guava:14.0.1
+- net.sf.opencsv:opencsv:2.3
+- joda-time:joda-time:2.5
+- org.objenesis:objenesis:1.2
+
+This project bundles the following dependencies under the BSD license.
+See bundled license files for details.
+
+- com.esotericsoftware.kryo:kryo:2.22
+- org.jodd:jodd-core:3.5.2
+- javolution:javolution:5.5.1
+- com.google.protobuf:protobuf-java:2.5.0
+- com.esotericsoftware.minlog:minlog:1.2
+- com.esotericsoftware.reflectasm:reflectasm:1.07
+
+This project bundles the following dependencies under the JSON license.
Review comment:
@JingsongLi It is good to know that json is not necessarily required, but I'm not sure if it changes anything.
We'd be moving on _very_ thin ice by arguing "you can use this component, that we released, with hive 1.2, which is overall category-x because it includes json.org:json, but it's fine because it's not used in any code-path that we call into."
I have not seen such a distinction being made, hence why I'm cautious about it.
There's also the question how exactly it was verified that in _all_ code-paths we use we do not call into json.org:json, or how to ensure that this does not happen in the future.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] zentol commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
zentol commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r440903126
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
Yes, this is a category-X license. If this is required for Hive, and Hive has no special exception, then Hive has a big problem, we we will not be able to depend on hive-exec.
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/licenses/LICENSE.json
##########
@@ -0,0 +1,9 @@
+Copyright (c) 2002 JSON.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+The Software shall be used for Good, not Evil.
Review comment:
Yes, this is a category-X license. If this is required for Hive, and Hive has no special exception, then Hive has a big problem, and we will not be able to depend on hive-exec.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] StephanEwen commented on pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
StephanEwen commented on pull request #12682:
URL: https://github.com/apache/flink/pull/12682#issuecomment-644843690
Looking through these checks, I am wondering if we have a set of unnecessary dependencies here. For example Kryo, minlog, objenises are all dependencies of flink-core already, so we should not require them here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] rmetzger commented on a change in pull request #12682: [FLINK-18320][hive] Fix NOTICE and license files for flink-sql-connec…
Posted by GitBox <gi...@apache.org>.
rmetzger commented on a change in pull request #12682:
URL: https://github.com/apache/flink/pull/12682#discussion_r441380220
##########
File path: flink-connectors/flink-sql-connector-hive-1.2.2/src/main/resources/META-INF/NOTICE
##########
@@ -8,6 +8,41 @@ This project bundles the following dependencies under the Apache Software Licens
- org.apache.hive:hive-exec:1.2.2
- org.apache.hive:hive-metastore:1.2.2
+- org.apache.hive:hive-common:1.2.2
+- org.apache.hive:hive-serde:1.2.2
+- org.apache.hive.shims:hive-shims-0.20S:1.2.2
Review comment:
Isn't it better to use mvn dependency:tree to check the included artifacts to also see the transitive dependencies of hive-exec?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org