Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-12551

impala-shell should handle broken pipe error gracefully

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Impala 4.3.0
    • None
    • None
    • ghx-label-10

    Description

      Ran query inline with impala-shell.sh and stumble on broken pipe error message like this:

      $ impala-shell.sh -d tpcds_parquet -q "show partitions store_sales;" | head -n 10 > /tmp/test.out
      Starting Impala Shell with no authentication using Python 2.7.16
      Warning: live_progress only applies to interactive shell sessions, and is being skipped for now.
      Opened TCP connection to localhost:21050
      Connected to localhost:21050
      Server version: impalad version 4.4.0-SNAPSHOT DEBUG (build 67ed00560d0df2282731dc47a58fb3d679ffb99b)
      Query: use `tpcds_parquet`
      Query: use `tpcds_parquet`
      Query: show partitions store_sales
      Unknown Exception : [Errno 32] Broken pipe
      Traceback (most recent call last):
        File "/home/rsuminto/workspace/impala/shell/impala_shell.py", line 1389, in _execute_stmt
          self.output_stream.write(rows)
        File "/home/rsuminto/workspace/impala/shell/shell_output.py", line 187, in write
          print(formatted_data)
      IOError: [Errno 32] Broken pipe
      Could not execute command: show partitions store_sales

      impala-shell should gracefully handle broken pipe error like this.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rizaon Riza Suminto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: