pmml:predict WSO2 流处理器不存在扩展 [英] No Extension Exists for pmml:predict WSO2 Stream Processor

查看:28
本文介绍了pmml:predict WSO2 流处理器不存在扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习 WSO2 Stream Processor Studio 教程来练习 Siddhi.到目前为止,我已经设法解决了教程中包含的所有错误;但是,我被困在第 12 个教程进行实时预测"上.

I am following the WSO2 Stream Processor Studio tutorials to practice Siddhi. So far I've managed to troubleshoot all the bugs incorporated in the tutorials; however, I'm stuck on the 12th tutorial, "Making Real-Time Predictions."

Siddhi 应用程序是

The Siddhi application is

@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 开始的行中,我收到一条错误消息pmml:predict 不存在扩展"

At the line starting with from SugarSyrupDataStream, I get an error message "No Extension Exists for pmml:predict"

WSO2 Siddhi Gpl 执行 Pmml 文档说要将组件 jar 文件复制到/lib 目录.问题是,tar 或 zip 文件都没有 jar 文件.它们都包含 pom.xml 文件,我找到的文档都没有告诉我在哪里部署扩展.

The WSO2 Siddhi Gpl Execution Pmml document says to copy the component jar file to the <STREAM_PROCESSOR_HOME>/lib direcotry. The problem is, none of the tar or zip files has a jar file. They all contain pom.xml files and none of the documentation I've found has told me where to deploy the extension.

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

I tried deploying it in the library directory referenced above and in the features and plug-ins directories as well. I stop and restart the Stream Processor Studio service (editor.sh) each time. Always I get the same error message.

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

I have installed the WSO2 product on Ubuntu 16.04.3 LTS and access the stream processor studio through a Firefox browser.

推荐答案

自从 siddhi-gpl-excecution-pmml通用公共许可证,它不随在 Apache 2 许可证下发布的 WSO2 流处理器一起提供.

Since siddhi-gpl-excecution-pmml is released under General Public License, it's not shipped with the WSO2 Stream Processor which is released under Apache 2 license.

因此您需要手动将此类 jar 添加到 WSO2 Stream Processor.

Therefore you need to manually add such jars to WSO2 Stream Processor.

但是它没有托管在 git 中.你可以找到 jar 用于 maven 存储库.

However it's not hosted in the git. You can find the jar for the siddhi-gpl-execution-pmml extension in maven repository.

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

Also after you copy that jar to /lib directory, please restart the server. The extension will get deployed. No need to add it to the features or pluggins.

最好的问候!

这篇关于pmml:predict WSO2 流处理器不存在扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆