Skip to content

Commit

Permalink
[SPARK-24263][R] SparkR java check breaks with openjdk
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Change text to grep for.

## How was this patch tested?

manual test

Author: Felix Cheung <[email protected]>

Closes apache#21314 from felixcheung/openjdkver.
  • Loading branch information
felixcheung authored and Marcelo Vanzin committed May 14, 2018
1 parent b6c50d7 commit 1430fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg/R/client.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ checkJavaVersion <- function() {
})
javaVersionFilter <- Filter(
function(x) {
grepl("java version", x)
grepl(" version", x)
}, javaVersionOut)

javaVersionStr <- strsplit(javaVersionFilter[[1]], "[\"]")[[1L]][2]
Expand Down

0 comments on commit 1430fa8

Please sign in to comment.