private JavaSparkContext getSparkContext() {
        SparkConf sparkConf = new SparkConf()
            .setAppName("Spark Graph")
            .set(SparkLauncher.SPARK_MASTER, "local[4]")
            .set(Constants.SPARK_SERIALIZER, GryoSerializer.class.getCanonicalName());
        return new JavaSparkContext(sparkConf);
    }
@author Boxuan Li (https://li-boxuan.com)
spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/SparkRDDLoadTest.java