Try without -Pthrift, it isn’t required unless you want to generate thrift files. If you intend to do so, check for your thrift version, if it is same as defined in the POM
-Ayush > On 20-Nov-2022, at 4:58 PM, Jim Hopper <hopperj...@gmail.com> wrote: > > Hi, > > while building ver 4.0.0-alpha-2 release using the following command > > mvn clean package -D skipTests -Pthriftif -Dthrift.home=/usr/local > > I get these: > > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile > (default-compile) on project hive-standalone-metastore-common: Compilation > failure: Compilation failure: > [ERROR] > /code/apache-hive-4.0.0-alpha-2-src/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java:[8870,138] > org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncClient.setMetaConf_call > is not abstract and does not override abstract method getResult() in > org.apache.thrift.async.TAsyncMethodCall > [ERROR] > /code/apache-hive-4.0.0-alpha-2-src/standalone-metastore/metastore-common/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java:[8888,19] > getResult() in > org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.AsyncClient.setMetaConf_call > cannot override getResult() in org.apache.thrift.async.TAsyncMethodCall > [ERROR] return type void is not compatible with java.lang.Object > > are there any new profiles or parameters that need to be include to build > ver 4? > > thanks!