Package org.gorpipe.spark
Class GorSparkUtilities
java.lang.Object
org.gorpipe.spark.GorSparkUtilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic org.apache.spark.api.python.Py4JServerstatic intstatic Stringstatic org.apache.spark.api.r.RBackendgetRPath()static org.gorpipe.gor.monitor.GorMonitorgetSparkGorMonitor(String jobId, String redisUri, String key) static Stringstatic org.apache.spark.sql.SparkSessionstatic org.apache.spark.sql.SparkSessiongetSparkSession(int workers) static org.apache.spark.api.python.Py4JServerstatic voidinitPySpark(Optional<String> standaloneRoot) static voidstatic List<org.apache.spark.sql.Row>stream2SparkRowList(Stream<org.gorpipe.gor.model.Row> str, org.apache.spark.sql.types.StructType schema)
-
Method Details
-
getPyServer
public static org.apache.spark.api.python.Py4JServer getPyServer() -
getRBackend
public static org.apache.spark.api.r.RBackend getRBackend() -
getPyServerPort
public static int getPyServerPort() -
getPyServerSecret
-
getJupyterPath
-
parseDriverId
-
getRPath
-
closePySpark
public static void closePySpark() -
shutdownPy4jServer
public static void shutdownPy4jServer() -
initPy4jServer
public static org.apache.spark.api.python.Py4JServer initPy4jServer() -
initPySpark
-
getSparkGorRedisUri
-
getSparkGorMonitor
-
getSparkSession
public static org.apache.spark.sql.SparkSession getSparkSession() -
getSparkSession
public static org.apache.spark.sql.SparkSession getSparkSession(int workers) -
stream2SparkRowList
-