Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT from/to confluent (${confluent.maven.repo})

huangapple go评论76阅读模式
英文:

Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT from/to confluent (${confluent.maven.repo})

问题

以下是翻译好的部分:

我第一次尝试使用Kafka Connect,并且我想要将SAP S/4 HANA连接到Hive。我已经使用以下链接创建了SAP S/4源Kafka连接器:

https://github.com/SAP/kafka-connect-sap

但是,我无法创建一个HDFS汇聚连接器。问题与pom文件有关。

我已经尝试了mvn clean package命令。但是,我遇到了以下错误:

[INFO] 正在扫描项目...
[ERROR] [ERROR] 处理POM文件时遇到一些问题:
[FATAL] 无法解析 io.confluent:kafka-connect-hdfs:[unknown-version] 的父POM。无法从 confluent (${confluent.maven.repo}) 传输 artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT,因为可用的连接器工厂无法访问 ${confluent.maven.repo} 以使用默认类型:BasicRepositoryConnectorFactory,而 'parent.relativePath' 指向错误的本地POM,位于第 22 行,第 13 列
 @
[ERROR] 生成的项目 io.confluent:kafka-connect-hdfs:[unknown-version] (/home/dev_dice_sa/test-dicestreaming/config/kafka-connect-hdfs/pom.xml) 遇到 1 个错误
[ERROR] 无法解析 io.confluent:kafka-connect-hdfs:[unknown-version] 的父 POM。无法从 confluent (${confluent.maven.repo}) 传输 artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT,因为可用的连接器工厂无法访问 ${confluent.maven.repo} 以使用默认类型:BasicRepositoryConnectorFactory,位于第 22 行,第 13 列:无法使用已注册的 transporter 工厂访问 ${confluent.maven.repo}:WagonTransporterFactory:不支持的传输协议 -> [帮助 2]
[ERROR]
[ERROR] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。
[ERROR] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。
[ERROR]
[ERROR] 有关错误和可能的解决方法的更多信息,请阅读以下文章:
[ERROR] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [帮助 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

这是我的pom.xml文件内容:

<?xml version="1.0" encoding="UTF-8"?>
<!-- ... 以下省略 ... -->

我已经查阅了以下链接:

https://github.com/confluentinc/kafka-connect-hdfs/wiki/FAQ

但是,我无法理解其中的内容。请帮助我解决这个问题。

英文:

I am trying Kafka connect for the first time and I want to connect SAP S/4 HANA to Hive. I have created the SAP S/4 source Kafka connector using this:

https://github.com/SAP/kafka-connect-sap

But, I am not able to create an HDFS sink connector. The issue is related to pom file.

I have tried mvn clean package.
But, I got this error:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for io.confluent:kafka-connect-hdfs:[unknown-version]: Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and &#39;parent.relativePath&#39; points at wrong local POM @ line 22, column 13
 @
[ERROR] The build could not read 1 project -&gt; [Help 1]
[ERROR]
[ERROR]   The project io.confluent:kafka-connect-hdfs:[unknown-version] (/home/dev_dice_sa/test-dicestreaming/config/kafka-connect-hdfs/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for io.confluent:kafka-connect-hdfs:[unknown-version]: Could not transfer artifact io.confluent:kafka-connect-storage-common-parent:pom:6.0.0-SNAPSHOT from/to confluent (${confluent.maven.repo}): Cannot access ${confluent.maven.repo} with type default using the available connector factories: BasicRepositoryConnectorFactory and &#39;parent.relativePath&#39; points at wrong local POM @ line 22, column 13: Cannot access ${confluent.maven.repo} using the registered transporter factories: WagonTransporterFactory: Unsupported transport protocol -&gt; [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

This is my pom.xml:

    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!--
~ Copyright 2018 Confluent Inc.
~
~ Licensed under the Confluent Community License (the &quot;License&quot;); you may not use
~ this file except in compliance with the License.  You may obtain a copy of the
~ License at
~
~ http://www.confluent.io/confluent-community-license
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an &quot;AS IS&quot; BASIS, WITHOUT
~ WARRANTIES OF ANY KIND, either express or implied.  See the License for the
~ specific language governing permissions and limitations under the License.
--&gt;
&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
&lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&lt;parent&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-common-parent&lt;/artifactId&gt;
&lt;version&gt;6.0.0-SNAPSHOT&lt;/version&gt;
&lt;/parent&gt;
&lt;artifactId&gt;kafka-connect-hdfs&lt;/artifactId&gt;
&lt;packaging&gt;jar&lt;/packaging&gt;
&lt;name&gt;kafka-connect-hdfs&lt;/name&gt;
&lt;organization&gt;
&lt;name&gt;Confluent, Inc.&lt;/name&gt;
&lt;url&gt;http://confluent.io&lt;/url&gt;
&lt;/organization&gt;
&lt;url&gt;http://confluent.io&lt;/url&gt;
&lt;description&gt;
A Kafka Connect HDFS connector for copying data between Kafka and Hadoop HDFS.
&lt;/description&gt;
&lt;licenses&gt;
&lt;license&gt;
&lt;name&gt;Confluent Community License&lt;/name&gt;
&lt;url&gt;http://www.confluent.io/confluent-community-license&lt;/url&gt;
&lt;distribution&gt;repo&lt;/distribution&gt;
&lt;/license&gt;
&lt;/licenses&gt;
&lt;scm&gt;
&lt;connection&gt;scm:git:git://github.com/confluentinc/kafka-connect-hdfs.git&lt;/connection&gt;
&lt;developerConnection&gt;scm:git:git@github.com:confluentinc/kafka-connect-hdfs.git&lt;/developerConnection&gt;
&lt;url&gt;https://github.com/confluentinc/kafka-connect-hdfs&lt;/url&gt;
&lt;tag&gt;HEAD&lt;/tag&gt;
&lt;/scm&gt;
&lt;properties&gt;
&lt;confluent.maven.repo&gt;http://packages.confluent.io/maven/&lt;/confluent.maven.repo&gt;
&lt;apacheds-jdbm1.version&gt;2.0.0-M2&lt;/apacheds-jdbm1.version&gt;
&lt;kafka.connect.maven.plugin.version&gt;0.11.1&lt;/kafka.connect.maven.plugin.version&gt;
&lt;/properties&gt;
&lt;repositories&gt;
&lt;repository&gt;
&lt;id&gt;confluent&lt;/id&gt;
&lt;name&gt;Confluent&lt;/name&gt;
&lt;url&gt;${confluent.maven.repo}&lt;/url&gt;
&lt;/repository&gt;
&lt;/repositories&gt;
&lt;dependencies&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.kafka&lt;/groupId&gt;
&lt;artifactId&gt;connect-api&lt;/artifactId&gt;
&lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.kafka&lt;/groupId&gt;
&lt;artifactId&gt;connect-json&lt;/artifactId&gt;
&lt;version&gt;${kafka.version}&lt;/version&gt;
&lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-common&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-core&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-format&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-partitioner&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-wal&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;artifactId&gt;kafka-connect-storage-hive&lt;/artifactId&gt;
&lt;version&gt;${confluent.version}&lt;/version&gt;
&lt;exclusions&gt;
&lt;exclusion&gt;
&lt;groupId&gt;io.netty&lt;/groupId&gt;
&lt;artifactId&gt;netty&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;exclusion&gt;
&lt;groupId&gt;io.netty&lt;/groupId&gt;
&lt;artifactId&gt;netty-all&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;/exclusions&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;com.github.spotbugs&lt;/groupId&gt;
&lt;artifactId&gt;spotbugs-annotations&lt;/artifactId&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
&lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
&lt;artifactId&gt;hadoop-minicluster&lt;/artifactId&gt;
&lt;version&gt;${hadoop.version}&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;exclusions&gt;
&lt;exclusion&gt;
&lt;groupId&gt;io.netty&lt;/groupId&gt;
&lt;artifactId&gt;netty&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;exclusion&gt;
&lt;groupId&gt;io.netty&lt;/groupId&gt;
&lt;artifactId&gt;netty-all&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;/exclusions&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
&lt;artifactId&gt;hadoop-minikdc&lt;/artifactId&gt;
&lt;version&gt;${hadoop.version}&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;exclusions&gt;
&lt;exclusion&gt;
&lt;!-- exclude this from hadoop minikdc as the minikdc depends on
the apacheds-jdbm1 bundle, which is not available in maven central--&gt;
&lt;groupId&gt;org.apache.directory.jdbm&lt;/groupId&gt;
&lt;artifactId&gt;apacheds-jdbm1&lt;/artifactId&gt;
&lt;/exclusion&gt;
&lt;/exclusions&gt;
&lt;/dependency&gt;
&lt;dependency&gt;
&lt;!-- add this to satisfy the dependency requirement of apacheds-jdbm1--&gt;
&lt;groupId&gt;org.apache.directory.jdbm&lt;/groupId&gt;
&lt;artifactId&gt;apacheds-jdbm1&lt;/artifactId&gt;
&lt;version&gt;${apacheds-jdbm1.version}&lt;/version&gt;
&lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
&lt;/dependencies&gt;
&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;io.confluent&lt;/groupId&gt;
&lt;version&gt;${kafka.connect.maven.plugin.version}&lt;/version&gt;
&lt;artifactId&gt;kafka-connect-maven-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;goals&gt;
&lt;goal&gt;kafka-connect&lt;/goal&gt;
&lt;/goals&gt;
&lt;configuration&gt;
&lt;title&gt;Kafka Connect HDFS&lt;/title&gt;
&lt;documentationUrl&gt;https://docs.confluent.io/${project.version}/connect/connect-hdfs/docs/index.html&lt;/documentationUrl&gt;
&lt;description&gt;
The HDFS connector allows you to export data from Kafka topics to HDFS files in a variety of formats and integrates with Hive to make data immediately available for querying with HiveQL.
The connector periodically polls data from Kafka and writes them to HDFS. The data from each Kafka topic is partitioned by the provided partitioner and divided into chunks. Each chunk of data is represented as an HDFS file with topic, Kafka partition, start and end offsets of this data chunk in the filename. If no partitioner is specified in the configuration, the default partitioner which preserves the Kafka partitioning is used. The size of each data chunk is determined by the number of records written to HDFS, the time written to HDFS and schema compatibility.
The HDFS connector integrates with Hive and when it is enabled, the connector automatically creates an external Hive partitioned table for each Kafka topic and updates the table according to the available data in HDFS.
&lt;/description&gt;
&lt;supportProviderName&gt;Confluent, Inc.&lt;/supportProviderName&gt;
&lt;supportSummary&gt;Confluent supports the HDFS sink connector alongside community members as part of its Confluent Platform offering.&lt;/supportSummary&gt;
&lt;supportUrl&gt;https://docs.confluent.io/current/&lt;/supportUrl&gt;
&lt;supportLogo&gt;logos/confluent.png&lt;/supportLogo&gt;
&lt;ownerUsername&gt;confluentinc&lt;/ownerUsername&gt;
&lt;ownerType&gt;organization&lt;/ownerType&gt;
&lt;ownerName&gt;Confluent, Inc.&lt;/ownerName&gt;
&lt;ownerUrl&gt;https://confluent.io/&lt;/ownerUrl&gt;
&lt;ownerLogo&gt;logos/confluent.png&lt;/ownerLogo&gt;
&lt;dockerNamespace&gt;confluentinc&lt;/dockerNamespace&gt;
&lt;dockerName&gt;cp-kafka-connect&lt;/dockerName&gt;
&lt;dockerTag&gt;${project.version}&lt;/dockerTag&gt;
&lt;componentTypes&gt;
&lt;componentType&gt;sink&lt;/componentType&gt;
&lt;/componentTypes&gt;
&lt;tags&gt;
&lt;tag&gt;hadoop&lt;/tag&gt;
&lt;tag&gt;hdfs&lt;/tag&gt;
&lt;tag&gt;hive&lt;/tag&gt;
&lt;/tags&gt;
&lt;confluentControlCenterIntegration&gt;true&lt;/confluentControlCenterIntegration&gt;
&lt;/configuration&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;compilerArgs&gt;
&lt;arg&gt;-Xlint:all,-deprecation,-processing&lt;/arg&gt;
&lt;arg&gt;-Werror&lt;/arg&gt;
&lt;/compilerArgs&gt;
&lt;showWarnings&gt;true&lt;/showWarnings&gt;
&lt;showDeprecation&gt;false&lt;/showDeprecation&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;descriptors&gt;
&lt;descriptor&gt;src/assembly/development.xml&lt;/descriptor&gt;
&lt;descriptor&gt;src/assembly/package.xml&lt;/descriptor&gt;
&lt;/descriptors&gt;
&lt;attach&gt;false&lt;/attach&gt;
&lt;/configuration&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;make-assembly&lt;/id&gt;
&lt;phase&gt;package&lt;/phase&gt;
&lt;goals&gt;
&lt;goal&gt;single&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;reuseForks&gt;false&lt;/reuseForks&gt;
&lt;forkCount&gt;1&lt;/forkCount&gt;
&lt;systemPropertyVariables&gt;
&lt;datanucleus.schema.autoCreateAll&gt;true&lt;/datanucleus.schema.autoCreateAll&gt;
&lt;/systemPropertyVariables&gt;
&lt;additionalClasspathElements&gt;
&lt;!--puts hive-site.xml on classpath - w/o HMS tables are not created--&gt;
&lt;additionalClasspathElement&gt;src/test/resources/conf&lt;/additionalClasspathElement&gt;
&lt;/additionalClasspathElements&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-checkstyle-plugin&lt;/artifactId&gt;
&lt;executions&gt;
&lt;execution&gt;
&lt;id&gt;validate&lt;/id&gt;
&lt;phase&gt;validate&lt;/phase&gt;
&lt;configuration&gt;
&lt;suppressionsLocation&gt;checkstyle/suppressions.xml&lt;/suppressionsLocation&gt;
&lt;/configuration&gt;
&lt;goals&gt;
&lt;goal&gt;check&lt;/goal&gt;
&lt;/goals&gt;
&lt;/execution&gt;
&lt;/executions&gt;
&lt;/plugin&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-clean-plugin&lt;/artifactId&gt;
&lt;version&gt;3.0.0&lt;/version&gt;
&lt;configuration&gt;
&lt;filesets&gt;
&lt;fileset&gt;
&lt;directory&gt;.&lt;/directory&gt;
&lt;includes&gt;
&lt;include&gt;derby.log&lt;/include&gt;
&lt;include&gt;metastore_db/&lt;/include&gt;
&lt;/includes&gt;
&lt;/fileset&gt;
&lt;/filesets&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;resources&gt;
&lt;resource&gt;
&lt;directory&gt;src/main/resources&lt;/directory&gt;
&lt;filtering&gt;true&lt;/filtering&gt;
&lt;/resource&gt;
&lt;/resources&gt;
&lt;/build&gt;
&lt;profiles&gt;
&lt;profile&gt;
&lt;id&gt;standalone&lt;/id&gt;
&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
&lt;configuration&gt;
&lt;descriptors&gt;
&lt;descriptor&gt;src/assembly/standalone.xml&lt;/descriptor&gt;
&lt;/descriptors&gt;
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;
&lt;/profile&gt;
&lt;/profiles&gt;
&lt;/project&gt;

I have looked into this link:

https://github.com/confluentinc/kafka-connect-hdfs/wiki/FAQ

But, I was not able to follow this. Please help me out.

答案1

得分: 1

我建议您下载现有的Confluent平台,其中已经包括了HDFS Connect。

否则,不要仅仅检出主分支来构建项目,而是检出一个发布版本。

英文:

I suggest you download existing Confluent Platform which includes HDFS Connect already

Otherwise, checkout a release version rather than only the master branch to build the project.

huangapple
  • 本文由 发表于 2020年8月27日 00:44:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/63602134.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定