pmml:predict WSO2 流处理器不存在扩展

2024-01-12

我正在按照 WSO2 Stream Processor Studio 教程来练习 Siddhi。到目前为止,我已经成功解决了教程中包含的所有错误;然而,我被困在第 12 个教程“进行实时预测”中。

Siddhi 应用程序是

@App:name("SugarSyrupPredictionApp")
@app:description("Making real-time predictions tutorial 12")

@source(type='http', receiver.url='http://localhost:5006/SugarSyrupEP', @map(type = 'json'))
define stream SugarSyrupDataStream (temperature double, density double);

@sink(type='log', prefix='Predicted next sugar syrup shipment:')
define stream PredictedSugarSyrupDataStream (nextTemperature double, nextDensity double, decision bool);

from SugarSyrupDataStream#pmml:predict('/data/wso2sp-4.0.0-beta3/wso2/lib/features/siddhi-gpl-execution-pmml-4.0.0/component/src/test/resources', temperature, density)
select * 
insert into PredictedSugarSyrupDataStream;

在以 SugarSyrupDataStream 开头的行中,我收到一条错误消息“No Extension Exists for pmml:predict”

The WSO2 Siddhi Gpl 执行 Pmml https://wso2-extensions.github.io/siddhi-gpl-execution-pmml/#how-to-use文档说要复制组件jar https://github.com/wso2-extensions/siddhi-gpl-execution-pmml/releases文件到<STREAM_PROCESSOR_HOME>/lib目录。问题是,tar 或 zip 文件都没有 jar 文件。它们都包含 pom.xml 文件,并且我找到的任何文档都没有告诉我在哪里部署扩展。

我尝试将其部署在上面引用的库目录以及功能和插件目录中。我每次都会停止并重新启动 Stream Processor Studio 服务 (editor.sh)。我总是收到相同的错误消息。

我在Ubuntu 16.04.3 LTS上安装了WSO2产品,并通过Firefox浏览器访问流处理器工作室。


Since siddhi-gpl-执行-pmml发布于通用公共许可证 https://wso2-extensions.github.io/siddhi-gpl-execution-pmml/license/,它不随在 Apache 2 许可证下发布的 WSO2 流处理器一起提供。

因此,您需要手动将此类 jar 添加到 WSO2 流处理器。

然而它并不托管在 git 中。您可以找到jar http://central.maven.org/maven2/org/wso2/extension/siddhi/gpl/execution/pmml/siddhi-gpl-execution-pmml/4.0.11/siddhi-gpl-execution-pmml-4.0.11.jar为了siddhi-gpl-执行-pmml延伸于Maven 存储库 https://mvnrepository.com/artifact/org.wso2.extension.siddhi.gpl.execution.pmml/siddhi-gpl-execution-pmml.

另外,将该 jar 复制到 /lib 目录后,请重新启动服务器。该扩展将被部署。无需将其添加到功能或插件中。

此致!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

pmml:predict WSO2 流处理器不存在扩展 的相关文章

随机推荐