Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
1.4.2
-
None
-
Windows
Description
A piece of code was unix specific for loading a jar.
The attached file is the a for a generic implementation (works for windows too).
Edit.
The issue is: Sqoop generates a jar file containing the generated class corresponding to the DB table to import.
his code tries to load the jar in order to read the class, but the path "jar:file://" + new File(jarFile).getAbsolutePath() + "!/" seems not to be a valid windows path.
So I simply replaced the file path
From this:
URL url = new URL("jar:file://" + new File(jarFile).getAbsolutePath() + "!/")
to this:
URL url = new File(jarFile).toURI().toURL();
Attachments
Attachments
Issue Links
- duplicates
-
SQOOP-957 Proposed enhancements for getting Sqoop support on Windows
- Open