计算Algorithm BetweennessCentrality 报错java.lang.OutOfMemoryError: GC overhead limit exceeded
原因是driver内存不足 默认是1g
添加配置 --driver-memory 8g --executor-cores 4 --num-executors 10 --executor-memory 8g
例如
spark-submit --master "local" --driver-memory 8g --executor-cores 4 --num-executors 10 --executor-memory 8g --class xxx ***.jar