-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathspark-scala.sh
42 lines (35 loc) · 976 Bytes
/
spark-scala.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
#SBATCH -p debug
#SBATCH -N 6
#SBATCH -t 00:05:00
#SBATCH -e mysparkjob_%j.err
#SBATCH -o mysparkjob_%j.out
#SBATCH --ccm
##SBATCH --qos=premium
#module unload spark/hist-server
module load spark
#module load collectl
#start-collectl.sh
start-all.sh
export LD_LIBRARY_PATH=$LD_LBRARY_PATH:$PWD/lib
###load single large hdf5 file####
repartition="200"
inputfile="/global/cscratch1/sd/jialin/io-ticket/udf-dbin/fake-2d-tiny.h5p"
app_name="H5Sspark-udf"
dataset="/testg/testd"
spark-submit --verbose\
--master $SPARKURL\
--name $app_name \
--driver-memory 100G\
--executor-cores 32 \
--driver-cores 32 \
--num-executors=5 \
--executor-memory 105G\
--class org.nersc.io.readtest\
--conf spark.eventLog.enabled=true\
--conf spark.eventLog.dir=$SCRATCH/spark/spark_event_logs\
target/scala-2.11/h5spark-assembly-1.0.jar \
$repartition "$inputfile" "$dataset"
rm /global/cscratch1/sd/jialin/spark_tmp_dir/*
stop-all.sh
#stop-collectl.sh