本帖最后由 nextuser 于 2017-8-23 19:45 编辑
这个应该是可以设置。由于没有环境,我这里只是贴出,楼主自己测试下。
sqoop:000> help
For information about Sqoop, visit: http://sqoop.apache.org/
Available commands:
exit (\x ) Exit the shell
history (\H ) Display, manage and recall edit-line history
help (\h ) Display this help message
set (\st ) Configure various client options and settings
show (\sh ) Display various objects and configuration options
create (\cr ) Create new object in Sqoop repository
delete (\d ) Delete existing object in Sqoop repository
update (\up ) Update objects in Sqoop repository
clone (\cl ) Create new object based on existing one
start (\sta) Start job
stop (\stp) Stop job
status (\stu) Display status of a job
enable (\en ) Enable object in Sqoop repository
disable (\di ) Disable object in Sqoop repository
上面应该可以通过set来设置。
#########################
下面是创建job,如下面红字部分,是可选的
create job -f 3 -t 4
Creating job for links with from id 3 and to id 4
Please fill following values to create new job object
Name: testsqoop #Name必须唯一
From database configuration
Schema name: mytest #必填,数据库名称
Table name: balance #必填,表名
Table SQL statement: #可选
Table column names: #可选
Partition column name: #可选
Null value allowed for the partition column: #可选
Boundary query: #可选
Incremental read
Check column: #可选
Last value: #可选
To HDFS configuration
Override null value: #可选
Null value:
Output format:
0 : TEXT_FILE
1 : SEQUENCE_FILE
Choose: 0 #必选
Compression format:
0 : NONE
1 : DEFAULT
2 : DEFLATE
3 : GZIP
4 : BZIP2
5 : LZO
6 : LZ4
7 : SNAPPY
8 : CUSTOM
Choose: 0 #必选
Custom compression format:
Output directory: /user/ubuntu/lucius/new_balance #必填
Append mode:
Throttling resources
Extractors: 2 #可选,对应mapreduce的job中的map的数量
Loaders: 1 #可选,对应mapreduce的job中的reduce的数量
New job was successfully created with validation status OK and persistent id 5
|