Open alex-silentale opened 8 years ago
What serializer are you using?
@ondra-m I've tried marshal and oj
Getting the same error but with floats instead of strings. Tried both Marshal and oj. My data is kinda big, so it's hard to debug. Any ideas?
To reproduce:
sc.parallelize [LabeledPoint.new(1, [1,2]), LabeledPoint.new(3, [1,6])]
# => Encoding::UndefinedConversionError: "\xDF" from ASCII-8BIT to UTF-8
from /home/chang/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/packable-1.3.8/lib/packable/extensions/io.rb:62:in `write'
It works for me.
1) What is your ruby spark version Spark::VERSION
? My is 1.2.1
2) Please post full backtrace.
I Also tried Oj as a serializer, and get the same error. It seems to be coming from IO or StringIO