閱讀828 返回首頁    go 人物


本地文件上傳__快速開始_大數據開發套件-阿裏雲

【說明】本地數據導入支持.txt和.csv文件類型,文件大小不超過10M,且不支持 分區表數據導入。

以導入banking.txt為例,說明如下:

步驟1:創建ODPS目標表。

建表語句如下:

  1. create table if not exists bank_data
  2. (age bigint comment'年齡',
  3. job string comment '工作類型',
  4. marital string comment'婚否',
  5. education string comment'教育程度',
  6. default string comment'是否有信用卡',
  7. housing string comment'房貸',
  8. loan string comment'貸款',
  9. contact string comment'聯係途徑',
  10. month string comment'月份',
  11. day_of_week string comment'星期幾',
  12. duration string comment'持續時間',
  13. campaign int comment'本次活動聯係的次數',
  14. pdays double comment'與上一次聯係的時間間隔',
  15. previous double comment'之前與客戶聯係的次數',
  16. poutcome string comment'之前市場活動的結果',
  17. emp_var_rate double comment'就業變化速率',
  18. cons_price_idx double comment'消費者物價指數',
  19. cons_conf_idx double comment'消費者信心指數',
  20. euribor3m double comment'歐元存款利率',
  21. nr_employed double comment'職工人數',
  22. y bigint comment'是否有定期存款');

步驟2:點擊頂部菜單欄中的數據開發,導航至數據開發>新建

步驟3:點擊“導入”,選擇導入本地數據

步驟4:選擇本地數據文件,配置導入信息,點擊下一步。

QK_3_6.png

步驟5:選擇目標表,並選擇字段匹配方式(本示例選擇按位置匹配),點擊導入

QK_3_7.png

步驟6:文件導入成功後,係統右上角將提示文件導入成功,同時可以執行select語句查看數據。

QK_3_8.png

最後更新:2016-11-24 11:23:48

  上一篇:go 數據導入說明__快速開始_大數據開發套件-阿裏雲
  下一篇:go 創建任務(以MaxCompute SQL任務為例)__快速開始_大數據開發套件-阿裏雲