<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Nifi - Listen Syslog - getting failed @OnScheduled in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214220#M74542</link>
    <description>&lt;P&gt;You might start by using the `logger` command to send some sample syslog messages. Don't forget to add the `--port 1514` argument. Try running that on the Nifi host, and then on a host that's external to your Nifi cluster. If it works from a Nifi host but not from outside Nifi, you might need to tweak iptables or a firewall rule.&lt;/P&gt;&lt;P&gt;You might try using tcpdump to monitor network traffic for port 1514.&lt;/P&gt;&lt;P&gt;I'd also recommend running a `tail -f /var/log/nifi/nifi-app.log` on the Nifi host(s) while you're running the syslog listener to see if there are any interesting messages.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 08:12:39 GMT</pubDate>
    <dc:creator>awoolford</dc:creator>
    <dc:date>2018-02-14T08:12:39Z</dc:date>
    <item>
      <title>Nifi - Listen Syslog - getting failed @OnScheduled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214217#M74539</link>
      <description>&lt;P&gt;We are trying to capture the syslog in Nifi and it shows the following error on ListenSyslog processor. Set up the UDP port 514 on the processor as well. Any pointers?&lt;/P&gt;&lt;P&gt;In nifi-app.log,&lt;/P&gt;&lt;P&gt;ERROR [StandardProcessScheduler Thread-3] o.a.n.controller.StandardProcessorNode Failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1483)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode.access$000(StandardProcessorNode.java:103)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode$1.run(StandardProcessorNode.java:1302)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;/P&gt;&lt;P&gt;at java.lang.Thread.run(Thread.java:748)&lt;/P&gt;&lt;P&gt;Caused by: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException&lt;/P&gt;&lt;P&gt;at java.util.concurrent.FutureTask.report(FutureTask.java:122)&lt;/P&gt;&lt;P&gt;at java.util.concurrent.FutureTask.get(FutureTask.java:206)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode.invokeTaskAsCancelableFuture(StandardProcessorNode.java:1466)&lt;/P&gt;&lt;P&gt;... 9 common frames omitted&lt;/P&gt;&lt;P&gt;Caused by: java.lang.reflect.InvocationTargetException: null&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;/P&gt;&lt;P&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1306)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1302)&lt;/P&gt;&lt;P&gt;... 6 common frames omitted&lt;/P&gt;&lt;P&gt;Caused by: java.net.SocketException: Permission denied&lt;/P&gt;&lt;P&gt;at sun.nio.ch.Net.bind0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.nio.ch.Net.bind(Net.java:433)&lt;/P&gt;&lt;P&gt;at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:691)&lt;/P&gt;&lt;P&gt;at sun.nio.ch.DatagramSocketAdaptor.bind(DatagramSocketAdaptor.java:91)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.processor.util.listen.dispatcher.DatagramChannelDispatcher.open(DatagramChannelDispatcher.java:99)&lt;/P&gt;&lt;P&gt;at org.apache.nifi.processors.standard.ListenSyslog.onScheduled(ListenSyslog.java:322)&lt;/P&gt;&lt;P&gt;... 16 common frames omitted&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 06:41:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214217#M74539</guid>
      <dc:creator>jayanthimala_ja</dc:creator>
      <dc:date>2018-02-14T06:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - Listen Syslog - getting failed @OnScheduled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214218#M74540</link>
      <description>&lt;P&gt;Port 514 is a privileged port. This means it can only be accessed by a superuser.&lt;/P&gt;&lt;P&gt;Since there are security implications to running Nifi as root, it is typically run as the nifi user.&lt;/P&gt;&lt;P&gt;There are a couple of options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;run the syslog listener on a port &amp;gt; 1024, e.g. port 1514 instead of 514.&lt;/LI&gt;&lt;LI&gt;use iptables to forward port 514 external to a non-privileged internal port, and have the syslog listener listen to that port.&lt;/LI&gt;&lt;LI&gt;use authbind to allow the Nifi user permissions to bind to port 514.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 14 Feb 2018 06:56:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214218#M74540</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2018-02-14T06:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - Listen Syslog - getting failed @OnScheduled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214219#M74541</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11639/awoolford.html" nodeid="11639"&gt;@Alex Woolford&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did the option 1 and the error is no longer there. But still the data is not getting loaded in the syslog loader.&lt;/P&gt;&lt;P&gt;What could be wrong and is there any basic troubleshooting i can do?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 07:55:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214219#M74541</guid>
      <dc:creator>jayanthimala_ja</dc:creator>
      <dc:date>2018-02-14T07:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - Listen Syslog - getting failed @OnScheduled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214220#M74542</link>
      <description>&lt;P&gt;You might start by using the `logger` command to send some sample syslog messages. Don't forget to add the `--port 1514` argument. Try running that on the Nifi host, and then on a host that's external to your Nifi cluster. If it works from a Nifi host but not from outside Nifi, you might need to tweak iptables or a firewall rule.&lt;/P&gt;&lt;P&gt;You might try using tcpdump to monitor network traffic for port 1514.&lt;/P&gt;&lt;P&gt;I'd also recommend running a `tail -f /var/log/nifi/nifi-app.log` on the Nifi host(s) while you're running the syslog listener to see if there are any interesting messages.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 08:12:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214220#M74542</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2018-02-14T08:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi - Listen Syslog - getting failed @OnScheduled</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214221#M74543</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11639/awoolford.html" nodeid="11639"&gt;@Alex Woolford&lt;/A&gt;  Used option2 and set the Nifi to listen on that port. Works fine. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 05:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Listen-Syslog-getting-failed-OnScheduled/m-p/214221#M74543</guid>
      <dc:creator>jayanthimala_ja</dc:creator>
      <dc:date>2018-02-27T05:12:01Z</dc:date>
    </item>
  </channel>
</rss>

