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

[BUG] ZIP does not support timestamps before 1980 #5994

Open
2 tasks done
LemontreeN opened this issue Nov 12, 2024 · 4 comments
Open
2 tasks done

[BUG] ZIP does not support timestamps before 1980 #5994

LemontreeN opened this issue Nov 12, 2024 · 4 comments
Labels
bug Something isn't working waiting for reporter Used for when we need input from the bug reporter

Comments

@LemontreeN
Copy link

Describe the bug

same with the below page,error : ZIP does not support timestamps before 1980
when execute the spark sample code
https://discuss.flyte.org/t/23214966/hi-everyone-wave-i-m-new-here-and-this-is-my-first-message-i

Expected behavior

The sample code should execute normally.

Additional context to reproduce

No response

Screenshots

No response

Are you sure this issue hasn't been raised already?

  • Yes

Have you read the Code of Conduct?

  • Yes
@LemontreeN LemontreeN added bug Something isn't working untriaged This issues has not yet been looked at by the Maintainers labels Nov 12, 2024
Copy link

welcome bot commented Nov 12, 2024

Thank you for opening your first issue here! 🛠

@eapolinario
Copy link
Contributor

@LemontreeN , how are you checking out the flytesnacks repo? Also, can you share other details like OS, python version, and flytekit versions?

@eapolinario eapolinario added waiting for reporter Used for when we need input from the bug reporter and removed untriaged This issues has not yet been looked at by the Maintainers labels Nov 14, 2024
@LemontreeN
Copy link
Author

pyflyte run --remote -p p1 -d development spark.py my_spark

error same with the discuss,
envs of server and client as follows:

Server

Base environments

  • Flyte-core (multi-cluster version): v1.13.3
  • Spark Operator Controller: 2.0.2
  • Kubernetes Server Version: v1.26.3-aliyun.1

Installation and configuration steps:

  1. https://docs.flyte.org/en/latest/deployment/plugins/k8s/index.html#install-the-kubernetes-operator
  2. edit flyte-controller-plane & data-plane Spark Configuration
    enabled spark plugin from the
    enabled_plugins:

    as follows
configmap:
  enabled_plugins:
    tasks:
      task-plugins:
        enabled-plugins:
          - container
          - sidecar
          - k8s-array
          - agent-service
          - echo
          - spark
        default-for-task-types:
          container: container
          sidecar: sidecar
          container_array: k8s-array
          spark: spark

enabled sparkoperator from the flyte/charts/flyte-core/values.yaml at d2ddfe26041c4441139001c289c9c0e10bd3d319 · flyteorg/flyte as follows

sparkoperator:
  enabled: true
  plugin_config:
    plugins:
      spark:
        spark-config-default:
          - spark.driver.cores: "1"
          Uncomment and set the S3 credentials if required
          - spark.hadoop.fs.s3a.aws.credentials.provider: "org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider"
          - spark.hadoop.fs.s3a.endpoint: <S3_ENDPOINT>
          - spark.hadoop.fs.s3a.access.key: "<ACCESS_KEY>"
          - spark.hadoop.fs.s3a.secret.key: "<SECRET_KEY>"
          - spark.hadoop.fs.s3a.path.style.access: "true"
          - spark.kubernetes.allocation.batch.size: "50"
          - spark.hadoop.fs.s3a.acl.default: "BucketOwnerFullControl"
          - spark.hadoop.fs.s3n.impl: "org.apache.hadoop.fs.s3a.S3AFileSystem"
          - spark.hadoop.fs.AbstractFileSystem.s3n.impl: "org.apache.hadoop.fs.s3a.S3A"
          - spark.hadoop.fs.s3.impl: "org.apache.hadoop.fs.s3a.S3AFileSystem"
          - spark.hadoop.fs.AbstractFileSystem.s3.impl: "org.apache.hadoop.fs.s3a.S3A"
          - spark.hadoop.fs.s3a.impl: "org.apache.hadoop.fs.s3a.S3AFileSystem"
          - spark.hadoop.fs.AbstractFileSystem.s3a.impl: "org.apache.hadoop.fs.s3a.S3A"
  1. configure the resource manager templates according to the
  2. https://docs.flyte.org/en/latest/deployment/plugins/k8s/index.html#specify-plugin-configuration spark.flyte-core.aws.
    upgrade the flyte-controller-plane and data-plane

Client

flytekit 1.13.12
Python 3.10.15
flytekitplugins-spark 1.13.13
OS: Windows 10

@LemontreeN
Copy link
Author

LemontreeN commented Nov 20, 2024

@eapolinario
Ah, I've found the source of the problem. It's detailed in this link:
#4711.
I came across it today in a community post here:
https://discuss.flyte.org/t/23214967/new-runllm-response-generated-question-hi-everyone-wave-i-m-

As a result, I successfully ran my code using

pyflyte register --copy none

Perhaps you should consider updating the Flyte Spark tutorial; I think many people trying to use Flyte with Spark will encounter this issue if they follow the current instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for reporter Used for when we need input from the bug reporter
Projects
Status: Done
Development

No branches or pull requests

2 participants