Lili Ma created HAWQ-1050:
-----------------------------

             Summary: hawq register help can not return correct result 
indicating the help information
                 Key: HAWQ-1050
                 URL: https://issues.apache.org/jira/browse/HAWQ-1050
             Project: Apache HAWQ
          Issue Type: Bug
            Reporter: Lili Ma
            Assignee: Lei Chang


hawq register help can not return correct result indicating the help 
information.
should keep help as a keyword and return same results as hawq register --help.

{code}
malilis-MacBook-Pro:~ malili$ hawq register help
20160914:09:56:37:007364 hawqregister:malilis-MacBook-Pro:malili-[INFO]:-Usage: 
hadoop [--config confdir] COMMAND
       where COMMAND is one of:
  fs                   run a generic filesystem user client
  version              print the version
  jar <jar>            run a jar file
  checknative [-a|-h]  check native hadoop and compression libraries 
availability
  distcp <srcurl> <desturl> copy file or directories recursively
  archive -archiveName NAME -p <parent path> <src>* <dest> create a hadoop 
archive
  classpath            prints the class path needed to get the
  credential           interact with credential providers
                       Hadoop jar and the required libraries
  daemonlog            get/set the log level for each daemon
  trace                view and modify Hadoop tracing settings
 or
  CLASSNAME            run the class named CLASSNAME

Most commands print help when invoked w/o parameters.
Traceback (most recent call last):
  File "/usr/local/hawq/bin/hawqregister", line 398, in <module>
    check_hash_type(dburl, tablename) # Usage1 only support randomly 
distributed table
  File "/usr/local/hawq/bin/hawqregister", line 197, in check_hash_type
    logger.error('Table not found in table gp_distribution_policy.' % tablename)
TypeError: not all arguments converted during string formatting
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to