dvirtz / vscode-parquet-viewer

A VS Code extension to view Apache Parquet files as JSON
MIT License
28 stars 6 forks source link

error when opening parquet file (parquet-tools exited with code 2: usage parquet-tootls -[h]) #18

Closed cstmgl closed 3 years ago

cstmgl commented 3 years ago

Hi all,

I had some problems running this tool but might be my lack of knowhow. I only managed to install the parquet-tools over python/pip.

I've added it to the path and I get this when I open the file in visual studio. image

But then I click the open as json and I get this error. image

Parquet tools seems correctly installed in the system: image

I am assuming I'm failing at something very basic?

cstmgl commented 3 years ago

If I use the java version how do I define the path? Is it just like this: image

Because I get a different error when doing that. image

Any idea what tools I really need to have this working?

dvirtz commented 3 years ago

Yes and make sure java.exe is in your path

On Thu, 18 Mar 2021, 14:58 Miguel Costa, @.***> wrote:

If I use the java version how do I define the path? Is it just like this: [image: image] https://user-images.githubusercontent.com/33542778/111629688-d9731c80-87f1-11eb-8d88-de38fe3a9b2c.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dvirtz/vscode-parquet-viewer/issues/18#issuecomment-801905937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ORDPXAXWL2DYPM62MCE3TEH2FRANCNFSM4ZMOUK2A .

cstmgl commented 3 years ago

I mean I have java (11) in the path image image

do I need a specific java? is it java 8? java 11? other? does it need to be the oracle jdk?

dvirtz commented 3 years ago

it is tested with java 8, AdoptOpenJDK but Oracle works too. I'm working on adding more logging so hopefully it will help us find the problem. In the meantime can you check in a terminal if java -jar <jar_path> -h works?

cstmgl commented 3 years ago

first thanks for the help and providing feedback. I think that command does not fail, or fails silently but also does not seem to do anything.

In the cmd prompt image

In the bash image image

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.

dvirtz commented 3 years ago

You might want to checkout version 2.0.0 which doesn't require parquet-tools anymore