Comments (7)
What error do you get? Would be nice if it built.
from druid.
@octavore may have some feedback for you. It was a fresh VM and there may have been issues with the maven version, we're not sure.
from druid.
I had issues as well, switching to the sun (oracle) jdk fixed it.. I seem to recall finding where I think the issue might be fixed in openjdk but not yet trickled into the packaged version in ubuntu..
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
Here's a snippet from build.sh output where it fails:
[INFO] Building druid-common 0.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.3:resources (default-resources) @ druid-common ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/mike/collective/druid/common/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ druid-common ---
[INFO] Compiling 77 source files to /home/mike/collective/druid/common/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/mike/collective/druid/common/src/main/java/com/metamx/druid/VersionedIntervalTimeline.java:[91,74] incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
found : <K,V>java.util.TreeMap<K,V>
required: java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] druid ............................................. SUCCESS [0.002s]
[INFO] druid-common ...................................... FAILURE [3.222s]
[INFO] druid-index-common ................................ SKIPPED
[INFO] druid-client ...................................... SKIPPED
[INFO] druid-server ...................................... SKIPPED
[INFO] druid-indexer ..................................... SKIPPED
[INFO] druid-realtime .................................... SKIPPED
[INFO] druid-merger ...................................... SKIPPED
[INFO] druid-examples .................................... SKIPPED
[INFO] druid-examples-rand ............................... SKIPPED
[INFO] druid-examples-twitter ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.518s
[INFO] Finished at: Tue Oct 30 18:15:05 CDT 2012
[INFO] Final Memory: 11M/239M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project druid-common: Compilation failure
[ERROR] /home/mike/collective/druid/common/src/main/java/com/metamx/druid/VersionedIntervalTimeline.java:[91,74] incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
[ERROR] found : <K,V>java.util.TreeMap<K,V>
[ERROR] required: java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project druid-common: Compilation failure
/home/mike/collective/druid/common/src/main/java/com/metamx/druid/VersionedIntervalTimeline.java:[91,74] incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
found : <K,V>java.util.TreeMap<K,V>
required: java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
/home/mike/collective/druid/common/src/main/java/com/metamx/druid/VersionedIntervalTimeline.java:[91,74] incompatible types; no instance(s) of type variable(s) K,V exist so that java.util.TreeMap<K,V> conforms to java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
found : <K,V>java.util.TreeMap<K,V>
required: java.util.TreeMap<VersionType,com.metamx.druid.VersionedIntervalTimeline<VersionType,ObjectType>.TimelineEntry>
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
from druid.
I got it to build as follows on Ubuntu 12.04, by installing OpenJDK7 and pointing my JAVA_HOME to it:
sudo apt-get install openjdk-7-jdk maven
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ ./build.sh
It's related to these:
https://bugs.openjdk.java.net/show_bug.cgi?id=100167
http://code.google.com/p/guava-libraries/issues/detail?id=635
from druid.
I just pushed a fix that I think will work around this issue. If it doesn't, well, the code still works as is and has a lot more spots where it's specifying generics, but oh well ;).
from druid.
Not working...
from druid.
Ok, actually read the links jeremybarnes posted and I think that removing the Maps.newTreeMap() calls and just using the plain old "new TreeMap<>()" invocation will fix the problem. Pushed a fix, hopefully it works.
from druid.
Related Issues (20)
- Druid in k8s not able to reload services when p12 TLS is renewed
- Log files are stored as ${sys:druid.node.type}.log HOT 3
- Jdbc connector to trino HOT 1
- Refactoring the Duplicated/Redundant Mock Objects in `Test Case` of org.apache.druid.query.groupby.epinephelinae.column
- Remove useless helm releated pathes in workflows
- Make CPU config of Container configurable under MoK mode
- Add column flattening via UI creating wrong spec for Kafka ingestions HOT 2
- Ensure thread safety of ConstantExprs
- Druid: KILL Task doesn't cleanup the datasource from deep storage and UI shows after the KILL operation also HOT 9
- unified console + pac4j does not handle token refresh correct
- Compilation failure: cannot find symbol in CalciteQueryTest HOT 3
- Parallel processing of hydrants in real time path (peon) HOT 1
- Native queries return errors given fractional period granularities.
- Native queries: joining with inline data sources results in an error.
- Adding LIMIT to MV_TO_ARRAY then UNNEST will result in null and NullPointerException HOT 1
- MSQ CSV export in 2.29 adds blank lines to the csv. MSQ CSV import doesn't ignore those blank lines
- [Question] I need clarification on setting up Druid metric monitors
- Wrong mapping of supervisor and data source based on authorizer HOT 1
- Cannot mark an unqueryable datasources segments used
- Window functions on MSQ for high and low cardinality data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from druid.