Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26201

python broadcast.value on driver fails with disk encryption enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.2
    • 2.3.3, 2.4.1, 3.0.0
    • PySpark
    • None

    Description

      I was trying python with rpc and disk encryption enabled and when I tried a python broadcast variable and just read the value back on the driver side the job failed with:

       

      Traceback (most recent call last): File "broadcast.py", line 37, in <module> words_new.value File "/pyspark.zip/pyspark/broadcast.py", line 137, in value File "pyspark.zip/pyspark/broadcast.py", line 122, in load_from_path File "pyspark.zip/pyspark/broadcast.py", line 128, in load EOFError: Ran out of input

      To reproduce use configs: --conf spark.network.crypto.enabled=true --conf spark.io.encryption.enabled=true

       

      Code:

      words_new = sc.broadcast(["scala", "java", "hadoop", "spark", "akka"])
      words_new.value
      print(words_new.value)

      Attachments

        Activity

          People

            redsanket Sanket Chintapalli
            tgraves Thomas Graves
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: