Skip to content

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.

For Ilum 6.7.3.

One column.
Six raw sources.

bank_gold.daily_spend.high_risk_payments, traced back through bank-gold-kpis and card-transactions-daily

bank_gold.daily_spend.high_risk_payments. Built from: bank_silver.card_transactions.risk_score, bank_bronze.transactions.txn_ts, bank_bronze.transactions.amount, bank_bronze.transactions.status, bank_bronze.transactions.channel, bank_bronze.transactions.scope, bank_bronze.fx_rates.usd_rate.

How Ilum tracks data lineage, down to the column

  1. 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.

    1. 1Reach the API
    2. 2Submit the job
    3. 3ilum-core launches the driver
    4. 4The driver asks for executors
    5. 5The job runs, and reports back
    6. 6Logs and lineage leave a trail
    7. 7Finished
    your Kubernetes cluster · namespace default
    Spark pods of this job
    your terminalhelm, kubectl, curl
    Kubernetes APICreates and watches pods
    ilum-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 driverPendingRunningCompleted
    exec-1Spark executorPendingRunningCompleted
    exec-2Spark executorPendingRunningCompleted
    HTTPlocalhost: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.

    Step 5 of 7: the job runs, and reports back.

  2. 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.

    1. 1Create the service
    2. 2Spark starts once
    3. 3Execute against the warm driver
    4. 4Call it again
    5. 5Idle services scale to zero
    your Kubernetes cluster · namespace default
    Spark pods of this service
    your terminalhelm, kubectl, curl
    Kubernetes APICreates and watches pods
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    ilum-minioObject storage (S3 API)9000 S3
    driverSpark driver of the servicePendingRunningCompleted
    exec-1Spark executorPendingRunningCompleted
    exec-2Spark executorPendingRunningCompleted
    HTTPPOST /api/v1/groupK8s APIcreate the driver podgRPCreadyHTTPPOST …/job/executegRPCexecuteS3s3a:// readHTTPPOST …/job/executegRPCexecuteA warm session: a diagram of the cluster in 5 steps.

    Step 4 of 5: call it again.

  3. your Kubernetes cluster · namespace default
    Spark driver of this job
    your terminalhelm, kubectl, curl
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    ilum-uiWeb console9777 HTTP
    ilum-marquezLineage store9555 HTTP
    ilum-hive-metastoreCatalog: table metadata9083 Thrift
    driverSpark driverPendingRunningCompleted
    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.

    Step 4 of 7: events go to marquez.

  4. your Kubernetes cluster · namespace default
    Spark pods of the engine
    your terminalhelm, kubectl, curl
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    ilum-sqlSQL gateway (Apache Kyuubi)10009 JDBC · 10099 HTTP
    Kubernetes APICreates and watches pods
    ilum-trinoTrino: coordinator and one worker8080 HTTP
    ilum-hive-metastoreCatalog: table metadata9083 Thrift
    ilum-minioObject storage (S3 API)9000 S3
    driverSpark SQL enginePendingRunningCompleted
    exec-1Spark executorPendingRunningCompleted
    exec-2Spark executorPendingRunningCompleted
    HTTPPOST /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.

    Step 6 of 7: trino is already running.

  5. your Kubernetes cluster · namespace default
    your terminalhelm, kubectl, curl
    your identity providerOpenID Connect issuer
    ilum-uiWeb console9777 HTTP
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    ilum-mongodbJob and cluster state27017 MongoDB
    ilum-history-serverSpark history9666 HTTP
    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.

    Step 5 of 8: the endpoint names a permission and ilum-core looks it up.

  6. 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.

    1. 1Open a notebook in Jupyter
    2. 2The first cell asks for a session
    3. 3Spark starts, once per notebook
    4. 4The cell travels as a statement
    5. 5The next cell finds Spark running
    6. 6The notebook itself is a file in Git
    7. 7The session ends with its kernel
    your Kubernetes cluster · namespace default
    Spark pods of this session
    your terminalhelm, kubectl, curl
    ilum-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 sessionPendingRunningCompleted
    exec-1Spark executorPendingRunningCompleted
    exec-2Spark executorPendingRunningCompleted
    HTTPlocalhost: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.

    Step 5 of 7: the next cell finds spark running.

  7. your Kubernetes cluster · namespace default
    Spark pods of the job that writes
    your terminalhelm, kubectl, curl
    ilum-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 driverPendingRunningCompleted
    exec-1Spark executorPendingRunningCompleted
    exec-2Spark executorPendingRunningCompleted
    HTTPPOST /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.

    Step 3 of 6: the driver records the table in the catalog.

  8. your Kubernetes cluster · namespace default
    Spark drivers
    your terminalhelm, kubectl, curl
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    Kubernetes APICreates and watches pods
    schedule-<scheduleId>CronJob: one curl pod per tick
    ilum-minioObject storage (S3 API)9000 S3
    run 1Spark driverPendingRunningCompleted
    run 2Spark driverPendingRunningCompleted
    HTTPPOST /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.

    Step 4 of 8: the pod makes one call to ilum-core.

  9. your Kubernetes cluster · namespace default
    your terminalhelm, kubectl, curl
    ilum-uiWeb console9777 HTTP
    ilum-apiInstalls modules at runtime8080 HTTP
    Kubernetes APICreates and watches pods
    ilum-helm-<operationId>Job: one pod runs helm upgrade
    release ilumHelm: one Secret per revision
    ilum-trinoTrino: coordinator and one worker8080 HTTP
    HTTPPOST /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.

    Step 3 of 6: the job's pod runs helm upgrade on the same release.

  10. your Kubernetes cluster · namespace default
    Spark driver
    your terminalhelm, kubectl, curl
    ilum-coreJobs, sessions, SQL, REST API9888 HTTP · 9999 gRPC
    Kubernetes APICreates and watches pods
    ilum-minioObject storage (S3 API)9000 S3
    driverSpark driverPendingRunningCompleted
    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.

    Step 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.

shelldocs ↗
helm repo add ilum https://charts.ilum.cloud
helm install ilum ilum/ilum