Ted,

Here is what I see

(1) On CentOS, I removed clover plugin from Drill's root pom.xml and mvn
compile FAILED due to compilation errors related to Hive.

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/root/drill_master/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveRecordReader.java:[40,43]
error: package org.apache.hadoop.hive.conf.HiveConf does not exist
[ERROR]
/root/drill_master/contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveRecordReader.java:[45,36]
error: package org.apache.hadoop.hive.serde2 does not exist

(2) On my Mac, with the clover plugin in Drill's root pom.xml,  mvn clean
clover2:setup test; did go through and I did not see any compilation
errors, but for this to happen I had to change my JDK version from 1.7.0.45
to 1.7.0.80. The cause of the compilation errors I hit earlier was fixed in
https://bugs.openjdk.java.net/browse/JDK-8013485

Thanks,
Khurram

On Fri, Oct 16, 2015 at 2:37 PM, Ted Dunning <[email protected]> wrote:

> Khurram
>
> Have you verified that you do *not* see those errors when you compile
> without Clover?
>
>
>
> On Thu, Oct 15, 2015 at 3:38 PM, Khurram Faraaz <[email protected]>
> wrote:
>
> > Hi All,
> >
> > I am trying to generate code coverage report for Apache Drill using
> Clover2
> > (trial version). I am seeing compilation errors related to
> > generated-sources, if any one on this list has used clover2 in the past
> to
> > generate code coverage report, please review and let me know what am I
> > doing wrong.
> >
> > I first ran, mvn clean install -DskipTests
> >
> >  I see the below errors when I run this from command line, mvn
> > clover2:instrument clover2:clover
> >
> > [INFO] Compiling 2169 source files to
> > /root/drill_master/exec/java-exec/target/clover/classes
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/GNullOpBitHolder.java:[29,2]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/GNullOpBitHolder.java:[42,2]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/GTimeStampArithmetic.java:[37]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/gcast/CastDecimal28SparseDecimal38Sparse.java:[110]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/clover/src/org/apache/drill/exec/expr/fn/impl/conv/JsonConvertTo.java:[48,2]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> >
> > When I run, mvn clover2:instrument clover2:clover -e -X
> > I see these errors
> >
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
> > (default-compile) on project drill-java-exec: Compilation failure:
> > Compilation failure:
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/GNullOpBitHolder.java:[29,2]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > ...
> > [ERROR]
> >
> >
> /root/drill_master/exec/java-exec/target/generated-sources/org/apache/drill/exec/expr/fn/impl/TrigoMathFunctions.java:[716,2]
> > error: annotation FunctionTemplate is missing value for the attribute
> > <clinit>
> > [ERROR] -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile
> > (default-compile) on project drill-java-exec: Compilation failure
> > 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.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
> > at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
> > 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:606)
> > 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.compiler.CompilationFailureException:
> > Compilation failure
> > at
> >
> >
> org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:909)
> > at
> >
> >
> org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
> > at
> >
> >
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> > at
> >
> >
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> > ... 23 more
> >
> > Here is the plying information in Drill's root pom.xml
> >
> > <build>
> >
> >     <plugins>
> >     <plugin>
> >         <groupId>com.atlassian.maven.plugins</groupId>
> >         <artifactId>maven-clover2-plugin</artifactId>
> >         <version>4.0.6</version>
> >         <configuration>
> >
> > <licenseLocation>/root/clover_license/clover.license</licenseLocation>
> >         </configuration>
> >     </plugin>
> >
> > This is the content from .m2/settings.xml file
> >
> > <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0";
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >     xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
> >                         http://maven.apache.org/xsd/settings-1.0.0.xsd";>
> >     <localRepository/>
> >     <interactiveMode/>
> >     <usePluginRegistry/>
> >     <offline/>
> >     <pluginGroups>
> >         <pluginGroup>com.atlassian.maven.plugins</pluginGroup>
> >     </pluginGroups>
> >     <servers/>
> >     <mirrors/>
> >     <proxies/>
> >     <profiles/>
> >     <activeProfiles/>
> > </settings>
> >
> > Thanks,
> > Khurram
> >
>

Reply via email to