title: Hive Broken pipe error
body: <p>I have been working on a project that include a hive query.</p>
  
  <blockquote>
    <p>INSERT INTO OVERWRITE .... TRANSFORM (....) USING 'python script.py' FROM .... LEFT OUTER JOIN  . . . LEFT OUTER JOIN . . . LEFT OUTER JOIN</p>
  </blockquote>
  
  <p>At the begining everything work fine until we loaded a big amount of dummy data. We just write the same records with small variations on some fields. After that we run this again and we are getting a Broken pipe error without much information. There is no log about the error, just the IOException: Broken pipe error. . . .</p>
  
  <p>To simplify the script and isolate errors we modify the script to </p>
  
  <pre><code>for line in sys.stdin.readlines():
      print line
  </code></pre>
  
  <p>to avoid any error at that level. We still have the same error.</p>