You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/12/22 14:36:00 UTC

[jira] [Work logged] (HIVE-25832) Exclude Category-X JDBC drivers from binary distribution

     [ https://issues.apache.org/jira/browse/HIVE-25832?focusedWorklogId=700036&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-700036 ]

ASF GitHub Bot logged work on HIVE-25832:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Dec/21 14:35
            Start Date: 22/Dec/21 14:35
    Worklog Time Spent: 10m 
      Work Description: zabetak opened a new pull request #2905:
URL: https://github.com/apache/hive/pull/2905


   ### What changes were proposed in this pull request and why?
   Exclude drivers for Oracle, MySQL, and MariaDB to avoid licensing violations.
   
   Misc:
   1. Group all JDBC drivers in metastore-server pom.xml together for
   readability.
   2. Add MariaDB driver in metastore-server pom.xml for keeping things
   uniform.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Build binary distribution and manually inspect lib directory.
   
   ```
   mvn clean package -DskipTests -Pdist
   ls packaging/target/apache-hive-4.0.0-SNAPSHOT-bin/apache-hive-4.0.0-SNAPSHOT-bin/lib/ | grep -e "postgres" -e "ojdbc" -e "mssql" -e "mariadb" -e "derby" -e "mysql"
   ```
   Do the same for metastore:
   ```
   ls -l apache-hive-metastore-4.0.0-SNAPSHOT-bin/lib/ | grep -e "postgres" -e "ojdbc" -e "mssql" -e "mariadb" -e "derby" -e "mysql"
   -rw-r--r-- 1 stamatis stamatis  3232158 Jan 22  2020 derby-10.14.1.0.jar
   -rw-r--r-- 1 stamatis stamatis   792491 Jan 22  2020 mssql-jdbc-6.2.1.jre8.jar
   -rw-r--r-- 1 stamatis stamatis   932808 Jan 22  2020 postgresql-42.2.14.jar
   ```


-- 
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.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 700036)
    Remaining Estimate: 0h
            Time Spent: 10m

> Exclude Category-X JDBC drivers from binary distribution
> --------------------------------------------------------
>
>                 Key: HIVE-25832
>                 URL: https://issues.apache.org/jira/browse/HIVE-25832
>             Project: Hive
>          Issue Type: Task
>          Components: distribution
>            Reporter: Stamatis Zampetakis
>            Assignee: Stamatis Zampetakis
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The binary distribution contains all the required elements to be able to run Hive in a cluster. It can be obtained by building from source using the following command:
> {code:java}
> mvn clean package -DskipTests -Pdist{code}
> The binary distribution is also published during a release along with the source code.
>  
> In current master, commit 8572c1201e1d483eb03c7e413f4ff7f9b6f4a3d2, the binary distribution includes the following JDBC drivers:
>  * derby-10.14.1.0.jar
>  * postgresql-42.2.14.jar
>  * ojdbc8-21.3.0.0.jar
>  * mssql-jdbc-6.2.1.jre8.jar
>  * mysql-connector-java-8.0.27.jar
> JDBC drivers are needed:
>  * by schemaTool to initialize the database backend for the Metastore
>  * by metastore to communicate with underlying database
> so if we want Hive to work out of the box we have to provide at least one.
> The Oracle (ojdbc8) and MySQL (mysql-connector-java) drivers must be removed cause their license is not compatible with Apache License 2 (see [category x|https://www.apache.org/legal/resolved.html#category-x]).
> Previous Hive releases (e.g., 3.1.2) are not affected since they only contain:
>  * derby-10.14.1.0.jar
>  * postgresql-9.4.1208.jre7.jar
> The additional drivers that appear in the binary distribution are a side effect of HIVE-25701.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)