我想使用Spring XD加载RSS源以在Hadoop中存储。 我使用以下示例:https://github.com/spring-projects/spring-xd/wiki/Creating-a-Source-Module 因此我在目录[/usr/local/Cellar/springxd/1.0.0.M7/libexec/xd/modules/source]中创建了一个feed.xml文件 后来也在[/usr/local/Cellar/springxd/1.0.0.M7/libexec/xd/modules/source/feed/config/feed.xml] 通过复制github示例的示例feed.xml文件。
github示例指出"本节介绍了包含一些用于在XD容器外进行测试的代码的本地项目的设置。如果您希望通过部署到Spring XD来测试模块,则可以跳过此步骤。"
我想使用xd-singlenode和xd-shell在Spring XD中部署模块。所以在xd-shell中我尝试使用DSL脚本创建流,例如
stream create -- name bbcfeed --definition "feed | log" --deploy
因此,我收到以下错误消息: "命令失败org.springframework.xd.rest.client.impl.SpringXDException:配置问题:无法找到XML架构命名空间的Spring NamespaceHandler [http://www.springframework.org/schema/integration/feed]Offending资源:URL [file:/ usr / local / Cellar /springxd/1.0.0.M7/libexec/xd/modules/source/feed/config/feed.xml]"
我查看了springdramework.org架构的存在。他们确实存在。
我做错了什么?
答案 0 :(得分:0)
我查看了springdramework.org架构的存在。他们确实存在。
我认为你的意思是在互联网上 - 包含模式(和类)的jar必须在类路径上。您需要将spring-integration-feed
jar及其依赖项添加到`$ {XD_HOME} / lib目录中,如文档中所述。您也可以将它们复制到模块的lib目录中。
spring-integration-feed
版本必须与其他spring-integration-*
广告的版本匹配。
您还在使用旧的预发布里程碑;我建议您升级到最新版本:http://projects.spring.io/spring-xd/(撰写本文时为1.0.1.RELEASE)。