hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ictmalili <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: HAWQ-760. Add hawq register to suppor...
Date Tue, 31 May 2016 06:00:27 GMT
Github user ictmalili commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/679#discussion_r65126779
  
    --- 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.
    +
    +-U username
    +
    +  The database role name to connect as. If not specified, reads
    +  from the environment variable $PGUSER or defaults to the current
    --- End diff --
    
    change "or" to "which"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message