Giter VIP home page Giter VIP logo

csv2parquet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

csv2parquet's Issues

Error related to com.google.common.base.Stopwatch

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]

execution issue

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

decode problem in csv2parquet

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

Option to specify compression?

Hello,

Is there a config option or CLI parameter (or something) that allows me to specify compression options - like SNAPPY, for example?

Thanks!

shutil.which problem?!

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.