Repository: sqoop Updated Branches: refs/heads/trunk de2fa9a68 -> c9c3f6a3a SQOOP-2642: Document ability to specify commas in --map-column-hive option (Ze Jin via Jarek Jarcec Cecho) Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/c9c3f6a3 Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/c9c3f6a3 Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/c9c3f6a3 Branch: refs/heads/trunk Commit: c9c3f6a3a294ff495c05c62bdd4286b0f16b28c7 Parents: de2fa9a Author: Jarek Jarcec Cecho Authored: Wed Jan 27 06:35:22 2016 -0800 Committer: Jarek Jarcec Cecho Committed: Wed Jan 27 06:35:22 2016 -0800 ---------------------------------------------------------------------- src/docs/man/hive-args.txt | 4 +++- src/docs/user/hive-args.txt | 14 ++++++++------ src/docs/user/import.txt | 3 +++ 3 files changed, 14 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/c9c3f6a3/src/docs/man/hive-args.txt ---------------------------------------------------------------------- diff --git a/src/docs/man/hive-args.txt b/src/docs/man/hive-args.txt index b92a446..438c1dc 100644 --- a/src/docs/man/hive-args.txt +++ b/src/docs/man/hive-args.txt @@ -36,4 +36,6 @@ Hive options When used with --hive-import, overrides the destination table name --map-column-hive (mapping):: - Override default mapping for SQL types or input field types into Hive types for configured columns + Override default mapping for SQL types or input field types into Hive types for configured columns. + If specify commas in this argument, use URL encoded keys and values, for example, + use DECIMAL(1%2C1) instead of DECIMAL(1,1), NUMERIC(1%2C%202) instead of NUMERIC(1, 2). http://git-wip-us.apache.org/repos/asf/sqoop/blob/c9c3f6a3/src/docs/user/hive-args.txt ---------------------------------------------------------------------- diff --git a/src/docs/user/hive-args.txt b/src/docs/user/hive-args.txt index e54ee1e..441f54e 100644 --- a/src/docs/user/hive-args.txt +++ b/src/docs/user/hive-args.txt @@ -32,14 +32,16 @@ Argument Description +\--hive-table + Sets the table name to use when importing\ to Hive. +\--hive-drop-import-delims+ Drops '\n', '\r', and '\01' from string\ - fields when importing to Hive. + fields when importing to Hive. +\--hive-delims-replacement+ Replace '\n', '\r', and '\01' from string\ - fields with user defined string when importing to Hive. -+\--hive-partition-key+ Name of a hive field to partition are \ - sharded on + fields with user defined string when importing to Hive. ++\--hive-partition-key+ Name of a hive field to partition are \ + sharded on +\--hive-partition-value + String-value that serves as partition key\ - for this imported into hive in this job. + for this imported into hive in this job. +\--map-column-hive + Override default mapping from SQL type to\ - Hive type for configured columns. + Hive type for configured columns. If specify commas in\ + this argument, use URL encoded keys and values, for example,\ + use DECIMAL(1%2C%201) instead of DECIMAL(1, 1). -------------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/sqoop/blob/c9c3f6a3/src/docs/user/import.txt ---------------------------------------------------------------------- diff --git a/src/docs/user/import.txt b/src/docs/user/import.txt index 462d84b..fbb32f5 100644 --- a/src/docs/user/import.txt +++ b/src/docs/user/import.txt @@ -328,6 +328,9 @@ Sqoop is expecting comma separated list of mapping in form =