Following the examples presented in the WSO2 SP 4.1.0 documentation, I am trying to run an example where I read data from a csv file, I predict some result based on the data, and the export the predicted result to a csv file.
So far, the reading and writing to a csv file is working fine, but when I add the PMML prediction part, I cant run the file getting as error "ERROR {org.wso2.extension.siddhi.gpl.execution.pmml.util.PMMLUtil} - Failed to unmarshal the pmml definition: null".
The model is a random forest regressor with 15 trees and max_depth=15 trained with sklearn and was exported using the sklearn2pmml 0.35.1 Python library.
I already copied the "siddhi-gpl-execution-pmml-4.0.13.jar" file to "{wso2_4.0.0 install dir}/lib".
I am wondering if there is a version mismatch between the PMML definition exported with sklearn2pmml (the model follows the PMML 4.3 definition) and the PMML definitions accepted by WSO2 SP.
EDIT:
The error isnt showing right now, and I am attaching an image of the WSO2 SP Editor running on Firefox where you can see that the query has an error, but the error box is empty! (this only happens with this error).
Link to a screenshot. Note that the message box from the error is empty!
EDIT2:
I already tried the .jar proposed in No Extension Exists for pmml:predict WSO2 Stream Processor (siddhi-gpl-execution-pmml-4.0.11.jar) and also the siddhi-gpl-execution-pmml-4.0.13.jar. Both give the same error (without any explanation in the error message box).
WSO2 SP's PMML extension supports PMML 4.3 definitions inherently.
Can you please verify the "pmml_model_path" provided as the parameter for the extension.
Related
I have a problem with the ExportToFileInGroup API method. According to documentation, PowerBI reports can be exported to a few different formats, for me the most useful are PPTX, PDF, and PNG
(https://learn.microsoft.com/en-us/rest/api/power-bi/reports/export-to-file-in-group#fileformat).
PPTX and PDF work fine but PNG throw exception. And that exception looks like licence problems "Operation returned an invalid status code 'Forbidden'" - I know that it is not exactly what it means but I noticed that for MS that often means that you didn't pay for that functionality. Is that possible that png format needs some extra licence?
Unfortunately, I need an image format to push that as a slack message and have an immediately preview.
I'm in the same boat - PDF and PPTX exports both work, but for PNG I get a 403-Forbidden response.
Found this: https://community.powerbi.com/t5/Developer/quot-Export-report-to-image-is-disabled-on-tenant-level-quot/m-p/1187677
...which indicates a tenant-level setting must be enabled, and the default is disabled. I'm not a tenant admin, so I don't know if this is the solution; will probably take me days get that turned on (assuming it exists), but I figured I'd share this in case it helps.
When trying to upload a parquet file into BigQuery, I get this error:
Error while reading data, error message: Read less values than expected from: prod-scotty-45ecd3eb-e041-450c-bac8-3360a39b6c36; Actual: 0, Expected: 10
I don't know why I get the error.
I tried inspecting the file with parquet-tools and it prints the file contents without issues.
The parquet file is written using the parquetjs JavaScript library.
Update: I also filed this in the BigQuery issue tracker here: https://issuetracker.google.com/issues/145797606
It turns out BigQuery doesn't support the latest version of the parquet format. I changed the output not to use the version 2 format and BigQuery accepted it.
From the error message it seems like a rogue line break might be causing this.
We use DataPrep to clean up our data, it works quite well. If I am wrong it's also google recommended method of cleaning up / sanitising data for big query.
https://cloud.google.com/dataprep/docs/html/BigQuery-Data-Type-Conversions_102563896
I'm trying to fill pdf form using HummusJS but it throws me an error TypeError: Unable to modify PDF file, make sure that output file target is available and that it is not protected while running pdf generation in AWS lambda function but its working fine on my local machine and log aren't generated. Is there any debugging option available??. I wasted 3 days for solving this issue.
Any help will highly be appreciated.
Thanks
I experienced this issue when the PDF file I was reading had a size of 0. Somewhere during my tests I suspect that the PDF I was working with got overwritten with empty data and it turns out that this is what was creating the permission error.
I was working from this sample.
I did some development of a custom AttributeFinder for WSO2 4.6 several years ago, and I am trying to reproduce that old development on one of my original WSO2 4.6 instances, but I cannot get the AttributeFinder to appear in the WSO2 IS Console in Extensions. I know that 4.6 is old, but I just want to get this working with 4.6 first.
I've built the AttributeFinder in Eclipse successfully
Put a copy of the JAR in E:\WSO2\wso2is-4.6.0\repository\components\lib
Put copies of ojdbc6.jar and classes12.jar into E:\WSO2\wso2is-4.6.0\repository\components\lib
[This AttributeFinder is supposed to get the attributes from an Oracle DB]
I've updated E:\WSO2\wso2is-4.6.0\repository\conf\security\entitlement.properties by adding:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
my.MyAttributeFinder.1=databaseUrl,jdbc:oracle:thin:#//192.168.0.xxx:1521/xxxorcl
my.MyAttributeFinder.2=userName,hr
my.MyAttributeFinder.3=password,XXXX
my.MyACAttributeFinder.4=driverName,oracle.jdbc.driver.OracleDriver
my.MyACAttributeFinder.5=dbTableName,DB_FILTERS
Then I restarted the WSO2 but when I got into the console and look at Extensions/Attributes, it is only showing the default attributes/attributefinder.
As I said, I had this working awhile ago, so I'm sure that the code I used to build the attribute finder class/jar is ok, and the lines I had to add into entitlement.properties above are ok, but it just looks like WSO2 IS doesn't even "know" that I have a custom attribute finder installed, so I think I must be missing some step or something.
Can anyone tell me what else I need to get WSO2 IS to "see" my custom attributes?
Thanks,
Jim
I just figure out what the problem was. I had added my lines to the default, out-of-box entitlement.properties, and in particular, I had the Designator line:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
In the default entitlement.properties, there was already only one other PIP Designator lines, something like:
...Designator.1=...
What I didn't realize is that, apparently, the Designator numbering has to be sequential!
So, when I changed the line to:
PIP.AttributeDesignators.Designator.2=my.myAttributeFinder
instead of:
PIP.AttributeDesignators.Designator.3=my.myAttributeFinder
Then, the WSO2 IS picked up my custom finder ok!
I'm trying to export PCA nugget to an HTML file using Python, but I get this error while trying to do so.
Script error (Cannot export '"Factor_Analysis":factor[model#id5YWTDKXKEW9]' with the format 'HTML')
I used the following piece of code to get the HTML output, which threw me an error but I was successfully able to export the PMML file for K-Means node with the same code [file format - XML and changed the nugget ID ].
taskrunner.exportModelToFile(stream.findByID("id7VBSU9JC1BY").createModelOutput(True), "D:\\factor_out.html", modeler.api.FileFormat.HTML)
I'm using Modeler 16. Any help on how to achieve this will be greatly appreciated.
Thanks,
Ron