Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15096

hplsql registerUDF conflicts with pom.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1, 2.1.0
    • Fix Version/s: 2.3.0
    • Component/s: hpl/sql
    • Labels:
      None
    • Target Version/s:

      Description

      in hplsql code, registerUDF code is

      sql.add("ADD JAR " + dir + "hplsql.jar");
      sql.add("ADD JAR " + dir + "antlr-runtime-4.5.jar");
      sql.add("ADD FILE " + dir + Conf.SITE_XML);

      but pom configufation is

      <parent>
      <groupId>org.apache.hive</groupId>
      <artifactId>hive</artifactId>
      <version>2.2.0-SNAPSHOT</version>
      <relativePath>../pom.xml</relativePath>
      </parent>

      <artifactId>hive-hplsql</artifactId>
      <packaging>jar</packaging>
      <name>Hive HPL/SQL</name>

      <dependency>
      <groupId>org.antlr</groupId>
      <artifactId>antlr4-runtime</artifactId>
      <version>4.5</version>
      </dependency>

      when run hplsql , errors occur as below

      Error while processing statement: /opt/apps/apache-hive-2.0.0-bin/lib/hplsql.jar does not exist

        Attachments

        1. HIVE-15096.patch
          0.9 kB
          Fei Hui
        2. HIVE-15096.1.patch
          1 kB
          Fei Hui

          Activity

            People

            • Assignee:
              ferhui Fei Hui
              Reporter:
              ferhui Fei Hui
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: