lucidworks / hive-solr

Code to index Hive tables to Solr and Solr indexes to Hive
Apache License 2.0
47 stars 34 forks source link

Build failure with Compilation errors #40

Closed swetharamaiah closed 6 years ago

swetharamaiah commented 6 years ago

Java version: java version "1.8.0_74"

When running this command, './gradlew clean shadowJar --info' i see below error:

18:01:13.142 [ERROR] [system.err] return LWDocumentWritable.class; 18:01:13.142 [ERROR] [system.err] ^ 18:01:13.143 [ERROR] [system.err] symbol: class LWDocumentWritable 18:01:13.143 [ERROR] [system.err] location: class LWSerDe 18:01:13.143 [ERROR] [system.err] /Users/sramaiah/git_workspace/hive-solr/solr-hive-core/src/main/java/com/lucidworks/hadoop/hive/LWSerDe.java:108: error: cannot find symbol 18:01:13.143 [ERROR] [system.err] LWDocument doc = LWDocumentProvider.createDocument(); 18:01:13.143 [ERROR] [system.err] ^ 18:01:13.144 [ERROR] [system.err] symbol: class LWDocument 18:01:13.144 [ERROR] [system.err] location: class LWSerDe 18:01:13.144 [ERROR] [system.err] /Users/sramaiah/git_workspace/hive-solr/solr-hive-core/src/main/java/com/lucidworks/hadoop/hive/LWSerDe.java:108: error: cannot find symbol 18:01:13.144 [ERROR] [system.err] LWDocument doc = LWDocumentProvider.createDocument(); 18:01:13.144 [ERROR] [system.err] ^ 18:01:13.144 [ERROR] [system.err] symbol: variable LWDocumentProvider 18:01:13.144 [ERROR] [system.err] location: class LWSerDe 18:01:13.146 [ERROR] [system.err] /Users/sramaiah/git_workspace/hive-solr/solr-hive-core/src/main/java/com/lucidworks/hadoop/hive/LWSerDe.java:170: error: cannot find symbol 18:01:13.146 [ERROR] [system.err] return new LWDocumentWritable(doc); 18:01:13.146 [ERROR] [system.err] ^ 18:01:13.146 [ERROR] [system.err] symbol: class LWDocumentWritable 18:01:13.146 [ERROR] [system.err] location: class LWSerDe 18:01:13.147 [ERROR] [system.err] /Users/sramaiah/git_workspace/hive-solr/solr-hive-core/src/main/java/com/lucidworks/hadoop/hive/LWStorageHandler.java:27: error: incompatible types: Class cannot be converted to Class<? extends InputFormat> 18:01:13.147 [ERROR] [system.err] return LWHiveInputFormat.class; 18:01:13.147 [ERROR] [system.err] ^ 18:01:13.148 [ERROR] [system.err] 89 errors 18:01:13.148 [ERROR] [system.err] 10 warnings 18:01:13.150 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':solr-hive-core:compileJava' 18:01:13.150 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :solr-hive-core:compileJava FAILED 18:01:13.150 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :solr-hive-core:compileJava (Thread[Daemon worker Thread 4,5,main]) completed. Took 0.928 secs. 18:01:13.150 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.13 completed (0 in use) 18:01:13.151 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 4,5,main]] finished, busy: 0.956 secs, idle: 0.008 secs 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] What went wrong: 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':solr-hive-core:compileJava'. 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Compilation failed; see the compiler error output for details. 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Try: 18:01:13.151 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 18:01:13.151 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 18:01:13.152 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED 18:01:13.152 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 18:01:13.152 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 2.051 secs 18:01:13.152 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (/Users/sramaiah/

acesar commented 6 years ago

It seems that you didn't initialize the submodule.

Please try:

git submodule init
git submodule update

Check out the build info https://github.com/lucidworks/hive-solr#build-the-serde-jars

Please have a look on how to work with submodule https://github.com/blog/2104-working-with-submodules