Eclipse:在以下期间发生内部错误:"更新层次结构"

时间:2016-10-30 09:22:15

标签: java eclipse google-cloud-dataflow

我按照创建数据流java项目here的说明进行操作 当我按照说明中的描述编辑运行配置时,我得到以下警告:

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

我继续按照上述指示忽略了上述内容,但后来我得到了:

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

任何解决方案?

1 个答案:

答案 0 :(得分:1)

当Eclipse项目的类路径中不存在PipelineOptions类型时,会发生该错误。这表示Dataflow PipelineOptions类不在Eclipse项目的类路径中。

如果com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all在POM中,并且项目编译,则maven依赖项可能未正确解析。从项目上下文菜单中,选择Maven - >更新项目项目,检查"强制更新快照/版本"复选框,然后运行更新。这应确保Dataflow Jar位于类路径上,这将使Dataflow Eclipse插件能够解析基类PipelineOptions类以及PipelineOptions类层次结构的其余部分。

相关问题