Java Eclipse:在以下期间发生内部错误:";“更新层次结构”;
我遵循创建数据流java项目的说明 当我试图按照说明中所述编辑运行配置时,我收到以下警报:Java Eclipse:在以下期间发生内部错误:";“更新层次结构”;,java,eclipse,google-cloud-dataflow,Java,Eclipse,Google Cloud Dataflow,我遵循创建数据流java项目的说明 当我试图按照说明中所述编辑运行配置时,我收到以下警报: 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: "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
任何解决方案?当Eclipse项目的类路径中不存在
PipelineOptions
类型时,会发生该错误。这表示数据流PipelineOptions
类不在Eclipse项目的类路径上
如果POM中包含com.google.cloud.dataflow:google cloud dataflow java sdk all
,并且项目已编译,则maven依赖关系可能尚未正确解决。从项目上下文菜单中,选择Maven->Update项目项,选中“强制更新快照/发布”复选框,然后运行更新。这应该确保Dataflow Jar位于类路径上,这将使Dataflow Eclipse插件能够解析基本的PipelineOptions
类,以及PipelineOptions
类层次结构的其余部分