karps-0.2.0.0: Haskell bindings for Spark Dataframes and Datasets

Safe HaskellNone
LanguageHaskell2010

Spark.Core.Internal.ContextIOInternal

Synopsis

Documentation

createSparkSession :: MonadLoggerIO m => SparkSessionConf -> m SparkSession Source #

Creates a new Spark session.

This session is unique, and it will not try to reconnect to an existing session.

createSparkSession' :: SparkSessionConf -> IO SparkSession Source #

Convenience function for simple cases that do not require monad stacks.

executeCommand1 :: forall a. FromSQL a => LocalData a -> SparkState (Try a) Source #

Executes a command: - performs the transforms and the optimizations in the pure state - sends the computation to the backend - waits for the terminal nodes to reach a final state - commits the final results to the state

If any failure is detected that is internal to Karps, it returns an error. If the error comes from an underlying library (http stack, programming failure), an exception may be thrown instead.

checkDataStamps :: [HdfsPath] -> SparkState [(HdfsPath, Try DataInputStamp)] Source #

Given a list of paths, checks each of these paths on the file system of the given Spark cluster to infer the status of these resources.

The primary role of this function is to check how recent these resources are compared to some previous usage.