# Spark

**URL:** https://swan-community.web.cern.ch/c/spark/9.md

[Latest](https://swan-community.web.cern.ch/latest.md) · [Categories](https://swan-community.web.cern.ch/categories.md)

---

## [Scheduling Spark notebooks with Gitlab CI/CD](https://swan-community.web.cern.ch/t/scheduling-spark-notebooks-with-gitlab-ci-cd/177)

<div class="topic-metadata">

**Author:** [@pmrowczy](https://swan-community.web.cern.ch/u/pmrowczy)\
**Replies:** 0\
**Last updated:** [December 4, 2019, 11:32am UTC](https://swan-community.web.cern.ch/t/scheduling-spark-notebooks-with-gitlab-ci-cd/177 "2019-12-04T11:32:30Z")

</div>

Dear SWAN users, We noticed interest on productionizing Spark notebooks for analytics pipelines, versioned with git. The proposed pipeline will consist of prototyping a Spark job in SWAN in interactive mode, committing…

---

## [About the Spark category](https://swan-community.web.cern.ch/t/about-the-spark-category/18)

<div class="topic-metadata">

**Author:** [@marsuaga](https://swan-community.web.cern.ch/u/marsuaga)\
**Replies:** 0

</div>

SWAN as entry point to Spark clusters: connection to the cluster, job submission and monitoring from the notebook.

---

## [Error creating proxy certificate: No route to host](https://swan-community.web.cern.ch/t/error-creating-proxy-certificate-no-route-to-host/835)

<div class="topic-metadata">

**Author:** [@vsedighz](https://swan-community.web.cern.ch/u/vsedighz)\
**Replies:** 4\
**Last updated:** [April 15, 2025, 9:37am UTC](https://swan-community.web.cern.ch/t/error-creating-proxy-certificate-no-route-to-host/835 "2025-04-15T09:37:56Z")

</div>

Hello all, I’m encountering an issue when trying to create a proxy on SWAN terminal. The VOMS server is contacted successfully, but the proxy creation fails with a “No route to host” error. Here’s the command and outpu…

---

## [Distributed RDataFrames with Spark](https://swan-community.web.cern.ch/t/distributed-rdataframes-with-spark/690)

<div class="topic-metadata">

**Author:** [@sagiorge](https://swan-community.web.cern.ch/u/sagiorge)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 12:37pm UTC](https://swan-community.web.cern.ch/t/distributed-rdataframes-with-spark/690 "2023-09-14T12:37:45Z")

</div>

Dear All, I wish to read ROOT ntuples from EOS as distributed RDataFrames using the CERN Spark cluster on SWAN. I found an example from the last ROOT workshop: https://github.com/etejedor/distrdf-dimuon-analysis/blob/ma…

---

## [Spark cluster: All executors are not utilized](https://swan-community.web.cern.ch/t/spark-cluster-all-executors-are-not-utilized/674)

<div class="topic-metadata">

**Author:** [@nakolkar](https://swan-community.web.cern.ch/u/nakolkar)\
**Replies:** 2\
**Last updated:** [August 17, 2023, 8:39am UTC](https://swan-community.web.cern.ch/t/spark-cluster-all-executors-are-not-utilized/674 "2023-08-17T08:39:01Z")

</div>

Dear experts, I am trying to run a python script that constructs a Spark distributed dataframe (ROOT.RDF.Experimental.Distributed.Spark.RDataFrame) inside a spark cluster (after clicking the star button in SWAN). Here i…

---

## [I/O of ROOT files stored on EOS](https://swan-community.web.cern.ch/t/i-o-of-root-files-stored-on-eos/657)

<div class="topic-metadata">

**Author:** [@nakolkar](https://swan-community.web.cern.ch/u/nakolkar)\
**Replies:** 3\
**Last updated:** [July 19, 2023, 1:26pm UTC](https://swan-community.web.cern.ch/t/i-o-of-root-files-stored-on-eos/657 "2023-07-19T13:26:08Z")

</div>

Dear experts, I want to make a RDataFrame from few root files stored on eos of my colleague. (He has provided me access to the directory). I wish to use spark clusters on SWAN and am also familiar with distributed RDF i…

---

## [Passing sparkcontext variable to execution scripts](https://swan-community.web.cern.ch/t/passing-sparkcontext-variable-to-execution-scripts/623)

<div class="topic-metadata">

**Author:** [@ymino](https://swan-community.web.cern.ch/u/ymino)\
**Replies:** 3\
**Last updated:** [May 2, 2023, 4:16pm UTC](https://swan-community.web.cern.ch/t/passing-sparkcontext-variable-to-execution-scripts/623 "2023-05-02T16:16:48Z")

</div>

Dear Experts, I have been using RDataFrame with Spark Clusters and currently have no issues using a single jupyter notebook. Now I want to convert my local scripts with RDataFrame without converting all scripts to Jupyt…

---

## [TFRecord format integration on the SWAN Spark Cluster for ML inference](https://swan-community.web.cern.ch/t/tfrecord-format-integration-on-the-swan-spark-cluster-for-ml-inference/611)

<div class="topic-metadata">

**Author:** [@sagiorge](https://swan-community.web.cern.ch/u/sagiorge)\
**Replies:** 4\
**Last updated:** [March 17, 2023, 8:44am UTC](https://swan-community.web.cern.ch/t/tfrecord-format-integration-on-the-swan-spark-cluster-for-ml-inference/611 "2023-03-17T08:44:53Z")

</div>

Hello, I’m currently using Jupyter Notebooks on SWAN with the k8s Spark cluster to process and analyze data (with python). I’m trying to run inference on a collection of parquet files, processed as a spark dataframe. M…

---

## [Access to EOS files from spark cluster](https://swan-community.web.cern.ch/t/access-to-eos-files-from-spark-cluster/621)

<div class="topic-metadata">

**Author:** [@ymino](https://swan-community.web.cern.ch/u/ymino)\
**Replies:** 4\
**Last updated:** [February 6, 2023, 11:57am UTC](https://swan-community.web.cern.ch/t/access-to-eos-files-from-spark-cluster/621 "2023-02-06T11:57:05Z")

</div>

Dear experts, I have been trying to run the PyRDF with a simple code below by accessing my files under /eos/atlas . import ROOT import PyRDF # Select Spark backend, partition the dataset in 16 fragments when running di…

---

## [Macros in RDataFrames Redefine](https://swan-community.web.cern.ch/t/macros-in-rdataframes-redefine/555)

<div class="topic-metadata">

**Author:** [@ntoikka](https://swan-community.web.cern.ch/u/ntoikka)\
**Replies:** 2\
**Last updated:** [June 27, 2022, 2:03pm UTC](https://swan-community.web.cern.ch/t/macros-in-rdataframes-redefine/555 "2022-06-27T14:03:12Z")

</div>

Hi, I’m trying to use RDataFrames Redefine with a macro that I’ve defined previously in the code, but I can’t seem to get it working. Here’s the code: import ROOT import pyspark id\_code = """ auto id\_pair(ROOT::RVec\<f…

---

## [Configure spark.driver.maxResultSize](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539)

<div class="topic-metadata">

**Author:** [@topereir](https://swan-community.web.cern.ch/u/topereir)\
**Replies:** 2\
**Last updated:** [May 20, 2022, 8:56am UTC](https://swan-community.web.cern.ch/t/configure-spark-driver-maxresultsize/539 "2022-05-20T08:56:12Z")

</div>

Hello, I am trying to increase the spark.driver.maxResultSize to 2g instead of the 1g by default, but I get the following error message: Are we not allowed to change this parameter or is there another way to increas…

---

## [Receive data from a device](https://swan-community.web.cern.ch/t/receive-data-from-a-device/517)

<div class="topic-metadata">

**Author:** [@aamodio](https://swan-community.web.cern.ch/u/aamodio)\
**Replies:** 4\
**Last updated:** [February 21, 2022, 3:34pm UTC](https://swan-community.web.cern.ch/t/receive-data-from-a-device/517 "2022-02-21T15:34:07Z")

</div>

Dear experts, I’d like to ask if is it possible to receive data over the internet on SWAN. Currently, I receive some data from a computer to my office PC, and I’d like to do this on SWAN. Could it be possible? How I can…

---

## [Apache Hadoop token expired](https://swan-community.web.cern.ch/t/apache-hadoop-token-expired/514)

<div class="topic-metadata">

**Author:** [@edfarina](https://swan-community.web.cern.ch/u/edfarina)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 8:54am UTC](https://swan-community.web.cern.ch/t/apache-hadoop-token-expired/514 "2022-02-14T08:54:54Z")

</div>

Hello all! I am running into the following error, while extracting data from PyTimber. It looks to me that the Apache Hadoop token is expired. Is there a way to set a longer expiration date for the token or to automati…

---

## [Spark jobs never handled on k8s](https://swan-community.web.cern.ch/t/spark-jobs-never-handled-on-k8s/377)

<div class="topic-metadata">

**Author:** [@vbrian](https://swan-community.web.cern.ch/u/vbrian)\
**Replies:** 11\
**Last updated:** [October 1, 2021, 3:55pm UTC](https://swan-community.web.cern.ch/t/spark-jobs-never-handled-on-k8s/377 "2021-10-01T15:55:19Z")

</div>

Hello, I recently have some issues related to using k8s. Here is a screenshot where I am submitting spark jobs through the PyRDF module, and you see that I have 0 executors/0 cores assigned to them ; these numbers move …

---

## [Distributed RDataFrames memory issue on workers](https://swan-community.web.cern.ch/t/distributed-rdataframes-memory-issue-on-workers/427)

<div class="topic-metadata">

**Author:** [@vbrian](https://swan-community.web.cern.ch/u/vbrian)\
**Replies:** 4\
**Last updated:** [June 7, 2021, 2:13pm UTC](https://swan-community.web.cern.ch/t/distributed-rdataframes-memory-issue-on-workers/427 "2021-06-07T14:13:45Z")

</div>

Dear experts, I am using the new distributed RDataframes framework, using the bleeding edge software stack and the k8s cluster, defining SparkRDataFrame = ROOT.RDF.Experimental.Distributed.Spark.RDataFrame I recently …

---

## [Debugging "java.net.SocketException: Connection reset"](https://swan-community.web.cern.ch/t/debugging-java-net-socketexception-connection-reset/408)

<div class="topic-metadata">

**Author:** [@nihaubri](https://swan-community.web.cern.ch/u/nihaubri)\
**Replies:** 4\
**Last updated:** [April 22, 2021, 7:21am UTC](https://swan-community.web.cern.ch/t/debugging-java-net-socketexception-connection-reset/408 "2021-04-22T07:21:29Z")

</div>

Dear experts, I’m trying to understand why some of my spark jobs are failing at the treeReduce stage when using PyRDF and the k8s cluster. Py4JJavaError: An error occurred while calling z:org.apache.spark.api.python.…

---

## [Npartitions in PyRDF](https://swan-community.web.cern.ch/t/npartitions-in-pyrdf/390)

<div class="topic-metadata">

**Author:** [@nihaubri](https://swan-community.web.cern.ch/u/nihaubri)\
**Replies:** 3\
**Last updated:** [April 12, 2021, 2:47pm UTC](https://swan-community.web.cern.ch/t/npartitions-in-pyrdf/390 "2021-04-12T14:47:21Z")

</div>

Dear experts, I’m new to using Spark clusters and PyRDF on SWAN and I’m confused by the behaviour I’m seeing for setting different values for npartitions in PyRDF.use(‘spark’,{‘npartitions’:4}). I’m using 99 on CentOS …

---

## [Access to the Analytix cluster is not granted](https://swan-community.web.cern.ch/t/access-to-the-analytix-cluster-is-not-granted/372)

<div class="topic-metadata">

**Author:** [@shelena](https://swan-community.web.cern.ch/u/shelena)\
**Replies:** 4\
**Last updated:** [February 20, 2021, 6:30pm UTC](https://swan-community.web.cern.ch/t/access-to-the-analytix-cluster-is-not-granted/372 "2021-02-20T18:30:56Z")

</div>

Dear experts, I’m trying to request a spark cluster in the SWAN’s configuration at start up. However it says: “Access to the Analytix cluster is not granted. Please request access.” The given link is not working. What…

---

## [How to monitor resource usage?](https://swan-community.web.cern.ch/t/how-to-monitor-resource-usage/361)

<div class="topic-metadata">

**Author:** [@lclissa](https://swan-community.web.cern.ch/u/lclissa)\
**Replies:** 6\
**Last updated:** [February 18, 2021, 3:08pm UTC](https://swan-community.web.cern.ch/t/how-to-monitor-resource-usage/361 "2021-02-18T15:08:53Z")

</div>

Hi all :slight\_smile: I’m running data analysis using pyspark through SWAN notebooks and I’d like to “profile” my application so to see where I can improve and whether I could do so by just changing the initial configur…

---

## [No spark monitor display](https://swan-community.web.cern.ch/t/no-spark-monitor-display/352)

<div class="topic-metadata">

**Author:** [@grigolet](https://swan-community.web.cern.ch/u/grigolet)\
**Replies:** 2\
**Last updated:** [February 9, 2021, 3:18pm UTC](https://swan-community.web.cern.ch/t/no-spark-monitor-display/352 "2021-02-09T15:18:58Z")

</div>

Hello, I don’t know if I messed up with my notebook configuration but I noticed that when I access the NXCALS cluster and query for some data I don’t get the spark notebook monitor anymore. Do you know how I can debug o…

---

## [How to propagate swan configuration to spark nodes](https://swan-community.web.cern.ch/t/how-to-propagate-swan-configuration-to-spark-nodes/347)

<div class="topic-metadata">

**Author:** [@lclissa](https://swan-community.web.cern.ch/u/lclissa)\
**Replies:** 2\
**Last updated:** [February 5, 2021, 3:28pm UTC](https://swan-community.web.cern.ch/t/how-to-propagate-swan-configuration-to-spark-nodes/347 "2021-02-05T15:28:27Z")

</div>

Hi all, I’m trying to run pyspark code interactively through swan. In particular what I do is: start swan on Analytix configuring some local packages, i.e. provide .sh script where I append the path to my packages to t…

---

## [Connect to spark cluster on startup](https://swan-community.web.cern.ch/t/connect-to-spark-cluster-on-startup/348)

<div class="topic-metadata">

**Author:** [@grigolet](https://swan-community.web.cern.ch/u/grigolet)\
**Replies:** 5\
**Last updated:** [February 4, 2021, 12:45pm UTC](https://swan-community.web.cern.ch/t/connect-to-spark-cluster-on-startup/348 "2021-02-04T12:45:11Z")

</div>

Hello, I would like to know if it is possible to connect to a spark cluster when I open swan without having to connect manually from the UI. In particular I would like to be able to connect to the NXCALS cluster when s…

---

## [How to save data to file with BE NXCals cluster?](https://swan-community.web.cern.ch/t/how-to-save-data-to-file-with-be-nxcals-cluster/331)

<div class="topic-metadata">

**Author:** [@dguerrei](https://swan-community.web.cern.ch/u/dguerrei)\
**Replies:** 1\
**Last updated:** [November 30, 2020, 9:43am UTC](https://swan-community.web.cern.ch/t/how-to-save-data-to-file-with-be-nxcals-cluster/331 "2020-11-30T09:43:24Z")

</div>

hi all, For a quicker access to data previously queried to NXCALS DB, I would like to save my pandas dataframe as a parquet file. I looked around but could not find any documentation on how to do this, specially in how…

---

## [Failure to run with PyRDF in non-local mode](https://swan-community.web.cern.ch/t/failure-to-run-with-pyrdf-in-non-local-mode/303)

<div class="topic-metadata">

**Author:** [@psilva](https://swan-community.web.cern.ch/u/psilva)\
**Replies:** 2\
**Last updated:** [October 12, 2020, 9:49am UTC](https://swan-community.web.cern.ch/t/failure-to-run-with-pyrdf-in-non-local-mode/303 "2020-10-12T09:49:19Z")

</div>

Hello, i’m having problems running my jobs with PyRDF in non-local mode. I use the current standard default swan configuration and connect to k8s also with its standard configuration. My notebook also runs fine locall…

---

## [Open .root file with spark](https://swan-community.web.cern.ch/t/open-root-file-with-spark/262)

<div class="topic-metadata">

**Author:** [@nraab](https://swan-community.web.cern.ch/u/nraab)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 6:36pm UTC](https://swan-community.web.cern.ch/t/open-root-file-with-spark/262 "2020-06-08T18:36:00Z")

</div>

Dear experts, I am trying to open a .root file in my local folder or /eos within spark. I have found several different approaches to this but none work for me. I tried: “df = spark.read.format(“org.dianahep.sparkroot.e…

---

## [PyRDF jobs (crash?)](https://swan-community.web.cern.ch/t/pyrdf-jobs-crash/257)

<div class="topic-metadata">

**Author:** [@vbrian](https://swan-community.web.cern.ch/u/vbrian)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 4:23pm UTC](https://swan-community.web.cern.ch/t/pyrdf-jobs-crash/257 "2020-05-29T16:23:38Z")

</div>

Dear developpers, I am using spark clusters (k8s) through the PyRDF module and I am encountering a really interesting issue that I think I never heard before… As I said, I am using the PyRDF module (which is a wrapper …

---

## [Cloud containers access from SWAN](https://swan-community.web.cern.ch/t/cloud-containers-access-from-swan/256)

<div class="topic-metadata">

**Author:** [@vbrian](https://swan-community.web.cern.ch/u/vbrian)\
**Replies:** 2\
**Last updated:** [May 28, 2020, 12:01pm UTC](https://swan-community.web.cern.ch/t/cloud-containers-access-from-swan/256 "2020-05-28T12:01:14Z")

</div>

Dear SWAN developers, I tried to use the PyRDF module using K8s configuration, and I encountered some issues that you may be aware of ; first of all, k8s is not available in LCG97, do you plan to make it accessible ? Mo…

---

## [Secure Connection Failed](https://swan-community.web.cern.ch/t/secure-connection-failed/255)

<div class="topic-metadata">

**Author:** [@juang](https://swan-community.web.cern.ch/u/juang)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 7:47am UTC](https://swan-community.web.cern.ch/t/secure-connection-failed/255 "2020-05-28T07:47:19Z")

</div>

Hello, After a couple of weeks of inactivity with SWAN, I am trying to connect to https://swan.web.cern.ch and I get a ‘Secure Connection Failed’ error. Same issue with https://swan001.cern.ch , 002, … Is the service …

---

## [Using SparkR with IT Spark Clusters](https://swan-community.web.cern.ch/t/using-sparkr-with-it-spark-clusters/237)

<div class="topic-metadata">

**Author:** [@pkothuri](https://swan-community.web.cern.ch/u/pkothuri)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 10:57am UTC](https://swan-community.web.cern.ch/t/using-sparkr-with-it-spark-clusters/237 "2020-04-22T10:57:40Z")

</div>

Spark is built with R support and published to the LCG releases, although there is no spark connector to simplify connection to the Spark clusters, users can still establish spark connection as below and perform data ana…

---

## [An Embedded Domain Specific Language for NXCALS and PM Queries](https://swan-community.web.cern.ch/t/an-embedded-domain-specific-language-for-nxcals-and-pm-queries/211)

<div class="topic-metadata">

**Author:** [@mmacieje](https://swan-community.web.cern.ch/u/mmacieje)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 6:13pm UTC](https://swan-community.web.cern.ch/t/an-embedded-domain-specific-language-for-nxcals-and-pm-queries/211 "2020-03-18T18:13:15Z")

</div>

Dear SWAN Users, I am writing to share with you a package developed for simplifying query and processing of signals from Post Mortem, CALS, and NXCALS databases. The package was created as a part of the Signal Monitorin…

[Next page](https://swan-community.web.cern.ch/c/spark/9.md?page=1)
