All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.radanalytics.operator.Constants Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
package io.radanalytics.operator;

public class Constants {

    public static String DEFAULT_SPARK_IMAGE = "quay.io/jkremser/openshift-spark:2.4.0";
    public static String DEFAULT_SPARK_APP_IMAGE = "quay.io/jkremser/openshift-spark:2.3-latest";
    public static final String OPERATOR_TYPE_UI_LABEL = "ui";
    public static final String OPERATOR_TYPE_MASTER_LABEL = "master";
    public static final String OPERATOR_TYPE_WORKER_LABEL = "worker";

    public static String getDefaultSparkImage() { 
        String ret = DEFAULT_SPARK_IMAGE;
        if (System.getenv("DEFAULT_SPARK_CLUSTER_IMAGE") != null) {
            ret = System.getenv("DEFAULT_SPARK_CLUSTER_IMAGE");
        }
        return ret;
    }

    public static String getDefaultSparkAppImage() { 
        String ret = DEFAULT_SPARK_APP_IMAGE;
        if (System.getenv("DEFAULT_SPARK_APP_IMAGE") != null) {
            ret = System.getenv("DEFAULT_SPARK_APP_IMAGE");
        }
        return ret;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy