https://pinot.apache.org/ logo
d

Dan Hill

10/03/2020, 5:57 AM
I'm trying to build Pinot (so I can send a PR). I'm not sure I'm doing this correctly. I'm hitting an error. I'm following the code setup and contribution guides. I'm hitting an issue
mvn checkstyle:check -X
. It looks like the
<http://repository.apache.org|repository.apache.org>
snapshots has not been updated for
0.6.0
. Also, I'm using
openjdk 13.0.2 2020-01-14
. Should I change this?
Copy code
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find org.apache.pinot:pinot-spi:jar:0.6.0-SNAPSHOT in <https://repository.apache.org/snapshots> was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced
x

Xiang Fu

10/04/2020, 2:15 AM
Do you build from root directory?
Does mvn clean install -Dskiptests works for you?
👀 1
d

Dan Hill

10/04/2020, 3:15 AM
Failed
Copy code
Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /Users/quietgolfer/code/incubator-pinot/pinot-spi && /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java -javaagent:/Users/quietgolfer/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/Users/quietgolfer/code/incubator-pinot/pinot-spi/target/jacoco.exec -Xms4g -Xmx4g -jar /Users/quietgolfer/code/incubator-pinot/pinot-spi/target/surefire/surefirebooter16442753802524918138.jar /Users/quietgolfer/code/incubator-pinot/pinot-spi/target/surefire/surefire17205327156821430070tmp /Users/quietgolfer/code/incubator-pinot/pinot-spi/target/surefire/surefire_015020945891456039222tmp
[ERROR] -> [Help 1]
[ERROR]
Yea, I built from root
I'm going to try with jdk 8
Yea, it's probably jdk 8 related. My default was jdk 11.
Weird. Maybe not jdk version related.
I'll keep going and do the full build.
x

Xiang Fu

10/04/2020, 3:32 AM
right , can you try jdk8
d

Dan Hill

10/04/2020, 5:06 AM
The check style script failed in the same way. The build command you gave me is making more progress. It's still building
x

Xiang Fu

10/04/2020, 5:24 AM
got it
I somehow feel that we haven’t put checkstyle plugin into build path, so that our codebase may not pass it
d

Dan Hill

10/04/2020, 6:07 AM
Most of it builds. I hit this error under both jdk11 and jdk8.
Copy code
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ pinot-spark-connector ---
Downloading from central: <https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.pom>
Downloaded from central: <https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.pom> (1.3 kB at 37 kB/s)
Downloading from central: <https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-10/doxia-1.0-alpha-10.pom>
Downloaded from central: <https://repo.maven.apache.org/maven2/org/apache/maven/doxia/doxia/1.0-alpha-10/doxia-1.0-alpha-10.pom> (9.2 kB at 235 kB/s)
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
	at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
	at org.jacoco.agent.rt.internal_6da5971.PreMain.createRuntime(PreMain.java:55)
	at org.jacoco.agent.rt.internal_6da5971.PreMain.premain(PreMain.java:47)
	... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
	at java.base/java.lang.Class.getField(Class.java:2000)
	at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
	... 9 more
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at JPLISAgent.c line: 422
/bin/sh: line 1: 87589 Abort trap: 6           java -Dbasedir=/Users/quietgolfer/code/incubator-pinot/pinot-connectors/pinot-spark-connector -javaagent:/Users/quietgolfer/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/Users/quietgolfer/code/incubator-pinot/pinot-connectors/pinot-spark-connector/target/jacoco.exec -Xms4g -Xmx4g org.scalatest.tools.Runner -R '/Users/quietgolfer/code/incubator-pinot/pinot-connectors/pinot-spark-connector/target/classes /Users/quietgolfer/code/incubator-pinot/pinot-connectors/pinot-spark-connector/target/test-classes' -o -u /Users/quietgolfer/code/incubator-pinot/pinot-connectors/pinot-spark-connector/target/surefire-reports/.
x

Xiang Fu

10/04/2020, 6:44 AM
hmm
this might be due to scala version ?
d

Dan Hill

10/04/2020, 7:42 AM
Oh interesting.
scala: stable 2.13.3
x

Xiang Fu

10/04/2020, 7:57 AM
my one is the same
can you try to delete m2 cache?
Copy code
rm -rf ~/.m2/repository
👀 1
d

Dan Hill

10/04/2020, 8:46 PM
Same error
I went ahead and created a PR. I can't run build all of pinot locally. https://github.com/apache/incubator-pinot/pull/6104
x

Xiang Fu

10/04/2020, 11:20 PM
sure
so switch to jdk8 doesn't help?
d

Dan Hill

10/06/2020, 12:01 AM
Correct.