How it works
What Ilum does on your cluster, step by step
Ten mechanisms of Ilum, each from the request to the last pod, with the commands to follow it on your own cluster.
One column.
Six raw sources.
bank_gold.daily_spend.high_risk_payments, traced back through bank-gold-kpis and card-transactions-daily
01
How a Spark job runs on Kubernetes with Ilum
You send one HTTP request, and ilum-core runs spark-submit and follows the driver and executor pods to the end. There is no operator and no custom resource.
your Kubernetes cluster · namespace defaultSpark pods of this jobyour terminalhelm, kubectl, curlKubernetes APICreates and watches podsilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-hive-metastoreCatalog: table metadata9083 Thrift ilum-marquezLineage store9555 HTTP ilum-history-serverSpark history9666 HTTP ilum-minioObject storage (S3 API)9000 S3 driverSpark driverPendingRunningCompletedexec-1Spark executorPendingRunningCompletedHTTPlocalhost:9888HTTPPOST /api/v1/job/submitK8s APIcreate the driver podK8s APIrequest executor podsS3s3a:// read and writeThrifttable metadatagRPCjob eventsS3s3a://ilum-files/ilum/logsHTTPPOST /api/v1/lineageS3read event logsHTTPGET /api/v1/job/{jobId}A Spark job on Kubernetes: a diagram of the cluster in 7 steps.exec-2Spark executorPendingRunningCompletedStep 5 of 7: the job runs, and reports back.
02
How an interactive Spark session stays warm
A batch job starts a driver and executors every time it runs. A service starts them once, and every request after that goes to the driver that is already up.
your Kubernetes cluster · namespace defaultSpark pods of this serviceyour terminalhelm, kubectl, curlKubernetes APICreates and watches podsilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-minioObject storage (S3 API)9000 S3 driverSpark driver of the servicePendingRunningCompletedexec-1Spark executorPendingRunningCompletedHTTPPOST /api/v1/groupK8s APIcreate the driver podgRPCreadyHTTPPOST …/job/executegRPCexecuteS3s3a:// readHTTPPOST …/job/executegRPCexecuteA warm session: a diagram of the cluster in 5 steps.exec-2Spark executorPendingRunningCompletedStep 4 of 5: call it again.
03
How Ilum tracks data lineage, down to the column
Every Spark job that Ilum launches carries the OpenLineage listener, with no change to the job. The listener tells Marquez what each query read and wrote, down to the column.
your Kubernetes cluster · namespace defaultSpark driver of this jobyour terminalhelm, kubectl, curlilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-uiWeb console9777 HTTP ilum-marquezLineage store9555 HTTP ilum-hive-metastoreCatalog: table metadata9083 Thrift HTTPPOST /api/v1/job/submitK8s APIcreate the podThrifttable metadataHTTPPOST /api/v1/lineageHTTPSQL statementHTTPPOST /api/v1/lineage (DuckDB)HTTPlocalhost:9777HTTPlineage of a tableHTTPGET the graphThe lineage of a job: a diagram of the cluster in 7 steps.driverSpark driverPendingRunningCompletedStep 4 of 7: events go to marquez.
04
How a SQL query runs on DuckDB, Spark SQL and Trino
One request names the engine. DuckDB answers inside ilum-core, Spark SQL and Trino behind the gateway, and all three read the same tables in object storage.
your Kubernetes cluster · namespace defaultSpark pods of the engineyour terminalhelm, kubectl, curlilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-sqlSQL gateway (Apache Kyuubi)10009 JDBC · 10099 HTTP Kubernetes APICreates and watches podsilum-trinoTrino: coordinator and one worker8080 HTTP ilum-hive-metastoreCatalog: table metadata9083 Thrift ilum-minioObject storage (S3 API)9000 S3 driverSpark SQL enginePendingRunningCompletedexec-1Spark executorPendingRunningCompletedHTTPPOST /api/v1/sql/executeThrifttable lookupS3read the filesHTTPPOST /api/v1/sql/executeHTTPopen a sessionHTTPlaunch the engineK8s APIcreate the driver podThriftthe statementThrifttable metadataS3s3a:// readHTTPPOST /api/v1/sql/executeHTTPsession, engine TRINOHTTPthe statementThrifttable metadataS3read the filesJDBCjdbc:hive2://…:10009Thriftthe statementOne statement, three SQL engines: a diagram of the cluster in 7 steps.exec-2Spark executorPendingRunningCompletedStep 6 of 7: trino is already running.
05
Access control in Ilum: who may do what
ilum-core checks the token of every call against the permissions of the user, held directly, through roles or through groups. A call without the permission its endpoint names is answered 403.
- 1You sign in and ilum-core checks the password
- 2A signed token comes back
- 3With OpenID Connect the token comes from your provider
- 4Every call carries the token
- 5The endpoint names a permission and ilum-core looks it up
- 6Without the permission the answer is Forbidden
- 7A module opens only with its permission
- 8What was done goes to the Event Log
your Kubernetes cluster · namespace defaultyour terminalhelm, kubectl, curlyour identity providerOpenID Connect issuerilum-uiWeb console9777 HTTP ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-mongodbJob and cluster state27017 MongoDB HTTPPOST /core/authenticateHTTPPOST /authenticateMongoDBfind the userHTTPa signed JWTHTTPaccessToken, refreshTokenHTTPsign in with PKCEHTTPissuer metadata and keysMongoDBcreate or update the userHTTPAuthorization: Bearer …HTTP/api/dev/reactive/…MongoDBuser, roles, groupsHTTP403 {"message": "…"}HTTP403 ForbiddenHTTP/external/history-server/HTTPvalidate HISTORYSERVER_READHTTPthe page of the moduleMongoDBevent_log entryWho may do what: a diagram of the cluster in 8 steps.ilum-history-serverSpark history9666 HTTP Step 5 of 8: the endpoint names a permission and ilum-core looks it up.
06
What happens when a Jupyter notebook cell runs on Spark
Sparkmagic sends each cell over the Livy API to ilum-core, which keeps one Spark application on the cluster for the notebook. The first cell waits for it to start, and every later cell finds it running.
your Kubernetes cluster · namespace defaultSpark pods of this sessionyour terminalhelm, kubectl, curlilum-uiWeb console9777 HTTP ilum-jupyterNotebooks (Sparkmagic)8888 HTTP ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-giteaGit for notebooks and jobs3000 HTTP ilum-hive-metastoreCatalog: table metadata9083 Thrift ilum-minioObject storage (S3 API)9000 S3 driverSpark driver of the sessionPendingRunningCompletedexec-1Spark executorPendingRunningCompletedHTTPlocalhost:9777HTTP/external/jupyter/HTTPPOST /sessionsK8s APIcreate the podgRPCreadyHTTPGET /sessions/{id}HTTPPOST /sessions/{id}/statementsgRPCexecuteHTTPPOST /sessions/{id}/statementsgRPCexecuteThrifttable metadataS3s3a:// writeHTTPgit pushHTTPDELETE /sessions/{id}A notebook cell: a diagram of the cluster in 7 steps.exec-2Spark executorPendingRunningCompletedStep 5 of 7: the next cell finds spark running.
07
Where a table lives in Ilum: the catalog and the files
A table in Ilum is an entry in a catalog and files in object storage. The catalog says what the table is called and where it is, and every engine reads the files itself.
your Kubernetes cluster · namespace defaultSpark pods of the job that writesyour terminalhelm, kubectl, curlilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC ilum-uiWeb console9777 HTTP ilum-postgresqlPlatform metadata5432 JDBC ilum-hive-metastoreCatalog: table metadata9083 Thrift ilum-minioObject storage (S3 API)9000 S3 driverSpark driverPendingRunningCompletedexec-1Spark executorPendingRunningCompletedHTTPPOST /api/v1/job/submitK8s APIcreate the podThriftdatabase folderS3write the filesS3s3a://ilum-data/…Thriftname, fields, format, locationJDBCdatabase metastoreHTTPPOST /api/v1/sql/executeThriftfields, locationS3read the filesHTTPlocalhost:9777HTTPtables, filesThriftlist the catalogS3list the bucketWhere a table lives: a diagram of the cluster in 6 steps.exec-2Spark executorPendingRunningCompletedStep 3 of 6: the driver records the table in the catalog.
08
How a cron schedule becomes Spark jobs in Ilum
A schedule is a job definition and a cron expression. ilum-core turns it into a Kubernetes CronJob, and at every firing a small pod asks ilum-core for one more single job.
- 1A schedule is a job definition and a cron expression
- 2ilum-core hands the clock to Kubernetes
- 3Kubernetes evaluates the expression
- 4The pod makes one call to ilum-core
- 5ilum-core submits a single job
- 6The run appears among the jobs
- 7The next tick does not wait for the last run
- 8Pause suspends the CronJob, resume lifts it
your Kubernetes cluster · namespace defaultSpark driversyour terminalhelm, kubectl, curlilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC Kubernetes APICreates and watches podsschedule-<scheduleId>CronJob: one curl pod per tickilum-minioObject storage (S3 API)9000 S3 run 1Spark driverPendingRunningCompletedHTTPPOST /api/v1/scheduleS3the files of the scheduleK8s APIcreate a CronJobK8s APIschedule: your expressionK8s APIthe minute matches: start a podHTTPPOST …/schedule/{id}/activateK8s APIcreate the driver podgRPCjob eventsS3the files of the scheduleHTTPactivate, againK8s APIa second driver podHTTPPOST /api/v1/schedule/{scheduleId}/pauseK8s APIupdate the CronJobK8s APIsuspend: trueA schedule and its runs: a diagram of the cluster in 8 steps.run 2Spark driverPendingRunningCompletedStep 4 of 8: the pod makes one call to ilum-core.
09
How Ilum adds a module to a running platform
Press Deploy and ilum-api starts a Kubernetes Job that runs helm upgrade on the release you installed Ilum with. The pods of the module come up while the rest of the platform keeps running.
your Kubernetes cluster · namespace defaultyour terminalhelm, kubectl, curlilum-uiWeb console9777 HTTP ilum-apiInstalls modules at runtime8080 HTTP Kubernetes APICreates and watches podsilum-helm-<operationId>Job: one pod runs helm upgrade release ilumHelm: one Secret per revisionHTTPPOST /external/api/modules/trino/enableHTTPPOST /api/v1/modules/trino/enableK8s APIcreate Job ilum-helm-0dfde59e008aHTTP202 · id 0dfde59e008aK8s APIrevision 2K8s APIapply the manifestsK8s APIpods of ilum-trino ready?K8s APIstill revision 2?HTTPGET /external/api/operations/0dfde59e008aHTTPGET /api/v1/operations/0dfde59e008aA module installed from the console: a diagram of the cluster in 6 steps.ilum-trinoTrino: coordinator and one worker8080 HTTP Step 3 of 6: the job's pod runs helm upgrade on the same release.
10
How one Ilum console runs Spark on several clusters
A cluster in Ilum is where Spark runs: a Kubernetes namespace, a Hadoop cluster with YARN, or threads inside ilum-core. Every job names one, and its driver reports back to the same ilum-core.
- 1The chart creates the default cluster
- 2ilum-core checks that it can reach the cluster
- 3The Spark storage gets what every job needs
- 4A job names its cluster
- 5The cluster's settings become the job's
- 6spark-submit goes to the cluster's API
- 7The driver reports back to ilum-core
- 8The Metrics tab asks the cluster
your Kubernetes cluster · namespace defaultSpark driveryour terminalhelm, kubectl, curlilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC Kubernetes APICreates and watches podsilum-minioObject storage (S3 API)9000 S3 HTTPGET /api/v1/clusterHTTPPOST /api/v1/clusterK8s APIlist pods in the namespaceS3ilum/default/ilum-job.jar …HTTPPOST /api/v1/job/submitK8s APIcreate the driver podS3s3a://ilum-files/ilum/default/gRPCjob stateK8s APInodes, pods, pod metricsA cluster, and a job on it: a diagram of the cluster in 8 steps.driverSpark driverPendingRunningCompletedStep 7 of 8: the driver reports back to ilum-core.
Run it on your own cluster
Two commands on any Kubernetes cluster. The Community license is free.
helm repo add ilum https://charts.ilum.cloudhelm install ilum ilum/ilum