sqoop oracle 到hdfs

import

-m
10

--connect
   jdbc:oracle:thin:@(description=(address_list= (address=(host=10.77.xx.xx) (protocol=tcp)(port=1521))(address=(host=10.77.xx.xx)(protocol=tcp) (port=1521)) )(connect_data=(service_name= wanda))(oraclename=BH))
 --username
username

--password
password


--query
"select  日期,区域,广场id,广场名称,铺位编号,店铺id,商铺名称,品牌id,品牌名称,合同面积,销售额,业态id,业态,业种id,业种,load_date,op_time from tablename where 1=1 and $CONDITIONS "

--target-dir
/user/dm/lvxinjian/data/WANDA/T05_POS_STORESALES

--columns
日期,区域,广场id,广场名称,铺位编号,店铺id,商铺名称,品牌id,品牌名称,合同面积,销售额,业态id,业态,业种id,业种,load_date,op_time

--split-by
店铺id
</pre><pre name="code" class="java">运行使用的命令:sqoop --options-file 脚本.conf


你可能感兴趣的:(sqoop oracle 到hdfs)