redsymbol / csv2parquet Goto Github PK
View Code? Open in Web Editor NEWCreate Parquet files from CSV
Create Parquet files from CSV
Hello,
Thanks for this script.
I installed Apache Drill 1.10.0 on my (AWS) Linux server, and installed Python 3.6
When I run the script, after several seconds, the CLI returns without any error.
And I get an output file as specified in the params.
However, my output file is empty (the input file is 386 mb).
In the Drill logs, I get the error below.
This post (https://issues.apache.org/jira/browse/DRILL-4928) suggests that Netty 4.0.27 or later will cause this issue.
I know very little about Drill or Netty.
Do you have any idea how I can work around this issue?
Thanks!
2017-04-06 19:06:02,948 [main] WARN o.a.drill.exec.util.GuavaPatcher - Unable to patch Guava classes.
javassist.CannotCompileException: by java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "com/google/common/base/Stopwatch"
at javassist.ClassPool.toClass(ClassPool.java:1085) ~[javassist-3.12.1.GA.jar:na]
at javassist.ClassPool.toClass(ClassPool.java:1028) ~[javassist-3.12.1.GA.jar:na]
at javassist.ClassPool.toClass(ClassPool.java:986) ~[javassist-3.12.1.GA.jar:na]
at javassist.CtClass.toClass(CtClass.java:1079) ~[javassist-3.12.1.GA.jar:na]
get this error:
Traceback (most recent call last):
File "./csv2parquet", line 330, in
drill = DrillInstallation()
File "./csv2parquet", line 203, in init
assert reference_executable is not None
AssertionError
Hi, I am using csv2parquet to convert csv into parquet, but I get following decode problem.
./csv2parquet all_cities.csv all_cities.parquet
Traceback (most recent call last):
File "./csv2parquet", line 329, in <module>
csv_source = CsvSource(args.csv_input, args.column_map, args.types)
File "./csv2parquet", line 145, in __init__
self.headers = self._init_headers()
File "./csv2parquet", line 150, in _init_headers
return next(csv_data)
File "/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcc in position 164: invalid continuation byte
Hello,
Is there a config option or CLI parameter (or something) that allows me to specify compression options - like SNAPPY, for example?
Thanks!
Hi,
I am getting this error:
File "csv2parquet.py", line 330, in
drill = DrillInstallation()
File "csv2parquet.py", line 203, in init
assert reference_executable is not None
AssertionError
any help?
For example the following line has 5 fields with space as field delimiter:
This is example "of
Multi-line
Field
In
One
Csv" record
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.