Running ‘run-all.R’ [1s/4s]
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://mirror.klaus-uwe.me/apache/spark
  Downloading spark-2.3.0 for Hadoop 2.7 from:
  - http://mirror.klaus-uwe.me/apache/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz
  trying URL 'http://mirror.klaus-uwe.me/apache/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 81 KB
  
  downloaded length 83561 != reported length 226128401
  To use backup site...
  Downloading spark-2.3.0 for Hadoop 2.7 from:
  - http://www-us.apache.org/dist/spark/spark-2.3.0/spark-2.3.0-bin-hadoop2.7.tgz
  trying URL 'http://www-us.apache.org/dist/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 3.9 MB
  
  downloaded length 4112336 != reported length 226128401
  Unable to download from default mirror site: http://www-us.apache.org/dist/spark
  Error in robustDownloadTar(mirrorUrl, version, hadoopVersion, packageName,  : 
    Unable to download Spark spark-2.3.0 for Hadoop 2.7. Please check network connection, Hadoop version, or provide other mirror sites.
  Calls: install.spark -> robustDownloadTar
  Execution halted