1
0
cwiczenia/spark-submit.sh

13 lines
348 B
Bash
Raw Normal View History

2018-05-29 12:53:38 +02:00
#!/usr/bin/env bash
export HADOOP_CONF_DIR=$HOME/hadoop/conf
export HADOOP_HOME=$HOME/hadoop
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HADOOP_HOME/lib/native
export PYTHONIOENCODING=utf8
2018-05-27 12:25:47 +02:00
$HOME/spark/bin/spark-submit\
--master local[*]\
--name "$1"\
--conf "spark.sql.autoBroadcastJoinThreshold=-1"\
--conf "spark.sql.shuffle.partitions=50" $1