【问题标题】:Eclipse: An internal error occurred during: "Update Hierarchy"Eclipse:在“更新层次结构”期间发生内部错误
【发布时间】:2016-10-30 09:22:14
【问题描述】:

我正在按照说明创建数据流 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

有什么办法吗?

【问题讨论】:

    标签: java eclipse google-cloud-dataflow


    【解决方案1】:

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

    如果com.google.cloud.dataflow:google-cloud-dataflow-java-sdk-all 在 POM 中,并且项目编译,maven 依赖项可能没有正确解析。从项目上下文菜单中,选择 Maven -> Update Project 项,选中“Force Update of Snapshots/Releases”复选框,然后运行更新。这应确保 Dataflow Jar 位于类路径中,这将使 Dataflow Eclipse 插件能够解析基本 PipelineOptions 类和 PipelineOptions 类层次结构的其余部分。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-03
      • 2013-09-20
      • 1970-01-01
      相关资源
      最近更新 更多