Eclipse:在以下期间发生内部错误:“更新层次结构” [英] Eclipse: An internal error occurred during: "Update Hierarchy"

查看:650
本文介绍了Eclipse:在以下期间发生内部错误:“更新层次结构”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循创建数据流java项目的说明这里
当我按照说明中所述编辑运行配置时,我得到以下警报:

I'm following the instructions for creating data flow java project here When I trying to edit the run configuration as described in the instruction I get the following alert:

An internal error occurred during: "Update Hierarchy".
Tried to create a TypeHierarchyPipelineOptionsHierarchy for a Java Project bq-gettingstarted where no PipelineOptions type exists

我继续遵循上述说明,但是我得到:

I continued following the instructions ignoring the above but then I get:

An internal error occurred during: "Launching BigQueryJavaGettingStarted (1)".
Tried to create a TypeHierarchyPipelineOptionsHierarchy for a Java Project bq-gettingstarted where no PipelineOptions type exists

任何解决方案?

推荐答案

PipelineOptions 类型不是存在于Eclipse Project的类路径中。这表示数据流 PipelineOptions 类不在Eclipse项目的类路径上。

That error occurs when the PipelineOptions type is not present within the classpath of the Eclipse Project. This signifies that the Dataflow PipelineOptions class is not on the classpath for your Eclipse project.

如果 com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all 在POM中,项目编译时,maven依赖关系可能未被正确解析。从项目上下文菜单中,选择Maven - >更新项目项,选中强制更新快照/版本复选框,然后运行更新。这应该确保Dataflow Jar在类路径上,这将使Dataflow Eclipse插件能够解析基础 PipelineOptions 类,剩余的$ $ c $ PipelineOptions 类层次结构。

If the com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all is in the POM, and the project compiles, the maven dependencies may not have been properly resolved. From the project context menu, select the Maven -> Update Project item, check the "Force Update of Snapshots/Releases" checkbox, and run the update. This should ensure the Dataflow Jar is on the classpath, which will enable the Dataflow Eclipse Plugin to resolve the base PipelineOptions class, and the remainder of the PipelineOptions class hierarchy.

这篇关于Eclipse:在以下期间发生内部错误:“更新层次结构”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆