Can't compile java projects


#1

I’m trying to submit a PR for this issue. However, having forked the repo I’m doing the following:

cd java
mvn compile

but get the following:

<downloading stuff -- snip>
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[19,30] package com.mapd.thrift.server does not exist
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[20,30] package com.mapd.thrift.server does not exist
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[21,30] package com.mapd.thrift.server does not exist
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[31,11] cannot find symbol
  symbol:   class TDatumType
  location: class com.mapd.jdbc.MapDData
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[33,3] cannot find symbol
  symbol:   class TColumn
  location: class com.mapd.jdbc.MapDData
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[35,12] cannot find symbol
  symbol:   class TDatumType
  location: class com.mapd.jdbc.MapDData
[ERROR] /home/julian/IdeaProjects/mapd-core/java/mapdjdbc/src/main/java/com/mapd/jdbc/MapDData.java:[55,3] cannot find symbol
  symbol:   class TColumn
  location: class com.mapd.jdbc.MapDData

... -- snip

[INFO] 100 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] MapD Java .......................................... SUCCESS [  0.004 s]
[INFO] thrift ............................................. SUCCESS [  6.444 s]
[INFO] mapdjdbc ........................................... FAILURE [  4.294 s]
[INFO] calcite ............................................ SKIPPED
[INFO] utility ............................................ SKIPPED
[INFO] mapd ............................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.935 s
[INFO] Finished at: 2017-07-27T19:19:30+01:00
[INFO] Final Memory: 17M/213M

Do I need to do something else to have the com.mapd.thrift dependencies available?

Thanks,

Julian


#2

Hi,

Please try a make in the build directory to get the thrift dependencies built.

regards


#3

TBH installing all those dependencies is quite an onerous set of hoops to jump through for a one-line fix to a piece of Java code. Is there no simpler way to get just the thrift dependencies?