mvsqoop-env-template.shsqoop-env.shexport HADOOP_COMMON_HOME=/Users/babywang/Documents/reserch/studySummary/module/hadoop-2.8.5#Set path to where hadoop-*-core.jar is available#export HADOOP_MAPRED_HOME=export HADOOP_MAPRED_HOME=/Users/babywang/Documents/reserch/studySummary/module/hadoop-2.8.5#set the path to where bin/hbase is available#export HBASE_HOME=exportHBASE_HOME/Users/babywang/Documents/reserch/studySummary/module/hbase/hbase-2.3.0#Set the path to where bin/hive is available#export HIVE_HOME=export HIVE_HOME=/Users/babywang/Documents/reserch/studySummary/bigdata/hive/apache-hive-2.3.6-bin#Set the path for where zookeper config dir is#export ZOOCFGDIR=export ZOOKEEPER_HOME=/Users/babywang/Documents/reserch/middleware/zk/zookeeper-3.5.5export ZOOCFGDIR=$ZOOKEEPER_HOME/../zkDataDir
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 , , and \01 from string fields when importing to Hive.
--hive-delims-replacement
Replace , , 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).
--column-family <family>
Sets the target column family for the import
--hbase-create-table
If specified, create missing HBase tables
--hbase-row-key <col>
Specifies which input column to use as the row key
In case, if input table contains composite
key, then
comma-separated list of composite key
attributes
--hbase-table <table-name>
Specifies an HBase table to use as the target instead of HDFS