[
https://issues.apache.org/jira/browse/HIVE-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13493485#comment-13493485
]
Kanna Karanam commented on HIVE-3664:
-------------------------------------
Thanks Ashutosh - In Windows, When we specify the class path as
“HIVE_DIR\Dist\Lib\*” instead of enumerating individual jars (because of 8k
limitation on environment variable), JAVA is trying to load the
“hive-contrib.jar” as regular jar and failing. Based on the comments in
HIVE-3092, I think it is safe to remove them. If not, I can conditionally skip
this on Windows.
udf-compile:
[echo] *** Compiling UDFs ***
[javac] Compiling 25 source files to
c:\Jenkins\workspace\windows.hive.20.unsecure\datateamtest\hcatalog\udfs\java\build
[javac] error: error reading C:\Hadoop\hive-0.9.0\lib\hive_contrib.jar;
error in opening zip file
[javac] 1 error
On clicking C:\Hadoop\hive-0.9.0\lib\hive_contrib.jar, I get an error message
"Invalid or corrupt jarfile C:\Hadoop\hive-0.9.0\lib\hive_contrib.jar"
C:\Hadoop\hive-0.9.0\lib>ls -l hive_contrib.jar
-rw-r--r-- 1 Administ Administ 58 Aug 30 00:41 hive_contrib.jar
C:\Hadoop\hive-0.9.0\lib>jar -tvf hive_contrib.jar
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:88)
at sun.tools.jar.Main.list(Main.java:979)
at sun.tools.jar.Main.run(Main.java:224)
at sun.tools.jar.Main.main(Main.java:1149)
> Avoid to create a symlink for hive-contrib.jar file in dist\lib folder.
> -----------------------------------------------------------------------
>
> Key: HIVE-3664
> URL: https://issues.apache.org/jira/browse/HIVE-3664
> Project: Hive
> Issue Type: Bug
> Components: Build Infrastructure
> Affects Versions: 0.10.0, 0.9.1
> Reporter: Kanna Karanam
> Assignee: Kanna Karanam
> Labels: Windows
> Fix For: 0.10.0, 0.9.1
>
> Attachments: HIVE-3664.1.patch.txt
>
>
> It forces us to enumerate all the jars except this jar on Windows instead of
> directly referencing the “dist\lib\*.jar” folder in the class path.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira