[ 
https://issues.apache.org/jira/browse/HAWQ-760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307254#comment-15307254
 ] 

ASF GitHub Bot commented on HAWQ-760:
-------------------------------------

Github user ictmalili commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/679#discussion_r65126753
  
    --- Diff: tools/doc/hawqregister_help ---
    @@ -0,0 +1,101 @@
    +COMMAND NAME: hawq register
    +
    +Register parquet files generated by other system into the corrsponding 
table in HAWQ
    +
    +*****************************************************
    +SYNOPSIS
    +*****************************************************
    +
    +hawq register [-h hostname] [-p port] [-U username] <databasename> 
<tablename> <hdfspath>
    +
    +hawq register help
    +hawq register -?
    +
    +hawq register --version
    +
    +*****************************************************
    +DESCRIPTION
    +*****************************************************
    +
    +"hawq register" is a utility to register file(s) on HDFS into
    +the table in HAWQ. It moves the file in the path(if path
    +refers to a file) or files under the path(if path refers to a
    +directory) into the table directory corresponding to the table,
    +and then update the table meta data to include the files.
    +
    +To use "hawq register", HAWQ must have been started.
    +
    +Currently "hawq register" supports parquet tables only.
    +User have to make sure that the meta data of the parquet file(s)
    +and the table are consistent.
    +The table to be registered into should not be hash distributed, which
    +is created by using "distributed by" statement when creating that table.
    +
    +*****************************************************
    +Arguments
    +*****************************************************
    +
    +<databasename>
    +
    +Name of the database to be operated on.
    +
    +<tablename>
    +
    +Name of the table to be registered into.
    +
    +<hdfspath>
    +
    +The path of the file or the directory containing the files
    +that will be registered.
    +
    +*****************************************************
    +OPTIONS
    +*****************************************************
    +
    +-? (help)
    +
    +Displays the online help.
    +
    +--version
    +
    +Displays the version of this utility.
    +
    +*****************************************************
    +CONNECTION OPTIONS
    +*****************************************************
    +
    +-h hostname
    +  
    +  Specifies the host name of the machine on which the HAWQ master
    +  database server is running. If not specified, reads from the
    +  environment variable $PGHOST or defaults to localhost.
    +
    +-p port
    +  
    +  Specifies the TCP port on which the HAWQ master database server 
    +  is listening for connections. If not specified, reads from the
    +  environment variable $PGPORT or defaults to 5432.
    --- End diff --
    
    Change "or" to "which"


> Hawq register
> -------------
>
>                 Key: HAWQ-760
>                 URL: https://issues.apache.org/jira/browse/HAWQ-760
>             Project: Apache HAWQ
>          Issue Type: New Feature
>          Components: Command Line Tools
>            Reporter: Yangcheng Luo
>            Assignee: Lei Chang
>
> Users sometimes want to register data files generated by other system like 
> hive into hawq. We should add register function to support registering 
> file(s) generated by other system like hive into hawq. So users could 
> integrate their external file(s) into hawq conveniently.



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

Reply via email to