英文:
Error while running maven command in gcp console unable to install common package error
问题
无法在GCP控制台中安装Apache Maven软件包,请告知我是否有人解决了此问题。我正在尝试按照以下链接创建Dataflow数据管道:
[INFO] -----------------------------------------------------------------------
[INFO] 构建失败
[INFO] -----------------------------------------------------------------------
[INFO] 总时间:51.368秒
[INFO] 完成于:2020-08-30T15:27:29Z
[INFO] -----------------------------------------------------------------------
[ERROR] 无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile(默认编译),项目common:编译失败:编译失败:
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[78,12] 找不到符号
[ERROR] 符号:类DataStreamClient
[ERROR] 位置:类com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[80,30] 找不到符号
[ERROR] 符号:类DataStreamClient
[ERROR] 位置:类com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[29,42] 找不到符号
[ERROR] 符号:类DataStreamClient
[ERROR] 位置:包com.google.cloud.teleport.v2.utils
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[59,11] 找不到符号
[ERROR] 符号:类DataStreamClient
[ERROR] 位置:类com.google.cloud.teleport.v2.cdc.mappers.MergeInfoMapper
[ERROR] -> [帮助 1]
[ERROR]
[ERROR] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行Maven。
[ERROR] 使用 -X 开关重新运行Maven以启用完整的调试日志记录。
[ERROR]
[ERROR] 有关错误和可能的解决方案的更多信息,请阅读以下文章:
[ERROR] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] 在纠正问题后,可以使用以下命令继续构建
[ERROR] mvn <args> -rf :common
英文:
unable to install apache maven packages in gcp console please let me know if any one resolves the issue. I'm trying to create dataflow pipeline following the below link
enter link description here
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.368 s
[INFO] Finished at: 2020-08-30T15:27:29Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project common: Compilation failure: Compilation failure:
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[78,12] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/utils/CacheUtils.java:[80,30] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.utils.CacheUtils.DataStreamPkCache
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[29,42] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: package com.google.cloud.teleport.v2.utils
[ERROR] /home/prasanna_kumar/DataflowTemplates/v2/common/src/main/java/com/google/cloud/teleport/v2/cdc/mappers/MergeInfoMapper.java:[59,11] cannot find symbol
[ERROR] symbol: class DataStreamClient
[ERROR] location: class com.google.cloud.teleport.v2.cdc.mappers.MergeInfoMapper
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :common
答案1
得分: 0
到目前为止,这个开发者错误是众所周知的,我这边已经确认,在编译 kafka-to-bigquery
模板时出现了与 DataStreamClient
类相关的相同错误。似乎关于 CacheUtils.java
的新 PR 即将出现,更多信息请见此处。
英文:
By now this is well known to developers bug, confirmed on my side, getting the same kafka-to-bigquery
template compilation error around DataStreamClient
class. Seems the new PR for CacheUtils.java
is going to appear soon, more info here.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论