Running ‘run-all.R’ [0m/11m]
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > #
  > # Licensed to the Apache Software Foundation (ASF) under one or more
  > # contributor license agreements.  See the NOTICE file distributed with
  > # this work for additional information regarding copyright ownership.
  > # The ASF licenses this file to You under the Apache License, Version 2.0
  > # (the "License"); you may not use this file except in compliance with
  > # the License.  You may obtain a copy of the License at
  > #
  > #    http://www.apache.org/licenses/LICENSE-2.0
  > #
  > # Unless required by applicable law or agreed to in writing, software
  > # distributed under the License is distributed on an "AS IS" BASIS,
  > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  > # See the License for the specific language governing permissions and
  > # limitations under the License.
  > #
  > 
  > library(testthat)
  > library(SparkR)
  
  Attaching package: 'SparkR'
  
  The following objects are masked from 'package:testthat':
  
      describe, not
  
  The following objects are masked from 'package:stats':
  
      cov, filter, lag, na.omit, predict, sd, var, window
  
  The following objects are masked from 'package:base':
  
      as.data.frame, colnames, colnames<-, drop, endsWith, intersect,
      rank, rbind, sample, startsWith, subset, summary, transform, union
  
  > 
  > # Turn all warnings into errors
  > options("warn" = 2)
  > 
  > if (.Platform$OS.type == "windows") {
  +   Sys.setenv(TZ = "GMT")
  + }
  > 
  > # Setup global test environment
  > # Install Spark first to set SPARK_HOME
  > 
  > # NOTE(shivaram): We set overwrite to handle any old tar.gz files or directories left behind on
  > # CRAN machines. For Jenkins we should already have SPARK_HOME set.
  > install.spark(overwrite = TRUE)
  Overwrite = TRUE: download and overwrite the tar fileand Spark package directory if they exist.
  Spark not found in the cache directory. Installation will start.
  MirrorUrl not provided.
  Looking for preferred site from apache website...
  Preferred mirror site found: http://apache.mirrors.nublue.co.uk/spark
  Downloading spark-2.3.0 for Hadoop 2.7 from:
  - http://apache.mirrors.nublue.co.uk/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz
  trying URL 'http://apache.mirrors.nublue.co.uk/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz'
  Content type 'application/x-gzip' length 226128401 bytes (215.7 MB)
  ==================================================
  downloaded 215.7 MB
  
  Installing to /home/ripley/.cache/spark
  DONE.
  SPARK_HOME set to /home/ripley/.cache/spark/spark-2.3.0-bin-hadoop2.7
  > 
  > sparkRDir <- file.path(Sys.getenv("SPARK_HOME"), "R")
  > sparkRWhitelistSQLDirs <- c("spark-warehouse", "metastore_db")
  > invisible(lapply(sparkRWhitelistSQLDirs,
  +                  function(x) { unlink(file.path(sparkRDir, x), recursive = TRUE, force = TRUE)}))
  > sparkRFilesBefore <- list.files(path = sparkRDir, all.files = TRUE)
  > 
  > sparkRTestMaster <- "local[1]"
  > sparkRTestConfig <- list()
  > if (identical(Sys.getenv("NOT_CRAN"), "true")) {
  +   sparkRTestMaster <- ""
  + } else {
  +   # Disable hsperfdata on CRAN
  +   old_java_opt <- Sys.getenv("_JAVA_OPTIONS")
  +   Sys.setenv("_JAVA_OPTIONS" = paste("-XX:-UsePerfData", old_java_opt))
  +   tmpDir <- tempdir()
  +   tmpArg <- paste0("-Djava.io.tmpdir=", tmpDir)
  +   sparkRTestConfig <- list(spark.driver.extraJavaOptions = tmpArg,
  +                            spark.executor.extraJavaOptions = tmpArg)
  + }
  > 
  > test_package("SparkR")
  Launching java with spark-submit command /home/ripley/.cache/spark/spark-2.3.0-bin-hadoop2.7/bin/spark-submit   --driver-java-options "-Djava.io.tmpdir=/tmp/RtmpFZaG5s" sparkr-shell /tmp/RtmpFZaG5s/backend_port25cc1702162c 
  Picked up _JAVA_OPTIONS: -XX:-UsePerfData 
  Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/spark/launcher/Main : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 1. Error: create DataFrame from list or data.frame (@test_basic.R#21)  ──────
  JVM is not ready after 10 seconds
  1: sparkR.session(master = sparkRTestMaster, enableHiveSupport = FALSE, sparkConfig = sparkRTestConfig) at /home/ripley/R/Lib32/SparkR/tests/testthat/test_basic.R:21
  2: sparkR.sparkContext(master, appName, sparkHome, sparkConfigMap, sparkExecutorEnvMap, 
         sparkJars, sparkPackages)
  3: stop("JVM is not ready after 10 seconds")
  
  Launching java with spark-submit command /home/ripley/.cache/spark/spark-2.3.0-bin-hadoop2.7/bin/spark-submit   --driver-java-options "-Djava.io.tmpdir=/tmp/RtmpFZaG5s" sparkr-shell /tmp/RtmpFZaG5s/backend_port25cc34a544c8 
  Picked up _JAVA_OPTIONS: -XX:-UsePerfData 
  Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/spark/launcher/Main : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 2. Error: spark.glm and predict (@test_basic.R#53)  ─────────────────────────
  JVM is not ready after 10 seconds
  1: sparkR.session(master = sparkRTestMaster, enableHiveSupport = FALSE, sparkConfig = sparkRTestConfig) at /home/ripley/R/Lib32/SparkR/tests/testthat/test_basic.R:53
  2: sparkR.sparkContext(master, appName, sparkHome, sparkConfigMap, sparkExecutorEnvMap, 
         sparkJars, sparkPackages)
  3: stop("JVM is not ready after 10 seconds")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 2
  1. Error: create DataFrame from list or data.frame (@test_basic.R#21) 
  2. Error: spark.glm and predict (@test_basic.R#53) 
  
  Error: testthat unit tests failed
  Execution halted