1

您是否遇到过使用 spring 配置和运行 pig 作业?

因为最近我试图整合 spring 和 pig 在此期间我无法获取hdp:pig-runnerhdp:pig-factory运行标签。提示“cvc-complex-type.2.4.c:匹配的通配符是严格的,但找不到元素‘hdp:pig-factory’的声明”。. 我尝试了所有可能的方法,但无法提出解决方案。你们中的任何人都可以帮忙吗?即使是任何小的建议都会有所帮助。

我使用的模式是

<beans xmlns:hdp="http://www.springframework.org/schema/hadoop" <xsi:schemaLocation="http://www.springframework.org/schema/hadoop http://www.springframework.org/schema/hadoop/spring-hadoop.xsd http://www.springframework.org/schema/hadoop http://www.springframework.org/schema/hadoop/spring-hadoop.xsd">
4

1 回答 1

0

如果你仍然面临这个问题..

首先,您在配置文件中声明了 2 个 spring-hadoop.xsd。

另外,您是否添加了必要的库。如,如果您使用 maven,您是否添加了必要的依赖项?

于 2014-01-31T09:43:54.627 回答