uk.gov.gchq.gaffer.spark.SparkConstants Maven / Gradle / Ivy
/*
* Copyright 2017. Crown Copyright
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package uk.gov.gchq.gaffer.spark;
import org.apache.spark.serializer.KryoSerializer;
import uk.gov.gchq.gaffer.spark.serialisation.kryo.Registrator;
/**
* Utility class containing constants for use with the Spark library.
*/
public final class SparkConstants {
public static final String KRYO_REGISTRATOR = "spark.kryo.registrator";
public static final String SERIALIZER = "spark.serializer";
public static final String APP_NAME = "spark.appname";
public static final String DEFAULT_APP_NAME = "Gaffer";
public static final String MASTER = "spark.master";
public static final String MASTER_DEFAULT = "local[*]";
public static final String USE_SPARK_DEFAULT_CONF = "gaffer.spark.useSparkDefaultConf";
public static final String SPARK_DEFAULT_CONF_PATH = "spark.conf.path";
public static final String DEFAULT_SPARK_DEFAULT_CONF_PATH = "/opt/spark/conf/spark-defaults.conf";
public static final String DEFAULT_KRYO_REGISTRATOR = Registrator.class.getName();
public static final String DEFAULT_SERIALIZER = KryoSerializer.class.getName();
private SparkConstants() {
// Private constructor to prevent instantiation.
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy