Skip to content

Commit

Permalink
changed url.getFile instead of url.toURI to fix build on windows (apa…
Browse files Browse the repository at this point in the history
…che#429)

* changed url.getFile instead of url.toURI to fix build on windows

Signed-off-by: Arnaud Nauwynck <[email protected]>

* fix debug log end != start

Signed-off-by: Arnaud Nauwynck <[email protected]>

Co-authored-by: Arnaud Nauwynck <[email protected]>
  • Loading branch information
mobuchowski and Arnaud-Nauwynck authored Dec 8, 2021
1 parent 41dfc82 commit 7aa920f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static void main(String[] args) throws JsonParseException, JsonMappingExc
URL url = new URL(baseURL);

if (url.getProtocol().equals("file")) {
File file = new File(url.toURI());
File file = new File(url.getFile());
if (file.isDirectory()) {
addURLs(urls, file);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public void end(SparkListenerJobEnd jobEnd) {
.job(buildJob(queryExecution))
.build();

log.debug("Posting event for start {}: {}", jobEnd, event);
log.debug("Posting event for end {}: {}", jobEnd, event);
sparkContext.emit(event);
}

Expand Down

0 comments on commit 7aa920f

Please sign in to comment.