apache / apache/beam

[Task]: FilesToStage breaks Spark on YARN

Open
#26,692 1 comment 0 reactions 1 assignee Claimed by @Zawa-ll View on GitHub
java P2 spark task
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
2d 5h
Merged PRs (30d)
204

Description

### What needs to happen?

When I tried to execute Beam pipeline over Spark structured streaming runner on YARN it failed. I did identify to problems:

1. When FilesToStage kicks in it tries to zip classpath directories and uses pipeline's temp directory. In my case it is HDFS and since `PipelineResources.prepareFilesForStaging()` uses Java IO it will not work as it does not speak HDFS
2. Since worker are provided with necessary classes beforehand, it would make sense to me to be able to bypass FilesToStage instead to always had to stage something even when not necessary.

### Issue Priority

Priority: 2 (default / most normal work should be filed as P2)

### Issue Components

- [ ] Component: Python SDK
- [X] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [X] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.