## spark-hadoop jar包
http://mirror.bit.edu.cn/apache/spark/spark-2.2.1/spark-2.2.1-bin-hadoop2.7.tgz

## tispark jar包驱动
http://download.pingcap.org/tispark-1.0-RC1-jar-with-dependencies.jar

## jdk >= 1.8.0
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

## mysql 驱动
http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.44/mysql-connector-java-5.1.44.jar

## 放置jar包
mysql jar
tispark jar
/usr/local/Cellar/apache-spark/2.1.2/jars

## spark 配置
/usr/local/Cellar/apache-spark/2.1.2/conf

spark-env.sh
    
    export SPARK_EXECUTOR_MEMORY=3g
    export SPARK_WORKER_MEMORY=3g
    export SPARK_WORKER_CORES=2

spark-defaults.conf

    spark.tispark.pd.addresses 192.168.15.11:2379
