Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bitnami/spark] Unable to run pyspark interactive shell #32710

Closed
jonatronblah opened this issue May 5, 2023 · 10 comments
Closed

[bitnami/spark] Unable to run pyspark interactive shell #32710

jonatronblah opened this issue May 5, 2023 · 10 comments
Assignees
Labels
solved spark stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@jonatronblah
Copy link

jonatronblah commented May 5, 2023

Name and Version

bitnami/spark:3.3

What architecture are you using?

amd64

What steps will reproduce the bug?

Forgive me as I am very new to spark, but could not solve this issue with google.
Using the following docker compose file:

version: '2'

services:
  spark:
    image: docker.io/bitnami/spark:3.3
    environment:
      - SPARK_MODE=master
      - SPARK_RPC_AUTHENTICATION_ENABLED=no
      - SPARK_RPC_ENCRYPTION_ENABLED=no
      - SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
      - SPARK_SSL_ENABLED=no
      - SPARK_USER=spark
    ports:
      - '8080:8080'
  spark-worker:
    image: docker.io/bitnami/spark:3.3
    environment:
      - SPARK_MODE=worker
      - SPARK_MASTER_URL=spark://spark:7077
      - SPARK_WORKER_MEMORY=1G
      - SPARK_WORKER_CORES=1
      - SPARK_RPC_AUTHENTICATION_ENABLED=no
      - SPARK_RPC_ENCRYPTION_ENABLED=no
      - SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
      - SPARK_SSL_ENABLED=no
      - SPARK_USER=spark

Attempting to run pyspark interactive shell with the following command: ./bin/pyspark

What is the expected behavior?

Expect the pyspark interactive shell to run.

What do you see instead?

Always receive the following error: "Error: pyspark does not support any application options."

Additional information

I can submit pyspark jobs successfully, and activate the scala interactive shell just fine. Thanks for any help.

@jonatronblah jonatronblah added the tech-issues The user has a technical issue about an application label May 5, 2023
@github-actions github-actions bot added the triage Triage is needed label May 5, 2023
@javsalgar javsalgar changed the title Spark - Unable to run pyspark interactive shell [bitnami/spark] Unable to run pyspark interactive shell May 8, 2023
@javsalgar javsalgar added the spark label May 8, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels May 8, 2023
@bitnami-bot bitnami-bot assigned marcosbc and unassigned javsalgar May 8, 2023
@marcosbc
Copy link
Contributor

Hi @jonatronblah, you seem to be right as the tool does not work with the current Bitnami container image for Spark 3.3.

However, I tried the upstream apache/spark container for 3.3 and it does not work either (although the error is similar). But it seems to work fine for the upstream 3.4 image.

We are already working on adding the new 3.4 version soon to Bitnami, so once it is released, we can check whether the issue is resolved (or not), and escalate it if needed.

@github-actions
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label May 26, 2023
@github-actions
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2023
@github-actions github-actions bot added triage Triage is needed and removed solved labels Nov 5, 2023
@eugeniatso
Copy link

I had the same issue. I was able to solve the issue by putting the commands

pip install pyspark --> push enter
python --> push enter
import pyspark --> push enter
pyspark --> push enter

I hope this helps you too. If not, sorry :/ I'm pretty new to this too.

@thereallisabui
Copy link

Just wanna report that it also did not work for 3.4 and 3.5. This is not 'solved'.

@carrodher carrodher reopened this Dec 11, 2023
@carrodher carrodher added in-progress and removed stale 15 days without activity triage Triage is needed solved labels Dec 11, 2023
@github-actions github-actions bot added triage Triage is needed and removed in-progress triage Triage is needed labels Dec 11, 2023
@github-actions github-actions bot assigned fevisera and unassigned javsalgar Dec 11, 2023
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Dec 27, 2023
Copy link

github-actions bot commented Jan 1, 2024

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@github-actions github-actions bot added the solved label Jan 1, 2024
@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
@dermoritz
Copy link

i have the same issue - any workarounds?

@ArmirKS
Copy link

ArmirKS commented Feb 4, 2024

currently facing the same issue

@dermoritz
Copy link

an workaround i found here: #38139 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved spark stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

10 participants