Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9777

hadoop-yarn-server-common pom.xml has runtime dependency on mssql-jdbc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.0
    • None
    • yarn
    • None

    Description

      I dont know the history behind this or what these classes are used for in YARN but having a runtime dependency on vendor specific JDBC driver seems wrong.
      <dependency>
      <groupId>com.microsoft.sqlserver</groupId>
      <artifactId>mssql-jdbc</artifactId>
      <scope>runtime</scope>
      <exclusions>
      <exclusion>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-keyvault</artifactId>
      </exclusion>
      </exclusions>
      </dependency>

      This causes uber jars in dependent modules like hive-jdbc-standalone.jar to include all "runtime" scoped jars to be automatically bundled.

      Instead the scope of the above dependency to be "provided" rather than "runtime".

      Also is this scoped correctly? or should this be a "runtime" dependency instead of the default "compile"
      <dependency>
      <groupId>com.zaxxer</groupId>
      <artifactId>HikariCP-java7</artifactId>
      </dependency>

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            ngangam Naveen Gangam
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: