问题一:

报错信息:

1) Explicit bindings are required and com.facebook.presto.execution.TaskManager is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerfor the 1st parameter of com.facebook.presto.server.GracefulShutdownHandler.<init>(GracefulShutdownHandler.java:65)at com.facebook.presto.server.GracefulShutdownModule.setup(GracefulShutdownModule.java:27)2) Explicit bindings are required and com.facebook.presto.execution.TaskManagerConfig is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerConfigfor the 2nd parameter of com.facebook.presto.server.ServerMainModule.createAsyncHttpResponseExecutor(ServerMainModule.java:481)at com.facebook.presto.server.ServerMainModule.createAsyncHttpResponseExecutor(ServerMainModule.java:481)3) Explicit bindings are required and com.facebook.presto.execution.TaskManagerConfig is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerConfigfor the 1st parameter of com.facebook.presto.server.ServerMainModule.createAsyncHttpTimeoutExecutor(ServerMainModule.java:489)at com.facebook.presto.server.ServerMainModule.createAsyncHttpTimeoutExecutor(ServerMainModule.java:489)4) Explicit bindings are required and com.facebook.presto.operator.ExchangeClientConfig is not explicitly bound.while locating com.facebook.presto.operator.ExchangeClientConfigfor the 1st parameter of com.facebook.presto.server.ServerMainModule.createExchangeExecutor(ServerMainModule.java:465)at com.facebook.presto.server.ServerMainModule.createExchangeExecutor(ServerMainModule.java:465)5) Explicit bindings are required and com.facebook.presto.transaction.TransactionManager is not explicitly bound.while locating com.facebook.presto.transaction.TransactionManagerfor the 1st parameter of com.facebook.presto.security.AccessControlManager.<init>(AccessControlManager.java:79)at com.facebook.presto.security.AccessControlModule.configure(AccessControlModule.java:28)6) Error: Invalid configuration property node.environment: may not be null (for class io.airlift.node.NodeConfig.environment)7) Error: Invalid configuration property presto.version: presto.version must be provided when it cannot be automatically determined (for class com.facebook.presto.server.ServerConfig.prestoVersion)7 errors
com.google.inject.CreationException: Unable to create injector, see the following errors:1) Explicit bindings are required and com.facebook.presto.execution.TaskManager is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerfor the 1st parameter of com.facebook.presto.server.GracefulShutdownHandler.<init>(GracefulShutdownHandler.java:65)at com.facebook.presto.server.GracefulShutdownModule.setup(GracefulShutdownModule.java:27)2) Explicit bindings are required and com.facebook.presto.execution.TaskManagerConfig is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerConfigfor the 2nd parameter of com.facebook.presto.server.ServerMainModule.createAsyncHttpResponseExecutor(ServerMainModule.java:481)at com.facebook.presto.server.ServerMainModule.createAsyncHttpResponseExecutor(ServerMainModule.java:481)3) Explicit bindings are required and com.facebook.presto.execution.TaskManagerConfig is not explicitly bound.while locating com.facebook.presto.execution.TaskManagerConfigfor the 1st parameter of com.facebook.presto.server.ServerMainModule.createAsyncHttpTimeoutExecutor(ServerMainModule.java:489)at com.facebook.presto.server.ServerMainModule.createAsyncHttpTimeoutExecutor(ServerMainModule.java:489)4) Explicit bindings are required and com.facebook.presto.operator.ExchangeClientConfig is not explicitly bound.while locating com.facebook.presto.operator.ExchangeClientConfigfor the 1st parameter of com.facebook.presto.server.ServerMainModule.createExchangeExecutor(ServerMainModule.java:465)at com.facebook.presto.server.ServerMainModule.createExchangeExecutor(ServerMainModule.java:465)5) Explicit bindings are required and com.facebook.presto.transaction.TransactionManager is not explicitly bound.while locating com.facebook.presto.transaction.TransactionManagerfor the 1st parameter of com.facebook.presto.security.AccessControlManager.<init>(AccessControlManager.java:79)at com.facebook.presto.security.AccessControlModule.configure(AccessControlModule.java:28)6) Error: Invalid configuration property node.environment: may not be null (for class io.airlift.node.NodeConfig.environment)7) Error: Invalid configuration property presto.version: presto.version must be provided when it cannot be automatically determined (for class com.facebook.presto.server.ServerConfig.prestoVersion)7 errorsat com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)at com.google.inject.Guice.createInjector(Guice.java:87)at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:240)at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:127)at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:73)Process finished with exit code 1

问题原因

没有正确编写对 VM option位置。

下面是我最先写的内容

-ea -XX:+UseG1GC -XX:G1HeapRegionSize=32M -XX:+UseGCOverheadLimit -XX:+ExplicitGCInvokesConcurrent -Xmx2G -Dconfig=etc/config.properties -Dlog.levels-file=etc/log.properties

解决方案




问题二:

问题描述:

在运行项目的时候,出现例如在presto-parser模块Cannot resolve symbol 'SqlBaseParser缺少代码的错误,这是因为源码不带anltr4的生成代码。可以在根目录运行生成anltr4代码的命令。

解决方案:

mvn antlr4:antlr4

在执行命令完成后,错误依旧没有消失,我们可以看看项目的结构。File -> Project Structure -> Modules -> presto-parser,将presto-parser的target -> generated-sources ->anltr4设置为Sources


问题三:

报错信息:

[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.2.0:revision (default) on project adam-cli_2.10: .git directory could not be found! Please specify a valid [dotGitDirectory] in your pom.xml -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

解决方案:

pom.xml 文件添加如下内容:

<plugin><groupId>pl.project13.maven</groupId><artifactId>git-commit-id-plugin</artifactId><configuration><skip>true</skip></configuration>
</plugin>

问题四:

编译presto 报错,报错内容如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (checkstyle) on project presto-hive-metastore: You have 1 Checkstyle violation. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :presto-hive-metastore
MacBook-Pro-2:presto hanzhe$ ./mvnw clean install -DskipTests

问题原因

原因是重写之后的代码不符合规范,maven-checkstyle-plugin检查失败,如果不打算根据presto的规范改的话。

解决方案

presto-root 工程下 修改pom.xml 文件

添加

        <air.check.skip-extended>true</air.check.skip-extended>

全部如下:

<properties><air.main.basedir>${project.basedir}</air.main.basedir><air.check.skip-spotbugs>true</air.check.skip-spotbugs><air.check.skip-pmd>true</air.check.skip-pmd><air.check.skip-jacoco>true</air.check.skip-jacoco><air.check.skip-extended>true</air.check.skip-extended><air.checkstyle.config-file>src/checkstyle/presto-checks.xml</air.checkstyle.config-file><air.java.version>1.8.0-151</air.java.version><air.maven.version>3.3.9</air.maven.version>
</properties>

问题四

报错内容

Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.1.1:analyze-only (default) on project presto-main: Dependency problems found -> [Help 1]

解决方法

  1. 用mvn 命令分析依赖问题
 mvn dependency:analyze

经过打印日志发现org.glassfish.jersey.core:jersey-common依赖问题,则在presto-main下的pom.xml里面build-》plugins-》标签下增加:

<plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-dependency-plugin</artifactId><configuration><!-- TODO: Remove this once fixed --><ignoredDependencies><ignoredDependency>org.glassfish.jersey.core:jersey-common:jar</ignoredDependency></ignoredDependencies></configuration>
</plugin>

【presto】presto编译报错整理(大全)相关推荐

  1. Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...)

    Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...) 目录 Android Studio 的一些 常用操作和 编译报错 整理(持续更新中...) 一.Android s ...

  2. 【atlas】atlas 编译报错整理(全)

    前言 最近在编译 apache altas 1.1版本.在编译过程中遇到很多报错,这里整理并记录一下. 问题一: org.restlet.jee 包找不到 问题原因 Maven主仓库中找不到包的解决办 ...

  3. C语言定义code报错,C语言报错整理大全

    C语言codeblocks 错误总汇! C语言错误代码及错误信息错误释义error 1: Out of memory 内存溢出 error 2: Identifier expected 缺标识符 er ...

  4. 【致敬嵌入式攻城狮第2期活动预热征文】解决瑞萨RA2E1开发板在RT-Thread的版本中编译报错 error: ‘board_cfg.h‘ file not found

    解决瑞萨RA2E1开发板在RT-Thread的版本中编译报错 error: 'board_cfg.h' file not found 继上上周在RA2E1开发板上跑通了RT-Thread最新版本的代码 ...

  5. ubuntu 找不到mysql.h_ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory

    在Ubuntu体系中,已经安装了mysql,即应用sudo apt-get install mysql-server mysql-client 但是用C编译mysql数据库时,报错 fatal err ...

  6. go build 编译报错 missing go.sum entry for module providing package

    go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...

  7. 编译报错field has incomplete type

    linux下编译C++代码报错,报错信息"field has incomplete type".这种问题一般都是在头文件对类或者结构体进行了前向声明,后面使用了该类定义了对象,导致 ...

  8. Eclipse中更改JDK版本,解决ant编译报错的问题

    要改一个JDK版本 主要是为了解决ant编译报错,JDK版本不一致的问题. 1. Windows--Preferences--Java--Compiler(配置的为1.8)--Installed JR ...

  9. idea java编译报错_intellij-idea,java_idea 编译报错,intellij-idea,java - phpStudy

    idea 编译报错 简单的 helloworld 竟然坑了我一天啦 /Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bi ...

最新文章

  1. 利用Landsat8 进行利用土地分类
  2. 卡地亚搜索引擎_「AF厂卡地亚猎豹」网站SEO优化新方向
  3. [转]Asp.net 将js文件打包进dll 方法
  4. Hive数据导入——数据存储在Hadoop分布式文件系统中,往Hive表里面导入数据只是简单的将数据移动到表所在的目录中!...
  5. python编程自学难吗-为什么很多人不建议自学python编程呢?
  6. linux内核网络协议栈--数据包的skb桥转发蓝图(二十六)
  7. MINIST深度学习识别:python全连接神经网络和pytorch LeNet CNN网络训练实现及比较(三)...
  8. 案例解读:Oracle目录由于TFA触发bug导致jdb文件未自动清理引起空间不足
  9. C语言存储地址规律,一数组按顺序序存放,插入一个数,按原来排序规律放在相应位置...
  10. 水星usb无线网卡linux驱动下载,水星USB无线网卡mw150us苹果macOS系统驱动成功
  11. Ubuntu 开机自动运行命令或程序
  12. html svg 线条动画,HTML5 SVG简单的动态绘制轮廓线条动画插件
  13. 必先利其器之 IDEA 磨刀好杀猪
  14. linux 拔网线重启才可以上网_Linux断开网线后,再插上网线,网络仍然无法PING通,只有重启网络服务后才能PING通...
  15. 东华大学2020考研计算机OJ题目解答分享——进阶篇(34)
  16. USB专用充电端口(DCP) MST2515
  17. 揭秘:传统pos机手续费为什么比无卡支付手续费还贵!
  18. Elasticsearch 第三方工具包Bboss的简单使用
  19. 一文读懂通信玩家半年财报,有人欢喜有人愁!
  20. 条件概率,乘法定理 (概统1)

热门文章

  1. Affiliate Marketing是什么?一篇文章帮你彻底搞清楚!
  2. Webmagic 爬虫框架 爬取马蜂窝、携程旅游、汽车之家游记信息
  3. IDEA 数据库插件Database Navigator 插件
  4. 前端资源 - 字体 - 学习/实践
  5. 谈谈基于Go的Aop设计
  6. 【English】Enjoy your April
  7. ocz固态硬盘开卡工具_将我的Lenovo W500升级到OCZ Vertex 250GB SATA II固态磁盘(SSD)...
  8. ZEGO EXPRESS SDK轻松实现Android端四人视频聊天
  9. MAOF分享的资源大集合
  10. rviz可视化点云_rviz三维可视化平台的使用