hawq-dev mailing list archives

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

    https://github.com/apache/incubator-hawq/pull/679#discussion_r64878023
  
    --- Diff: tools/doc/hawqregister_help ---
    @@ -0,0 +1,97 @@
    +COMMAND NAME: hawq register
    +
    +Register parquet files generated by other system into the corrsponding table in hawq
    +
    +*****************************************************
    +SYNOPSIS
    +*****************************************************
    +
    +hawq extract [-h hostname] [-p port] [-U username] <databasename> <tablename>
<hdfspath>
    +
    +hawq extract help 
    +hawq extract -? 
    +
    +hawq extract --version
    +
    +*****************************************************
    +DESCRIPTION
    +*****************************************************
    +
    +Hawq register si a utility to register file(s) in hdfs into
    +the table in hawq. It will move the file in the path(if path
    +refers to a file) or files under the path(if path refers to a
    +directory) into a new place corresponding to the table <tablename>,
    +and then update the meatadata in the table.
    +
    +To use hawq register, HAWQ must have been started.
    +
    +Currently hawq register supports parquet file(s) and table only.
    +User have to make sure that the structure of the parquet file(s)
    +and the table are the same.
    +
    +*****************************************************
    +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
    +  system user name.
    +
    +*****************************************************
    +EXAMPLES
    +*****************************************************
    +
    +Run hawq register to register a parquet file with path '/temp/hive.paq' 
    +in hdfs generated by hive into table 'p' in hawq, which is in the
    +database named 'postgres'.
    +Assume the location of the database is 'hdfs://localhost:8020/hawq_default',
    +tablespace id is '16385', database id is '16387', table filenode id is '77160'.
    +
    +$ hawq register posrgres p /temp/hive.paq
    --- End diff --
    
    typo here: posrgres => postgres


---
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