Hive
  1. Hive
  2. HIVE-4489

beeline always return the same error message twice

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.12.0
    • Component/s: Clients
    • Labels:

      Description

      Beeline always returns the same error message twice. for example, if I try to create a table a2 which already exists, it prints out two exact same messages and it is not quite user friendly.

      beeline> !connect jdbc:hive2://localhost:10000 scott tiger org.apache.hive.jdbc.HiveDriver
      Connecting to jdbc:hive2://localhost:10000
      Connected to: Hive (version 0.10.0)
      Driver: Hive (version 0.10.0-cdh4.2.1)
      Transaction isolation: TRANSACTION_REPEATABLE_READ
      0: jdbc:hive2://localhost:10000> create table a2 (value int);
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
      Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
      
      1. HIVE-4489.patch
        0.6 kB
        Chaoyu Tang

        Issue Links

          Activity

          Chaoyu Tang created issue -
          Chaoyu Tang made changes -
          Field Original Value New Value
          Description Beeline always returns the same error message twice. for example, if I try to create a table a2 which already exists, it prints out two exact same messages and it is not quite user friendly.
          {{{
          beeline> !connect jdbc:hive2://localhost:10000 scott tiger org.apache.hive.jdbc.HiveDriver
          Connecting to jdbc:hive2://localhost:10000
          Connected to: Hive (version 0.10.0)
          Driver: Hive (version 0.10.0-cdh4.2.1)
          Transaction isolation: TRANSACTION_REPEATABLE_READ
          0: jdbc:hive2://localhost:10000> create table a2 (value int);
          Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
          Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
          }}}
          Beeline always returns the same error message twice. for example, if I try to create a table a2 which already exists, it prints out two exact same messages and it is not quite user friendly.
          {code}
          beeline> !connect jdbc:hive2://localhost:10000 scott tiger org.apache.hive.jdbc.HiveDriver
          Connecting to jdbc:hive2://localhost:10000
          Connected to: Hive (version 0.10.0)
          Driver: Hive (version 0.10.0-cdh4.2.1)
          Transaction isolation: TRANSACTION_REPEATABLE_READ
          0: jdbc:hive2://localhost:10000> create table a2 (value int);
          Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
          Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask (state=08S01,code=1)
          {code}
          Chaoyu Tang made changes -
          Fix Version/s 0.11.0 [ 12323587 ]
          Hide
          Chaoyu Tang added a comment -

          removed duplicated error logging in the low level of exception catch block and only the top level catch block print out the error.

          Show
          Chaoyu Tang added a comment - removed duplicated error logging in the low level of exception catch block and only the top level catch block print out the error.
          Chaoyu Tang made changes -
          Attachment HIVE-4489.patch [ 12581698 ]
          Chaoyu Tang made changes -
          Remote Link This issue links to "Patch Review (Web Link)" [ 12193 ]
          Chaoyu Tang made changes -
          Attachment HIVE-4489.patch [ 12581698 ]
          Chaoyu Tang made changes -
          Attachment HIVE-4489.patch [ 12581759 ]
          Hide
          Chaoyu Tang added a comment -

          Could someone review and commit it if it is a proper fix? Thanks. It is to fix the issue raised by some beeline users.

          Show
          Chaoyu Tang added a comment - Could someone review and commit it if it is a proper fix? Thanks. It is to fix the issue raised by some beeline users.
          Hide
          Ashutosh Chauhan added a comment -

          +1

          Show
          Ashutosh Chauhan added a comment - +1
          Ashutosh Chauhan made changes -
          Assignee Chaoyu Tang [ ctang.ma ]
          Hide
          Ashutosh Chauhan added a comment -

          Committed to trunk. Thanks, Chaoyu!

          Show
          Ashutosh Chauhan added a comment - Committed to trunk. Thanks, Chaoyu!
          Ashutosh Chauhan made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 0.12.0 [ 12324312 ]
          Resolution Fixed [ 1 ]
          Hide
          Hudson added a comment -

          Integrated in Hive-trunk-hadoop2 #223 (See https://builds.apache.org/job/Hive-trunk-hadoop2/223/)
          HIVE-4489 : beeline always return the same error message twice (Chaoyu Tang via Ashutosh Chauhan) (Revision 1488741)

          Result = ABORTED
          hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1488741
          Files :

          • /hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
          Show
          Hudson added a comment - Integrated in Hive-trunk-hadoop2 #223 (See https://builds.apache.org/job/Hive-trunk-hadoop2/223/ ) HIVE-4489 : beeline always return the same error message twice (Chaoyu Tang via Ashutosh Chauhan) (Revision 1488741) Result = ABORTED hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1488741 Files : /hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
          Hide
          Hudson added a comment -

          Integrated in Hive-trunk-h0.21 #2126 (See https://builds.apache.org/job/Hive-trunk-h0.21/2126/)
          HIVE-4489 : beeline always return the same error message twice (Chaoyu Tang via Ashutosh Chauhan) (Revision 1488741)

          Result = FAILURE
          hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1488741
          Files :

          • /hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
          Show
          Hudson added a comment - Integrated in Hive-trunk-h0.21 #2126 (See https://builds.apache.org/job/Hive-trunk-h0.21/2126/ ) HIVE-4489 : beeline always return the same error message twice (Chaoyu Tang via Ashutosh Chauhan) (Revision 1488741) Result = FAILURE hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1488741 Files : /hive/trunk/beeline/src/java/org/apache/hive/beeline/Commands.java
          Hide
          Ashutosh Chauhan added a comment -

          This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.

          Show
          Ashutosh Chauhan added a comment - This issue has been fixed and released as part of 0.12 release. If you find further issues, please create a new jira and link it to this one.
          Ashutosh Chauhan made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Chaoyu Tang
              Reporter:
              Chaoyu Tang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development