node. if grep -Fq "\"isMaster\": true" /mnt/var/lib/info/instance.json ; then # open the ssh port... perl -pi -e 's/^#?Port 22$/Port 22\nPort 443/' /etc/ssh/sshd_config /etc/init.d/sshd restart # install scala and sbt. # scala is in standard bootstrap action of EMR. so you dont need to install by yourself. wget https://dl.bintray.com/sbt/rpm/sbt-0.13.7.rpm sudo rpm -ivh sbt-0.13.7.rpm ͖ͭͮ·͢ɻ
MappedRDD[3] at textFile at <console>:12 scala> val r2 = sc.textFile("ratings.csv") r2: org.apache.spark.rdd.RDD[String] = ratings.csv MappedRDD[5] at textFile at <console>:12 scala> for (r <- r1) { | r2 take(5) foreach(println) | } 15/02/05 08:52:16 ERROR Executor: Exception in task 0.0 in stage 1.0 (TID 1) java.lang.NullPointerException at org.apache.spark.rdd.RDD.firstParent(RDD.scala:1239) at org.apache.spark.rdd.MappedRDD.getPartitions(MappedRDD.scala:28) (ҎԼলུ)