maven编译完spark2.2.0,
然后导入maven项目File-->new->Import project from external model-->maven
方便hive-thriftserver的代码,记得select profiles 页勾选hive-thriftserver
导入maven项目到idea 出现错误
Error:(52, 75) not found: value TCLIService public abstract class ThriftCLIService extends AbstractService implements TCLIService.Iface, Runnable {
解决方案:
在spark\sql\hive-thriftserver\src\gen\java
右键中点Mark Directory as->Sources Root
即可