Today, I have a strange question:
7/05/14 19:20:24 INFO util. Utils:fetching Http://192.168.31.160:33039/jars/spark_study_java-0.0.1-SNAPSHOT-jar-with-dependencies.jar to/tmp /spark-446068a4-aaa4-4277-b009-908bf0d4ecac/executor-dcc3175b-7d19-4485-81e1-bf31a83a66b4/ SPARK-3F849149-BCFB-44A2-90F6-C71F31098C30/FETCHFILETEMP8558073324247536081.TMP17/05/14 19:20:24 ERROR executor. Executor:exception in task 0.0 in stage 0.0 (TID 0) java.io.IOException:No space left on device at Java.io.FileOutputS Tream.writebytes (Native Method) at Java.io.FileOutputStream.write (fileoutputstream.java:345) at Org.apache.spark.ut Il. utils$ $anonfun $copystream$1.apply$mcj$sp (utils.scala:286) at org.apache.spark.util.utils$ $anonfun $copystream$1. Apply (utils.scala:252) at org.apache.spark.util.utils$ $anonfun $copystream$1.apply (utils.scala:252) at Org.apache.spark.util.utils$.trywithsafefinally (utils.scala:1206) at Org.apache.spark.util.utils$.copystream ( utils.scala:292) at Org.apache.spark.util.utils$.downloadfile (Utils.scala:415) at Org.apache.spark.util.utils$.dofetchfile (utils.scala:557) at Org.apache.spark.util.utils$.fetchfile ( utils.scala:356)
Always error, try to say on the internet
The first kind: Modify the configuration file spark-env.sh, introduce temporary files into a custom directory.
Export Spark_local_dirs=/home/utoken/datadir/spark/tmp
The second type: Lazy way, for the TMP directory does not enable TMPFS, directly modify the/etc/fstab
Several solutions are still not, and later through the df-h view two work node /dev/mapper/vg_spark1-lv_root are full, this is how to go through the search, the original is their own constantly testing procedures,. jar The package is constantly uploaded to the work node because the. jar is dependent, so it is larger. Constantly uploading the directory space for the work "/usr/local/spark-1.5.1/work" node is full.
When cleared, it works perfectly.
Note: Using the DU-SH * command can also list the current file and the size of the folder. This command should be noted: SH and * must have a space before.
Java.io.IOException:No space left on device error