[jira] [Updated] (HIVE-15096) hplsql registerUDF conflicts with pom.xml

2016-11-01 Thread Fei Hui (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HIVE-15096:
---
Fix Version/s: (was: 2.2.0)

> hplsql registerUDF conflicts with pom.xml
> -
>
> Key: HIVE-15096
> URL: https://issues.apache.org/jira/browse/HIVE-15096
> Project: Hive
>  Issue Type: Bug
>  Components: hpl/sql
>Affects Versions: 2.0.0, 2.1.0, 2.0.1
>Reporter: Fei Hui
> Attachments: HIVE-15096.1.patch, HIVE-15096.patch
>
>
> 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
>   
> org.apache.hive
> hive
> 2.2.0-SNAPSHOT
> ../pom.xml
>   
>   hive-hplsql
>   jar
>   Hive HPL/SQL
> 
>org.antlr
>antlr4-runtime
>4.5
> 
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HIVE-15096) hplsql registerUDF conflicts with pom.xml

2016-10-31 Thread Fei Hui (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HIVE-15096:
---
Attachment: HIVE-15096.1.patch

> hplsql registerUDF conflicts with pom.xml
> -
>
> Key: HIVE-15096
> URL: https://issues.apache.org/jira/browse/HIVE-15096
> Project: Hive
>  Issue Type: Bug
>  Components: hpl/sql
>Affects Versions: 2.0.0, 2.1.0, 2.0.1
>Reporter: Fei Hui
> Fix For: 2.2.0
>
> Attachments: HIVE-15096.1.patch, HIVE-15096.patch
>
>
> 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
>   
> org.apache.hive
> hive
> 2.2.0-SNAPSHOT
> ../pom.xml
>   
>   hive-hplsql
>   jar
>   Hive HPL/SQL
> 
>org.antlr
>antlr4-runtime
>4.5
> 
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HIVE-15096) hplsql registerUDF conflicts with pom.xml

2016-10-30 Thread Fei Hui (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HIVE-15096:
---
Attachment: HIVE-15096.patch

fix hpl/sql registerUDF,consistent with pom.xml

> hplsql registerUDF conflicts with pom.xml
> -
>
> Key: HIVE-15096
> URL: https://issues.apache.org/jira/browse/HIVE-15096
> Project: Hive
>  Issue Type: Bug
>  Components: hpl/sql
>Affects Versions: 2.0.0, 2.1.0, 2.0.1
>Reporter: Fei Hui
> Fix For: 2.2.0
>
> Attachments: HIVE-15096.patch
>
>
> 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
>   
> org.apache.hive
> hive
> 2.2.0-SNAPSHOT
> ../pom.xml
>   
>   hive-hplsql
>   jar
>   Hive HPL/SQL
> 
>org.antlr
>antlr4-runtime
>4.5
> 
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HIVE-15096) hplsql registerUDF conflicts with pom.xml

2016-10-29 Thread Fei Hui (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HIVE-15096:
---
Assignee: (was: Fei Hui)

> hplsql registerUDF conflicts with pom.xml
> -
>
> Key: HIVE-15096
> URL: https://issues.apache.org/jira/browse/HIVE-15096
> Project: Hive
>  Issue Type: Bug
>  Components: hpl/sql
>Affects Versions: 2.0.0, 2.1.0, 2.0.1
>Reporter: Fei Hui
> Fix For: 2.2.0
>
>
> 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
>   
> org.apache.hive
> hive
> 2.2.0-SNAPSHOT
> ../pom.xml
>   
>   hive-hplsql
>   jar
>   Hive HPL/SQL
> 
>org.antlr
>antlr4-runtime
>4.5
> 
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HIVE-15096) hplsql registerUDF conflicts with pom.xml

2016-10-28 Thread Fei Hui (JIRA)

 [ 
https://issues.apache.org/jira/browse/HIVE-15096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fei Hui updated HIVE-15096:
---
Assignee: Fei Hui
Target Version/s: 2.2.0
  Status: Patch Available  (was: Open)

diff --git a/hplsql/src/main/java/org/apache/hive/hplsql/Exec.java 
b/hplsql/src/main/java/org/apache/hive/hplsql/Exec.java
index 6da4f5b..1e14361 100644
--- a/hplsql/src/main/java/org/apache/hive/hplsql/Exec.java
+++ b/hplsql/src/main/java/org/apache/hive/hplsql/Exec.java
@@ -615,9 +615,13 @@ public void registerUdf() {
 }
 ArrayList sql = new ArrayList();
 String dir = Utils.getExecDir();
-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);
+sql.add("ADD JAR " + dir + "hive-hplsql-2.2.0-SNAPSHOT.jar");
+sql.add("ADD JAR " + dir + "antlr4-runtime-4.5.jar");
+if(!conf.getLocation().equals("")) {
+  sql.add("ADD FILE " + conf.getLocation());
+} else {
+  sql.add("ADD FILE " + dir + Conf.SITE_XML);
+}
 if (dotHplsqlrcExists) {
   sql.add("ADD FILE " + dir + Conf.DOT_HPLSQLRC);
 }


> hplsql registerUDF conflicts with pom.xml
> -
>
> Key: HIVE-15096
> URL: https://issues.apache.org/jira/browse/HIVE-15096
> Project: Hive
>  Issue Type: Bug
>  Components: hpl/sql
>Affects Versions: 2.0.1, 2.1.0, 2.0.0
>Reporter: Fei Hui
>Assignee: Fei Hui
> Fix For: 2.2.0
>
>
> 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
>   
> org.apache.hive
> hive
> 2.2.0-SNAPSHOT
> ../pom.xml
>   
>   hive-hplsql
>   jar
>   Hive HPL/SQL
> 
>org.antlr
>antlr4-runtime
>4.5
> 
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)