| |
| //// |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| //// |
| |
| |
| .Hive arguments: |
| [grid="all"] |
| `-----------------------------`------------------------------------------- |
| Argument Description |
| -------------------------------------------------------------------------- |
| +\--hive-home <dir>+ Override +$HIVE_HOME+ |
| +\--hive-import+ Import tables into Hive (Uses Hive's \ |
| default delimiters if none are set.) |
| +\--hive-overwrite+ Overwrite existing data in the Hive table. |
| +\--create-hive-table+ If set, then the job will fail if the target hive |
| table exists. By default this property is false. |
| +\--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. |
| +\--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 |
| +\--hive-partition-value <v>+ String-value that serves as partition key\ |
| for this imported into hive in this job. |
| +\--map-column-hive <map>+ Override default mapping from SQL type to\ |
| 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). Note that in case of Parquet file format users have\ |
| to use +\--map-column-java+ instead of this option. |
| +\--hs2-url+ The JDBC connection string to HiveServer2 as you would specify in Beeline. If you use this option with \ |
| --hive-import then Sqoop will try to connect to HiveServer2 instead of using Hive CLI. |
| +\--hs2-user+ The user for creating the JDBC connection to HiveServer2. The default is the current OS user. |
| +\--hs2-keytab+ The path to the keytab file of the user connecting to HiveServer2. If you choose another \ |
| HiveServer2 user (with --hs2-user) then --hs2-keytab has to be also specified otherwise it can be omitted. |
| +\--external-table-dir+ Used to specify that the table is external, not managed. \ |
| Has to be specified with the +\--hive-import+ option. |
| -------------------------------------------------------------------------- |
| |