question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

presto-verifier-0.263.1-executable.jar broken

See original GitHub issue

Downloaded the jar from https://prestodb.io/docs/current/admin/verifier.html and followed the instruction to rename and chmod.

$ ./verifier
Error: Invalid or corrupt jarfile ./verifier

The 0.245 version was known to work:

$ java -jar ./presto-verifier-0.245-SNAPSHOT-executable.jar
usage: verifier <command> [<args>]

The most commonly used verifier commands are:
    help     Display help information
    verify   verify

The problem happened between (0.245, 0.259]. I didn’t test all versions in between.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ajaygeorgecommented, Oct 21, 2021

@arunthirupathi I’m ok with the simple jar approach.

1reaction
ajaygeorgecommented, Oct 20, 2021

@arunthirupathi that is a great find. This got me curious as to why presto-verifier should be using fastutil dependency in the first place since there is no apparent need for it. To test, I added the dependency exclusion for presto-main from where this transitive dependency is pulled in to presto-verifier’s pom.xml

        <dependency>
            <groupId>com.facebook.presto</groupId>
            <artifactId>presto-main</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>it.unimi.dsi</groupId>
                    <artifactId>fastutil</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

I was able to compile and generate the jar and it yields the working jar and as expected we are around 12k classes down. So were just un-necessarily pulling in transitive dependencies that are not needed.

10:31 $ jar tvf target/presto-verifier-0.265-SNAPSHOT-executable.jar | wc -l
   54540

I think adding the exclusion can be a good short term solution and the long term solution could be spinning out the metadata package (which looks like the main dependency) from presto-main as a separate module.

@rongrong / @tdcmeehan WDYT ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run executable jar file using double click
It is possible that your java(s) are broken. Share.
Read more >
The Executable Jar Format - Spring
The problem with shaded jars is that it becomes hard to see which libraries are actually in your application. It can also be...
Read more >
How to repair a broken .jar association in Windows 10?
I've installed the JDK (Along with the runtime) and tried to set the association for jar files to the Oracle Java installation using...
Read more >
JAR File Overview
What is JAR? JAR stands for Java ARchive. It's a file format based on the popular ZIP file format and is used for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found