构建 presto 时出现异常
Posted
技术标签:
【中文标题】构建 presto 时出现异常【英文标题】:Exception while build presto 【发布时间】:2018-11-21 18:13:03 【问题描述】:我在构建 presto 时遇到以下异常,
[ERROR] Failed to execute goal io.airlift.maven.plugins:sphinx-maven-plugin:2.0:generate (default) on project presto-docs: Failed to run the report: Sphinx report generation failed -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.airlift.maven.plugins:sphinx-maven-plugin:2.0:generate (default) on project presto-docs: Failed to run the report
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:185)
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:181)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to run the report
at io.airlift.maven.sphinx.SphinxMojo.execute(SphinxMojo.java:234)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 11 more
Caused by: org.apache.maven.reporting.MavenReportException: Sphinx report generation failed
at io.airlift.maven.sphinx.SphinxMojo.runForkedSphinx(SphinxMojo.java:405)
at io.airlift.maven.sphinx.SphinxMojo.executeReport(SphinxMojo.java:246)
at io.airlift.maven.sphinx.SphinxMojo.execute(SphinxMojo.java:231)
... 13 more
指导我如何毫无例外地构建 presto。
【问题讨论】:
你用过 mvnw github.com/prestodb/presto/blob/master/mvnw 吗? 这不是真正与编程相关的问题。我建议 groups.google.com/d/forum/presto-users 代替。一定要包含一些细节,仅 stacktrace 是不够的。 【参考方案1】:您可以安装python,稍后使用以下命令单独构建presto-docs,以了解sphinx的详细错误,这将有助于解决构建错误
pip2 install sphinx
make -C presto-docs clean html
【讨论】:
以上是关于构建 presto 时出现异常的主要内容,如果未能解决你的问题,请参考以下文章
Presto 或 Trino 自定义 UDF 得到“不匹配预期的 Java 类型错误”
异常Cannot construct instance of `com.facebook.presto.jdbc.internal.client.QueryResults`, problem: s(代