FAQ
Author: hashutosh
Date: Thu Mar 20 22:52:16 2014
New Revision: 1579811

URL: http://svn.apache.org/r1579811
Log:
HIVE-6652 : Beeline gives evasive error message for any unrecognized command line arguement (Xuefu Zhang via Ashutosh Chauhan)

Modified:
     hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java
     hive/trunk/beeline/src/main/resources/BeeLine.properties

Modified: hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java
URL: http://svn.apache.org/viewvc/hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java?rev=1579811&r1=1579810&r2=1579811&view=diff
==============================================================================
--- hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java (original)
+++ hive/trunk/beeline/src/java/org/apache/hive/beeline/BeeLine.java Thu Mar 20 22:52:16 2014
@@ -567,7 +567,7 @@ public class BeeLine {
        } else if (args[i].equals("-f")) {
          getOpts().setScriptFile(args[i++ + 1]);
        } else {
- files.add(args[i]);
+ return error(loc("unrecognized-argument", args[i]));
        }
      }


Modified: hive/trunk/beeline/src/main/resources/BeeLine.properties
URL: http://svn.apache.org/viewvc/hive/trunk/beeline/src/main/resources/BeeLine.properties?rev=1579811&r1=1579810&r2=1579811&view=diff
==============================================================================
--- hive/trunk/beeline/src/main/resources/BeeLine.properties (original)
+++ hive/trunk/beeline/src/main/resources/BeeLine.properties Thu Mar 20 22:52:16 2014
@@ -7,6 +7,7 @@ enter-for-more: [ Hit "enter" for more (
  no-manual: Could not find manual resource.
  executing-command: Executing command: {0}
  unknown-command: Unknown command: {0}
+unrecognized-argument: Unrecognized argument: {0}
  autocommit-needs-off: Operation requires that autocommit be turned off.
  no-current-connection: No current connection
  connection-is-closed: Connection is closed

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedMar 20, '14 at 10:52p
activeMar 20, '14 at 10:52p
posts1
users1
websitehive.apache.org

1 user in discussion

Hashutosh: 1 post

People

Translate

site design / logo © 2021 Grokbase