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)
- Planner optimization for comparison query HOT 6
- how to query data from deep storage through SQL HOT 2
- How to configure Transparent Application Continuity (TAC) with Oracle JDBC Thin and druid connection pool? HOT 1
- Non-coordinator services produce excessive logging from druid-basic-security extension HOT 1
- Metric taskSlot/idle/count doesn't exclude disabled workers HOT 1
- druid-deltalake-extensions support for StructType HOT 4
- Druid indexer tasks gets stuck in PUBLISHING state
- Druid Query Returning Different number of Results when Timezone with Period is used in Granularity HOT 1
- Datasources are fully available when no historical is present HOT 1
- 不支持add column if not exists语法,解析会报错 HOT 1
- Remove redundant TopNQueryConfig#minTopNThreshold
- Remove EngineFeature#SCAN_NEEDS_SIGNATURE
- Enhance the system to be able to run test differing in NullHandling more natually HOT 1
- WorkerTaskCountStatsMonitor doesn't work in Druid 30.0.0 HOT 1
- String columns from Frames are always decoded during access
- Planner rules were not configured correctly in CalciteSelectJoinQueryMSQTest.SortMerge
- Make CPUTimeMetricQueryRunner configurable
- ClientQuerySegmentWalker.materializeResultsAsFrames could measure CPU time at a bigger granularity
- Intermittent failure to load CSV data in batch mode due to an exception in index parallel sub task
- Druid shows "1970-01-01T00:00:00.000Z" with TIME_PARSE function even though the column should be NULL
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.