Code Monkey home page Code Monkey logo

parquet_file_writer_poc's Introduction

Parquet File Writer POC

This is a simple Java POC to create Parquet files This is a Spring Boot project.

How to Build

Once you clone the repository, cd into the project root directory and run the following command to build the project:

mvn clean install

How to Run

Once you build the project, the build command will generate a .jar file in the target/ directory. The name of the .jar file will be parquet_file_writer_poc-1.0-SNAPSHOT.jar. You can run this project by executing the following command from the project root directory:

java -jar target/parquet_file_writer_poc-1.0-SNAPSHOT.jar

Output Files

The output files will be generated in the resources/output directory. You can check this directory after running the project to check your output files.

parquet_file_writer_poc's People

Contributors

contactsunny avatar

Stargazers

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

Watchers

 avatar  avatar

parquet_file_writer_poc's Issues

no native lib Mac

The build failed on Mac with:
org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library is found for os.name=Mac and os.arch=aarch64

This is solved by upgrading parquet-hadoop to 1.13.0

It could also be good to add to the readme that settings in the application.properties needs to be filled in or better yet set them to the relative path:

schema.filePath=src/main/resources/schemas/user.schema
output.directoryPath=src/main/resources/output

After those two changes it worked fine on Mac.

Not able to execute the project

Encountered below error:
Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.expression.spel.support.StandardTypeConverter

Issues with Binary data type

Rest all is working fine, but binary data type is written in encrypted format. When a parquet file is cat using parquet-tools, it shows something like this.

  • /Desktop/parq/Parquet_File_Writer_POC/src/main/resources/output$ parquet-tools cat 1638791144218.parquet
    id = 1
    username = TmFtZTE=
    active = true

id = 2
username = TmFtZTI=
active = false

because of this my files are not processed further

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.