SQOOP-2642: Document ability to specify commas in --map-column-hive option
(Ze Jin via Jarek Jarcec Cecho)
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 @@
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).
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 @@
+\--hive-table <table-name>+ 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 <v>+ 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 <map>+ 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).
--------------------------------------------------------------------------
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 import ... --map-column-java id=String,value=Integer
----
+Notice that specifying commas in --map-column-hive option, you should use URL encoded
+keys and values, for example, use DECIMAL(1%2C%201) instead of DECIMAL(1, 1).
+
Sqoop will rise exception in case that some configured mapping will not be used.
Schema name handling