BookmarkSubscribeRSS Feed
jovic92
Obsidian | Level 7

Hi everyone, 

 

I have a problem with sending data from Apache NiFi to the Source window in ESP. 

Field "Record Schema" is required, but not sure what to input there. 

 

That question mark gives me an explanation about the field that I'm not really getting:

Record Schema

The AVRO schema for input records. If the schema is not set, it generates an AVRO schema from the publish target Source window in the ESP model.

You can get the AVRO schema from a running event stream processing model through the REST interface.

 

What is AVRO schema and how to run ESP model through the REST interface?

 

https://documentation.sas.com/?docsetId=espcases&docsetTarget=p1pyldv5uiyl2wn15ofigbx6qbd1.htm&docse...

 

nifi_problem.png

 

Any help is welcomed. Thanks in advance

5 REPLIES 5
AndyT_SAS
SAS Employee

You can get the AVRO format of an ESP window's schema using this REST request:

http://hostname:http_port/SASESP/window?name=xxxxx&schema=true&avro=true

 

Substitute the window name you are trying to publish to for xxxxx.  

 

But if the Record Schema isn't specified, ESP should connect to the running project and obtain the schema for you.  Is the ESP project up when you try to start the processor, it should connect ok.  What error message do you get?

jovic92
Obsidian | Level 7

Hi @AndyT_SAS

 

Sorry, I could not answer earlier, I was on a trip.

 

Here is the screenshot

 record_schema_error.png

 

And yes, ESP engine is started, the project is started, data is coming if I ingest it from files (after created files from Nifi, because PutESP wasn't working). 

 

Thanks for your responses, It means a lot to me.

 

Best regards,

Sinisa 

AndyT_SAS
SAS Employee

Hi Sinisa,

I'm not sure what is happening here.  I'm going to create a track for you and we can investigate it from there.  You will get an email from the track. 

Thanks,

Andy

jovic92
Obsidian | Level 7
@AndyT_SAS

Thanks Andy, I will answer the questions from the track as soon as I sit in front of my laptop.

Also, I have something else to ask, it is more logical about windows in ESP, which should I use in my particular situation. I have to open a new question, not to ask in this one?

Thank you very much, once again.

Cheers,
AndyT_SAS
SAS Employee

I would open a new question.  That way the discussions don't get confusing for someone else who finds this thread in the future.

Whether you're already using SAS Event Stream Processing or thinking about it, this is where you can connect with your peers, ask questions and find resources.

 

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1641 views
  • 2 likes
  • 2 in conversation