Re: From an external Java program, I want to send some XML to NiFi.

2016-11-30 Thread Andy LoPresto
StandardSSLContextService is necessary if you want the incoming HTTP 
connections to be over HTTPS (i.e. encrypted and secured). If you want this 
feature, you will need to configure an SSL controller service with your 
keystore and truststore files and the appropriate passwords.


Andy LoPresto
alopre...@apache.org
alopresto.apa...@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Nov 30, 2016, at 10:46 AM, srini  wrote:
> 
> Thanks Andy, Now StandardHttpContextMap is good.
> 
> I still have this error with HandleHttpRequest. StandardSSLContextService is
> invalid:
> 
> "'SSL Context Service' validated against
> 'c6b03cd2-69af-4a04-3ded-b3a1d39c07a6' is invalid because Invalid Controller
> Service: c6b03cd2-69af-4a04-3ded-b3a1d39c07a6 is not a valid Controller
> Service Identifier or does not reference the correct type of Controller
> Service"
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/From-an-external-Java-program-I-want-to-send-some-XML-to-NiFi-tp14059p14063.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: From an external Java program, I want to send some XML to NiFi.

2016-11-30 Thread srini
Thanks Andy, Now StandardHttpContextMap is good.

I still have this error with HandleHttpRequest. StandardSSLContextService is
invalid:

"'SSL Context Service' validated against
'c6b03cd2-69af-4a04-3ded-b3a1d39c07a6' is invalid because Invalid Controller
Service: c6b03cd2-69af-4a04-3ded-b3a1d39c07a6 is not a valid Controller
Service Identifier or does not reference the correct type of Controller
Service"



--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/From-an-external-Java-program-I-want-to-send-some-XML-to-NiFi-tp14059p14063.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.


Re: From an external Java program, I want to send some XML to NiFi.

2016-11-30 Thread Andy LoPresto
Hi Srini,

To move data from an external Java process to NiFi, there are a number of 
possible solutions. If the data can be serialized to disk, simply writing it to 
a file in the Java process and using the GetFile processor in NiFi is the 
easiest way.

If you want to use HandleHTTPRequest, you will need to enable the 
StandardHttpContextMap controller service [1], as indicated by the error 
message you posted. It appears you have already created it, but you have not 
yet enabled it. After entering the Controller Services management dialog, there 
should be a lightning bolt icon on the right that you can click to enable this 
controller service.

[1] 
https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Controller_Services

Andy LoPresto
alopre...@apache.org
alopresto.apa...@gmail.com
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Nov 30, 2016, at 8:15 AM, srini  wrote:
> 
> Here is my requirement:
> From an external Java program, I want to send some XML to NiFi. Whenever
> NiFi gets that XML, it does something.
> 
> 1) What NiFi process I need to use to get this request from Java.
> 
> So far, I learned how to start/stop the flow and process from Java. I am
> using NiFi 1.0.
> 
> 2) I have tried to use HandleHttpRequest, but it is showing this Error:
> 
> HTTP Context Map' validated against 'StandardHttpContextMap' is invalid
> because Controller Service
> StandardHttpContextMap[id=2c5ddba9-ed6a-4c5f-d911-bfd6468bf19b] is disabled.
> 
> Thanks
> Srini
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/From-an-external-Java-program-I-want-to-send-some-XML-to-NiFi-tp14059.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.



signature.asc
Description: Message signed with OpenPGP using GPGMail


From an external Java program, I want to send some XML to NiFi.

2016-11-30 Thread srini
Here is my requirement:
>From an external Java program, I want to send some XML to NiFi. Whenever
NiFi gets that XML, it does something. 

1) What NiFi process I need to use to get this request from Java. 

So far, I learned how to start/stop the flow and process from Java. I am
using NiFi 1.0.

2) I have tried to use HandleHttpRequest, but it is showing this Error:

HTTP Context Map' validated against 'StandardHttpContextMap' is invalid
because Controller Service
StandardHttpContextMap[id=2c5ddba9-ed6a-4c5f-d911-bfd6468bf19b] is disabled.

Thanks
Srini



--
View this message in context: 
http://apache-nifi-developer-list.39713.n7.nabble.com/From-an-external-Java-program-I-want-to-send-some-XML-to-NiFi-tp14059.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.