csv建表语句.sql 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. DROP TABLE IF EXISTS shanghailifeecif.policy_information;
  2. CREATE TABLE shanghailifeecif.policy_information(
  3. contno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  4. riskcode varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  5. riskname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  6. riskperiod varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  7. risktype varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  8. payintv varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  9. security varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  10. payendyear decimal(10,2) DEFAULT NULL,
  11. payendyearflag varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  12. insuyear decimal(10,2) DEFAULT NULL,
  13. insuyearflag varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  14. paycount decimal(10,2) DEFAULT NULL,
  15. signdate string DEFAULT NULL,
  16. cvalidate string DEFAULT NULL,
  17. enddate string DEFAULT NULL,
  18. modifydate string DEFAULT NULL,
  19. prem decimal(10,2) DEFAULT NULL,
  20. appflag varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  21. customerno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  22. name varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  23. sex varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  24. birthday string DEFAULT NULL,
  25. idtype varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  26. idno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  27. insuredno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  28. insuredname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  29. insuredsex varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  30. insuredbirthday string DEFAULT NULL,
  31. insuredidtype varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  32. insuredidno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  33. relationtoappnt varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  34. salechnl varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  35. salecom varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  36. salechannels varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  37. customgetpoldate string DEFAULT NULL,
  38. prem_js decimal(10,2) DEFAULT NULL,
  39. agentcom varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  40. paytodate string DEFAULT NULL,
  41. amnt decimal(10,2) DEFAULT NULL,
  42. insuredmobile varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  43. preservationflag varchar2(2) DEFAULT NULL, -- dialect: ORACLE
  44. newbankcode varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  45. bankcode varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  46. insuredbankcode varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  47. newacctype varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  48. acctype varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  49. insuredacctype varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  50. insert_time string DEFAULT NULL,
  51. modify_time string DEFAULT NULL
  52. )
  53. COMMENT 'policy_information'
  54. STORED AS CSVFILE ;
  55. DROP TABLE IF EXISTS shanghailifeecif.t_customer_class;
  56. CREATE TABLE shanghailifeecif.t_customer_class(
  57. id int NOT NULL,
  58. customer_id varchar2(200) NOT NULL, -- dialect: ORACLE
  59. customer_name varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  60. gender varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  61. birthdate string DEFAULT NULL,
  62. id_type varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  63. id_no varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  64. class_value int DEFAULT NULL,
  65. contribution_value decimal(10,2) DEFAULT NULL,
  66. awarded3 decimal(10,2) DEFAULT NULL,
  67. awarded2 decimal(10,2) DEFAULT NULL,
  68. awarded1 decimal(10,2) DEFAULT NULL,
  69. total_value decimal(10,2) DEFAULT NULL,
  70. end_date string DEFAULT NULL,
  71. created_user varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  72. created_date string DEFAULT NULL,
  73. modified_user varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  74. modified_date string DEFAULT NULL,
  75. is_delete varchar2(2) DEFAULT NULL, -- dialect: ORACLE
  76. effective_date string DEFAULT NULL,
  77. updateby string DEFAULT NULL,
  78. stature decimal(8,2) DEFAULT NULL,
  79. avoirdupois decimal(8,2) DEFAULT NULL,
  80. dentype varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  81. yearincome decimal(8,2) DEFAULT NULL,
  82. familyyearsalary decimal(8,2) DEFAULT NULL,
  83. incomesource char(4) DEFAULT NULL, -- dialect: ORACLE
  84. socialinsuflag varchar2(1) DEFAULT NULL, -- dialect: ORACLE
  85. pre_total_value decimal(10,2) DEFAULT NULL,
  86. pre_class_value int DEFAULT NULL,
  87. nationality char(4) DEFAULT NULL, -- dialect: ORACLE
  88. nativeplace char(4) DEFAULT NULL, -- dialect: ORACLE
  89. marriage char(4) DEFAULT NULL, -- dialect: ORACLE
  90. grpname varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  91. degree char(4) DEFAULT NULL, -- dialect: ORACLE
  92. deathdate string DEFAULT NULL,
  93. zipcode varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  94. phone varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  95. postaladdress varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  96. email varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  97. mobile varchar2(128) DEFAULT NULL, -- dialect: ORACLE
  98. bmi decimal(8,2) DEFAULT NULL,
  99. insert_time string DEFAULT NULL,
  100. modify_time string DEFAULT NULL
  101. )
  102. COMMENT 't_customer_class'
  103. STORED AS CSVFILE ;
  104. DROP TABLE IF EXISTS shanghailifeecif.insuranceinfo;
  105. CREATE TABLE shanghailifeecif.insuranceinfo(
  106. contno varchar2(20) DEFAULT NULL, -- dialect: ORACLE
  107. prtno varchar2(20) DEFAULT NULL, -- dialect: ORACLE
  108. prem decimal(10,2) DEFAULT NULL,
  109. riskname varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  110. riskstyle varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  111. appflag varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  112. uwstate varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  113. agentcom varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  114. isybt varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  115. selltype varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  116. polapplydate string DEFAULT NULL,
  117. scandate string DEFAULT NULL,
  118. scantime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  119. inputdate string DEFAULT NULL,
  120. inputtime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  121. signdate string DEFAULT NULL,
  122. signtime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  123. cvalidate string DEFAULT NULL,
  124. customgetpoldate string DEFAULT NULL,
  125. uwdate string DEFAULT NULL,
  126. uwtime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  127. appntbirthday string DEFAULT NULL,
  128. isuwpass varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  129. occupationcode varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  130. occupationname varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  131. appntage decimal(10,2) DEFAULT NULL,
  132. insuredage decimal(10,2) DEFAULT NULL,
  133. approvedate string DEFAULT NULL,
  134. approvetime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  135. deliverydate string DEFAULT NULL,
  136. deliverytime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  137. agentcomname varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  138. newbankcode varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  139. username_input varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  140. username_scan varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  141. username_approve varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  142. enteraccdate string DEFAULT NULL,
  143. confmakedate string DEFAULT NULL,
  144. confmaketime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  145. chargedate string DEFAULT NULL,
  146. chargetime varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  147. isrealtimeflag varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  148. iscleanflag varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  149. isuwstandardflag varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  150. issuetype varchar2(8) DEFAULT NULL, -- dialect: ORACLE
  151. managecom varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  152. managecomname varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  153. salechnl varchar2(255) DEFAULT NULL, -- dialect: ORACLE
  154. uwconclusion varchar2(4000) DEFAULT NULL, -- dialect: ORACLE
  155. ins_time string DEFAULT NULL
  156. )
  157. COMMENT 'insuranceinfo'
  158. STORED AS CSVFILE ;
  159. DROP TABLE IF EXISTS shanghailifeecif.personal_insurance;
  160. CREATE TABLE shanghailifeecif.personal_insurance(
  161. comcode4 varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  162. comname4 varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  163. comcode6 varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  164. comname6 varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  165. managecom varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  166. managecomname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  167. salesareacode varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  168. salesareaname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  169. branchattr varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  170. branchattrname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  171. salesdepcode varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  172. salesdepname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  173. salesgroupcode varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  174. salesgroupname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  175. agentcode varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  176. agentname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  177. employdate string DEFAULT NULL,
  178. gradename varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  179. prtno varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  180. contno varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  181. riskcode varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  182. riskname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  183. mainattachedriskflag varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  184. amnt decimal(10,2) DEFAULT NULL,
  185. polapplydate string DEFAULT NULL,
  186. scandate string DEFAULT NULL,
  187. confdate string DEFAULT NULL,
  188. signdate string DEFAULT NULL,
  189. cvalidate string DEFAULT NULL,
  190. customgetpoldate string DEFAULT NULL,
  191. getpoldate string DEFAULT NULL,
  192. overhesitationperiod varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  193. withdrawaldate string DEFAULT NULL,
  194. wtdate string DEFAULT NULL,
  195. ctdate string DEFAULT NULL,
  196. contstate varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  197. longpols int DEFAULT NULL,
  198. prem decimal(10,2) DEFAULT NULL,
  199. standprem decimal(10,2) DEFAULT NULL,
  200. annualizedprem decimal(10,2) DEFAULT NULL,
  201. fycryc decimal(10,2) DEFAULT NULL,
  202. payintv varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  203. payyears int DEFAULT NULL,
  204. polyear int DEFAULT NULL,
  205. conttype varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  206. contflag varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  207. calldate string DEFAULT NULL,
  208. agentstate varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  209. insert_time string DEFAULT NULL,
  210. modify_time string DEFAULT NULL
  211. )
  212. COMMENT 'personal_insurance'
  213. STORED AS CSVFILE ;
  214. DROP TABLE IF EXISTS shanghailifeecif.health_group_listing;
  215. CREATE TABLE shanghailifeecif.health_group_listing(
  216. contno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  217. prtno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  218. appntno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  219. grpname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  220. comdocidtype varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  221. comdocidno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  222. validity_date string DEFAULT NULL,
  223. salechnl varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  224. agentcom varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  225. agentname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  226. riskname varchar2(400) DEFAULT NULL, -- dialect: ORACLE
  227. amnt decimal(10,2) DEFAULT NULL,
  228. paymode varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  229. chargefeerate decimal(10,2) DEFAULT NULL,
  230. commrate decimal(10,2) DEFAULT NULL,
  231. summanagepremr decimal(10,2) DEFAULT NULL,
  232. prem decimal(10,2) DEFAULT NULL,
  233. peoples3 decimal(10,2) DEFAULT NULL,
  234. cvalidate string DEFAULT NULL,
  235. payenddate string DEFAULT NULL,
  236. signdate string DEFAULT NULL,
  237. sumduepaymoney decimal(10,2) DEFAULT NULL,
  238. nipeople decimal(10,2) DEFAULT NULL,
  239. niprem decimal(10,2) DEFAULT NULL,
  240. ztpeople decimal(10,2) DEFAULT NULL,
  241. ztprem decimal(10,2) DEFAULT NULL,
  242. insert_time string DEFAULT NULL,
  243. modify_time string DEFAULT NULL
  244. )
  245. COMMENT 'health_group_listing'
  246. STORED AS CSVFILE ;
  247. DROP TABLE IF EXISTS shanghailifeecif.audit_edorlist;
  248. CREATE TABLE shanghailifeecif.audit_edorlist(
  249. managecom varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  250. managename varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  251. salechnl varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  252. salechnlname varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  253. selltype varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  254. selltypename varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  255. contno varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  256. riskcodes varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  257. risknames varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  258. risktypes varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  259. signdate string DEFAULT NULL,
  260. appntname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  261. prem decimal(10,2) DEFAULT NULL,
  262. edorname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  263. edoracceptno varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  264. edorno varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  265. edorvalidate string DEFAULT NULL,
  266. customerhandleflag varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  267. operator varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  268. approveoperator varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  269. getmoney decimal(10,2) DEFAULT NULL,
  270. cusappdate string DEFAULT NULL,
  271. payyears varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  272. agentname varchar2(256) DEFAULT NULL, -- dialect: ORACLE
  273. edorstate varchar2(64) DEFAULT NULL, -- dialect: ORACLE
  274. insert_time string DEFAULT NULL,
  275. modify_time string DEFAULT NULL
  276. )
  277. COMMENT 'audit_edorlist'
  278. STORED AS CSVFILE ;
  279. DROP TABLE IF EXISTS shanghailifeecif.insurance_claim;
  280. CREATE TABLE shanghailifeecif.insurance_claim(
  281. batno varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  282. contno varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  283. clmno varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  284. cvalidate string DEFAULT NULL,
  285. riskdate string DEFAULT NULL,
  286. ageofdanger decimal(3,0) DEFAULT NULL,
  287. riskcode varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  288. riskname varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  289. lloccurreason varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  290. accresult1 varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  291. accresult2 varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  292. accidentdetail varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  293. llgettype varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  294. realpay decimal(12,2) DEFAULT NULL,
  295. applydate string DEFAULT NULL,
  296. accepteddate string DEFAULT NULL,
  297. rptdate string DEFAULT NULL,
  298. rgtdate string DEFAULT NULL,
  299. auditdate string DEFAULT NULL,
  300. examdate string DEFAULT NULL,
  301. senddate string DEFAULT NULL,
  302. returndate string DEFAULT NULL,
  303. llclaimstate varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  304. operator varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  305. auditper varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  306. examper varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  307. isinvestigated varchar2(10) DEFAULT NULL, -- dialect: ORACLE
  308. idno varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  309. insuredname varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  310. isfromwx varchar2(10) DEFAULT NULL, -- dialect: ORACLE
  311. insuredno varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  312. amnt decimal(12,2) DEFAULT NULL,
  313. managecom varchar2(10) DEFAULT NULL, -- dialect: ORACLE
  314. estimatedreparations varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  315. risktype varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  316. getdutycode varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  317. getdutyname varchar2(512) DEFAULT NULL, -- dialect: ORACLE
  318. salechnl varchar2(40) DEFAULT NULL, -- dialect: ORACLE
  319. accname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  320. accidenttype varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  321. enddate string DEFAULT NULL,
  322. salechnl2 varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  323. insuredsex varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  324. insuredjob varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  325. paystatus varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  326. rgtno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  327. rptno varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  328. rptorname varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  329. relation varchar2(200) DEFAULT NULL, -- dialect: ORACLE
  330. accdesc varchar2(2000) DEFAULT NULL, -- dialect: ORACLE
  331. accdentdesc varchar2(2000) DEFAULT NULL, -- dialect: ORACLE
  332. insert_time string DEFAULT NULL,
  333. modify_time string DEFAULT NULL
  334. )
  335. COMMENT 'insurance_claim'
  336. STORED AS CSVFILE ;
  337. 服务器操作命令
  338. 初始化命令 source /home/xinghuan-install/TDH-Client/init.sh (bash: hdfs: 未找到命令...出现后执行初始化命令)
  339. 上传文件命令
  340. hdfs dfs -put /home/frontData/policy_information.txt /tmp/myData/
  341. hdfs dfs -put /home/frontData/t_customer_class.txt /tmp/myData/
  342. hdfs dfs -put /home/frontData/insuranceinfo.txt /tmp/myData/
  343. hdfs dfs -put /home/frontData/personal_insurance.txt /tmp/myData/
  344. hdfs dfs -put /home/frontData/health_group_listing.txt /tmp/myData/
  345. hdfs dfs -put /home/frontData/audit_edorlist.txt /tmp/myData/
  346. hdfs dfs -put /home/frontData/insurance_claim.txt /tmp/myData/
  347. 数据库操作命令加载数据:
  348. LOAD DATA INPATH '/tmp/myData/policy_information.txt' OVERWRITE INTO TABLE shanghailifeecif.policy_information;
  349. LOAD DATA INPATH '/tmp/myData/t_customer_class.txt' OVERWRITE INTO TABLE shanghailifeecif.t_customer_class;
  350. LOAD DATA INPATH '/tmp/myData/insuranceinfo.txt' OVERWRITE INTO TABLE shanghailifeecif.insuranceinfo;
  351. LOAD DATA INPATH '/tmp/myData/personal_insurance.txt' OVERWRITE INTO TABLE shanghailifeecif.personal_insurance;
  352. LOAD DATA INPATH '/tmp/myData/health_group_listing.txt' OVERWRITE INTO TABLE shanghailifeecif.health_group_listing;
  353. LOAD DATA INPATH '/tmp/myData/audit_edorlist.txt' OVERWRITE INTO TABLE shanghailifeecif.audit_edorlist;
  354. LOAD DATA INPATH '/tmp/myData/insurance_claim.txt' OVERWRITE INTO TABLE shanghailifeecif.insurance_claim;