<?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: Broken Pipes in NiFi in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132917#M51812</link>
    <description>&lt;P&gt;I am having this same issue on ExecuteStreamCommand. Do you have recommendation on how to fix it? &lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 23:21:26 GMT</pubDate>
    <dc:creator>zachary_atkinso</dc:creator>
    <dc:date>2017-10-05T23:21:26Z</dc:date>
    <item>
      <title>Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132910#M51805</link>
      <description>&lt;P&gt;This is the latests HDF 2.x.&lt;/P&gt;&lt;P&gt;Sometimes it happens in ExecuteStreamCommand.  If I have a flow running for a few days continuously there will be a few a day.&lt;/P&gt;&lt;PRE&gt;ion: Broken pipe: java.io.IOException: Broken pipe
2017-01-17 18:42:46,932 ERROR [Thread-617894] o.a.n.p.standard.ExecuteStreamCommand
java.io.IOException: Broken pipe
at java.io.FileOutputStream.writeBytes(Native Method) ~[na:1.8.0_77]
at java.io.FileOutputStream.write(FileOutputStream.java:326) ~[na:1.8.0_77]
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122) ~[na:1.8.0_77]
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122) ~[na:1.8.0_77]
at org.apache.nifi.stream.io.StreamUtils.copy(StreamUtils.java:36) ~[nifi-utils-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.processors.standard.ExecuteStreamCommand$2.run(ExecuteStreamCommand.java:489) ~[nifi-standard-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]&lt;/PRE&gt;&lt;P&gt;PutHiveQL will happen usually any time it first starts up&lt;/P&gt;&lt;PRE&gt;2017-01-17 18:42:37,563 ERROR [Timer-Driven Process Thread-10] o.apache.nifi.processors.hive.PutHiveQL PutHiveQL[id=71b732e9-f140-109c-a315-47f0af695760] Failed to update Hive for StandardFlowFileRecord[uuid=d95fadbd-d349-4efe-88da-cb76c3f2aca8,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1484678529444-3613, container=default, section=541], offset=596859, length=425],offset=0,name=1653249247047835.json.orc,size=425] due to java.sql.SQLException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe; it is possible that retrying the operation will succeed, so routing to retry: java.sql.SQLException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
2017-01-17 18:42:37,568 ERROR [Timer-Driven Process Thread-10] o.apache.nifi.processors.hive.PutHiveQL
java.sql.SQLException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
at org.apache.hive.jdbc.HiveStatement.runAsyncOnServer(HiveStatement.java:305) ~[hive-jdbc-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.hive.jdbc.HiveStatement.execute(HiveStatement.java:238) ~[hive-jdbc-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.hive.jdbc.HivePreparedStatement.execute(HivePreparedStatement.java:98) ~[hive-jdbc-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172) ~[commons-dbcp-1.4.jar:1.4]
at org.apache.nifi.processors.hive.PutHiveQL.onTrigger(PutHiveQL.java:161) ~[nifi-hive-processors-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) [nifi-api-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.0.2.1.1.0-2.jar:1.1.0.2.1.1.0-2]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_77]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]
Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:147) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.transport.TTransport.write(TTransport.java:107) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.transport.TSaslTransport.writeLength(TSaslTransport.java:391) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.transport.TSaslTransport.flush(TSaslTransport.java:499) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.transport.TSaslClientTransport.flush(TSaslClientTransport.java:37) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:73) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:62) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.hive.service.cli.thrift.TCLIService$Client.send_ExecuteStatement(TCLIService.java:223) ~[hive-service-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at org.apache.hive.service.cli.thrift.TCLIService$Client.ExecuteStatement(TCLIService.java:215) ~[hive-service-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at sun.reflect.GeneratedMethodAccessor1087.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]
at org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveConnection.java:1363) ~[hive-jdbc-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
at com.sun.proxy.$Proxy211.ExecuteStatement(Unknown Source) ~[na:na]
at org.apache.hive.jdbc.HiveStatement.runAsyncOnServer(HiveStatement.java:296) ~[hive-jdbc-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
... 17 common frames omitted
Caused by: java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method) ~[na:1.8.0_77]
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) ~[na:1.8.0_77]
at java.net.SocketOutputStream.write(SocketOutputStream.java:153) ~[na:1.8.0_77]
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) ~[na:1.8.0_77]
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126) ~[na:1.8.0_77]
at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport.java:145) ~[hive-exec-1.2.1000.2.5.0.0-1245.jar:1.2.1000.2.5.0.0-1245]
... 31 common frames omitted&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2017 02:45:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132910#M51805</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-01-18T02:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132911#M51806</link>
      <description>&lt;P&gt;In the HiveConnectionPool you specified for PutHiveQL, did you supply a Validation Query? This query is performed on a retrieved connection to ensure that it is legitimate (the error you describe often happens with idle connections in Hive). If the query fails, the connection will be recycled and a new one will be retrieved.&lt;/P&gt;&lt;P&gt;I haven't tried this sample query but something like "SELECT 1 from myExistingTable" might work. The basic idea is that the query takes negligible time but still opens a connection.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 02:55:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132911#M51806</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-01-18T02:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132912#M51807</link>
      <description>&lt;P&gt;I will add a validation query&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 02:56:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132912#M51807</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-01-18T02:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132913#M51808</link>
      <description>&lt;P&gt;getting errors on the validation query&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:09:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132913#M51808</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-01-18T09:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132914#M51809</link>
      <description>&lt;P&gt;Was the problem alleviated after the bad connections were returned?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 02:27:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132914#M51809</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-01-19T02:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132915#M51810</link>
      <description>&lt;P&gt;after restart it was ok&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 22:08:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132915#M51810</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-01-19T22:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132916#M51811</link>
      <description>&lt;P&gt;this also happens in executestreamcommand when calling a shell script&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 06:42:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132916#M51811</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2017-03-16T06:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132917#M51812</link>
      <description>&lt;P&gt;I am having this same issue on ExecuteStreamCommand. Do you have recommendation on how to fix it? &lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 23:21:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132917#M51812</guid>
      <dc:creator>zachary_atkinso</dc:creator>
      <dc:date>2017-10-05T23:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132918#M51813</link>
      <description>&lt;P&gt;Not sure if this is considered a fix...but in my situation I think NiFi was accessing files on the script I called to quickly on the Linux box. There was no issue with output files data being incorrect so I just turned off errors on the ExecuteStreamCommand processor. Running without issue as far as I can tell.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 23:50:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132918#M51813</guid>
      <dc:creator>zachary_atkinso</dc:creator>
      <dc:date>2017-10-05T23:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Broken Pipes in NiFi</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132919#M51814</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/78305/broken-pipes-in-nifi.html#"&gt;@Timothy Spann &lt;/A&gt;&lt;A href="https://community.hortonworks.com/questions/78305/broken-pipes-in-nifi.html#"&gt;@Matt Burgess&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for this very helpful query.&lt;/P&gt;&lt;P&gt;in our case, the validation query seemed to have worked for the flow to function properly.&lt;/P&gt;&lt;P&gt;For safe measures, we also put a retry queue on the PutHiveQL Processor.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 07:35:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Broken-Pipes-in-NiFi/m-p/132919#M51814</guid>
      <dc:creator>mnath</dc:creator>
      <dc:date>2018-03-02T07:35:45Z</dc:date>
    </item>
  </channel>
</rss>

