diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-07-07 09:42:59 -0700 |
---|---|---|
committer | Shivaram Venkataraman <shivaram@cs.berkeley.edu> | 2015-07-07 09:43:16 -0700 |
commit | 70beb808e13f6371968ac87f7cf625ed110375e6 (patch) | |
tree | e68359c30adac2770dd1405f90b3e0c334e2a0d2 /assembly | |
parent | 738c10748b49eb8a475d1fd26c6a271ca36497cf (diff) | |
download | spark-70beb808e13f6371968ac87f7cf625ed110375e6.tar.gz spark-70beb808e13f6371968ac87f7cf625ed110375e6.tar.bz2 spark-70beb808e13f6371968ac87f7cf625ed110375e6.zip |
[SPARK-8821] [EC2] Switched to binary mode for file reading
Otherwise the script will crash with
- Downloading boto...
Traceback (most recent call last):
File "ec2/spark_ec2.py", line 148, in <module>
setup_external_libs(external_libs)
File "ec2/spark_ec2.py", line 128, in setup_external_libs
if hashlib.md5(tar.read()).hexdigest() != lib["md5"]:
File "/usr/lib/python3.4/codecs.py", line 319, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
In case of an utf8 env setting.
Author: Simon Hafner <hafnersimon@gmail.com>
Closes #7215 from reactormonk/branch-1.4 and squashes the following commits:
e86957a [Simon Hafner] [SPARK-8821] [EC2] Switched to binary mode
(cherry picked from commit 83a621a5a8f8a2991c4cfa687279589e5c623d46)
Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
Diffstat (limited to 'assembly')
0 files changed, 0 insertions, 0 deletions