1
0
cwiczenia/too_few_partitions-submit_bad.sh

14 lines
349 B
Bash
Raw Normal View History

#!/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[10]\
--name "$1"\
--conf "spark.sql.autoBroadcastJoinThreshold=-1"\
--conf "spark.sql.shuffle.partitions=2" $1