Running ‘run-all.R’ [9s/352s]
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 215.7 MB
  
  Installing to /home/hornik/.cache/spark
  DONE.
  SPARK_HOME set to /home/hornik/.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/hornik/.cache/spark/spark-2.3.0-bin-hadoop2.7/bin/spark-submit   --driver-java-options "-Djava.io.tmpdir=/home/hornik/tmp/scratch/RtmpPtto9a" sparkr-shell /home/hornik/tmp/scratch/RtmpPtto9a/backend_port53b865f30d82 
  Picked up _JAVA_OPTIONS: -XX:-UsePerfData 
  Picked up _JAVA_OPTIONS: -XX:-UsePerfData 
  2018-03-10 17:25:21 WARN  NativeCodeLoader:62 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  Setting default log level to "WARN".
  To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
  
  [Stage 0:>                                                          (0 + 1) / 1]
                                                                                  
  
  [Stage 1:>                                                          (0 + 1) / 1]2018-03-10 17:25:45 ERROR Executor:91 - Exception in task 0.0 in stage 1.0 (TID 1)
  java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  2018-03-10 17:25:45 WARN  TaskSetManager:66 - Lost task 0.0 in stage 1.0 (TID 1, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  2018-03-10 17:25:45 ERROR TaskSetManager:70 - Task 0 in stage 1.0 failed 1 times; aborting job
  2018-03-10 17:25:45 ERROR RBackendHandler:91 - count on 13 failed
  java.lang.reflect.InvocationTargetException
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:498)
  	at org.apache.spark.api.r.RBackendHandler.handleMethodCall(RBackendHandler.scala:167)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:108)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:40)
  	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
  	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
  	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:138)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
  	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
  	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
  	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
  	at java.lang.Thread.run(Thread.java:748)
  Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1.0 (TID 1, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  Driver stacktrace:
  	at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1599)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1587)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1586)
  	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
  	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1586)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at scala.Option.foreach(Option.scala:257)
  	at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1820)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1769)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1758)
  	at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:642)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2027)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2048)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2067)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2092)
  	at org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:939)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.collect(RDD.scala:938)
  	at org.apache.spark.sql.execution.SparkPlan.executeCollect(SparkPlan.scala:297)
  	at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2770)
  	at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2769)
  	at org.apache.spark.sql.Dataset$$anonfun$52.apply(Dataset.scala:3253)
  	at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:77)
  	at org.apache.spark.sql.Dataset.withAction(Dataset.scala:3252)
  	at org.apache.spark.sql.Dataset.count(Dataset.scala:2769)
  	... 36 more
  Caused by: java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	... 1 more
  ── 1. Error: create DataFrame from list or data.frame (@test_basic.R#26)  ──────
  org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1.0 (TID 1, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  Driver stacktrace:
  	at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1599)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1587)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1586)
  	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
  	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1586)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at scala.Option.foreach(Option.scala:257)
  	at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1820)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1769)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1758)
  	at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:642)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2027)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2048)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2067)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2092)
  	at org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:939)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.collect(RDD.scala:938)
  	at org.apache.spark.sql.execution.SparkPlan.executeCollect(SparkPlan.scala:297)
  	at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2770)
  	at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2769)
  	at org.apache.spark.sql.Dataset$$anonfun$52.apply(Dataset.scala:3253)
  	at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:77)
  	at org.apache.spark.sql.Dataset.withAction(Dataset.scala:3252)
  	at org.apache.spark.sql.Dataset.count(Dataset.scala:2769)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:498)
  	at org.apache.spark.api.r.RBackendHandler.handleMethodCall(RBackendHandler.scala:167)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:108)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:40)
  	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
  	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
  	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:138)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
  	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
  	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
  	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
  	at java.lang.Thread.run(Thread.java:748)
  Caused by: java.net.SocketTimeoutExce
  1: expect_equal(count(df), i) at /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/SparkR/tests/testthat/test_basic.R:26
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: count(df)
  5: count(df)
  6: callJMethod(x@sdf, "count")
  7: invokeJava(isStatic = FALSE, objId$id, methodName, ...)
  8: handleErrors(returnStatus, conn)
  9: stop(readString(conn))
  
  
                                                                                  
  
  [Stage 4:>                                                          (0 + 1) / 1]2018-03-10 17:25:57 ERROR Executor:91 - Exception in task 0.0 in stage 4.0 (TID 3)
  java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  2018-03-10 17:25:57 WARN  TaskSetManager:66 - Lost task 0.0 in stage 4.0 (TID 3, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  2018-03-10 17:25:57 ERROR TaskSetManager:70 - Task 0 in stage 4.0 failed 1 times; aborting job
  2018-03-10 17:25:57 ERROR RBackendHandler:91 - fit on org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper failed
  java.lang.reflect.InvocationTargetException
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:498)
  	at org.apache.spark.api.r.RBackendHandler.handleMethodCall(RBackendHandler.scala:167)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:108)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:40)
  	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
  	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
  	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:138)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
  	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
  	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
  	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
  	at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
  	at java.lang.Thread.run(Thread.java:748)
  Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 4.0 failed 1 times, most recent failure: Lost task 0.0 in stage 4.0 (TID 3, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  Driver stacktrace:
  	at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1599)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1587)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1586)
  	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
  	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1586)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at scala.Option.foreach(Option.scala:257)
  	at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1820)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1769)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1758)
  	at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:642)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2027)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2048)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2067)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2092)
  	at org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:939)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.collect(RDD.scala:938)
  	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$countByKey$1.apply(PairRDDFunctions.scala:370)
  	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$countByKey$1.apply(PairRDDFunctions.scala:370)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.PairRDDFunctions.countByKey(PairRDDFunctions.scala:369)
  	at org.apache.spark.rdd.RDD$$anonfun$countByValue$1.apply(RDD.scala:1208)
  	at org.apache.spark.rdd.RDD$$anonfun$countByValue$1.apply(RDD.scala:1208)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.countByValue(RDD.scala:1207)
  	at org.apache.spark.ml.feature.StringIndexer.fit(StringIndexer.scala:140)
  	at org.apache.spark.ml.feature.StringIndexer.fit(StringIndexer.scala:109)
  	at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:153)
  	at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:149)
  	at scala.collection.Iterator$class.foreach(Iterator.scala:893)
  	at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
  	at scala.collection.IterableViewLike$Transformed$class.foreach(IterableViewLike.scala:44)
  	at scala.collection.SeqViewLike$AbstractTransformed.foreach(SeqViewLike.scala:37)
  	at org.apache.spark.ml.Pipeline.fit(Pipeline.scala:149)
  	at org.apache.spark.ml.feature.RFormula.fit(RFormula.scala:292)
  	at org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper$.fit(GeneralizedLinearRegressionWrapper.scala:86)
  	at org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper.fit(GeneralizedLinearRegressionWrapper.scala)
  	... 36 more
  Caused by: java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	... 1 more
  ── 2. Error: spark.glm and predict (@test_basic.R#58)  ─────────────────────────
  org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 4.0 failed 1 times, most recent failure: Lost task 0.0 in stage 4.0 (TID 3, localhost, executor driver): java.net.SocketTimeoutException: Accept timed out
  	at java.net.PlainSocketImpl.socketAccept(Native Method)
  	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
  	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
  	at java.net.ServerSocket.accept(ServerSocket.java:513)
  	at org.apache.spark.api.r.RRunner$.createRWorker(RRunner.scala:372)
  	at org.apache.spark.api.r.RRunner.compute(RRunner.scala:69)
  	at org.apache.spark.api.r.BaseRRDD.compute(RRDD.scala:51)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
  	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:324)
  	at org.apache.spark.rdd.RDD.iterator(RDD.scala:288)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:96)
  	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:53)
  	at org.apache.spark.scheduler.Task.run(Task.scala:109)
  	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:345)
  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  	at java.lang.Thread.run(Thread.java:748)
  
  Driver stacktrace:
  	at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1599)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1587)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$abortStage$1.apply(DAGScheduler.scala:1586)
  	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
  	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.abortStage(DAGScheduler.scala:1586)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGScheduler$$anonfun$handleTaskSetFailed$1.apply(DAGScheduler.scala:831)
  	at scala.Option.foreach(Option.scala:257)
  	at org.apache.spark.scheduler.DAGScheduler.handleTaskSetFailed(DAGScheduler.scala:831)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.doOnReceive(DAGScheduler.scala:1820)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1769)
  	at org.apache.spark.scheduler.DAGSchedulerEventProcessLoop.onReceive(DAGScheduler.scala:1758)
  	at org.apache.spark.util.EventLoop$$anon$1.run(EventLoop.scala:48)
  	at org.apache.spark.scheduler.DAGScheduler.runJob(DAGScheduler.scala:642)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2027)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2048)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2067)
  	at org.apache.spark.SparkContext.runJob(SparkContext.scala:2092)
  	at org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:939)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.collect(RDD.scala:938)
  	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$countByKey$1.apply(PairRDDFunctions.scala:370)
  	at org.apache.spark.rdd.PairRDDFunctions$$anonfun$countByKey$1.apply(PairRDDFunctions.scala:370)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.PairRDDFunctions.countByKey(PairRDDFunctions.scala:369)
  	at org.apache.spark.rdd.RDD$$anonfun$countByValue$1.apply(RDD.scala:1208)
  	at org.apache.spark.rdd.RDD$$anonfun$countByValue$1.apply(RDD.scala:1208)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
  	at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
  	at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
  	at org.apache.spark.rdd.RDD.countByValue(RDD.scala:1207)
  	at org.apache.spark.ml.feature.StringIndexer.fit(StringIndexer.scala:140)
  	at org.apache.spark.ml.feature.StringIndexer.fit(StringIndexer.scala:109)
  	at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:153)
  	at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:149)
  	at scala.collection.Iterator$class.foreach(Iterator.scala:893)
  	at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
  	at scala.collection.IterableViewLike$Transformed$class.foreach(IterableViewLike.scala:44)
  	at scala.collection.SeqViewLike$AbstractTransformed.foreach(SeqViewLike.scala:37)
  	at org.apache.spark.ml.Pipeline.fit(Pipeline.scala:149)
  	at org.apache.spark.ml.feature.RFormula.fit(RFormula.scala:292)
  	at org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper$.fit(GeneralizedLinearRegressionWrapper.scala:86)
  	at org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper.fit(GeneralizedLinearRegressionWrapper.scala)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:498)
  	at org.apache.spark.api.r.RBackendHandler.handleMethodCall(RBackendHandler.scala:167)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:108)
  	at org.apache.spark.api.r.RBackendHandler.channelRead0(RBackendHandler.scala:40)
  	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
  	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
  	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
  	at io.netty.
  1: spark.glm(training, Sepal_Width ~ Sepal_Length + Species) at /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/SparkR/tests/testthat/test_basic.R:58
  2: spark.glm(training, Sepal_Width ~ Sepal_Length + Species)
  3: .local(data, formula, ...)
  4: callJStatic("org.apache.spark.ml.r.GeneralizedLinearRegressionWrapper", "fit", formula, 
         data@sdf, tolower(family$family), family$link, tol, as.integer(maxIter), weightCol, 
         regParam, as.double(var.power), as.double(link.power), stringIndexerOrderType, 
         offsetCol)
  5: invokeJava(isStatic = TRUE, className, methodName, ...)
  6: handleErrors(returnStatus, conn)
  7: stop(readString(conn))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 0 SKIPPED: 0 FAILED: 2
  1. Error: create DataFrame from list or data.frame (@test_basic.R#26) 
  2. Error: spark.glm and predict (@test_basic.R#58) 
  
  Error: testthat unit tests failed
  Execution halted