hive 建表导入数据

1、

  1. hive> create table wyp
  2.     > (id int, name string,
  3.     > age int, tel string)
  4.     > ROW FORMAT DELIMITED
  5.     > FIELDS TERMINATED BY ' '
  6.     > STORED AS TEXTFILE;

2、

  1. cat wyp.txt
  2. 1       wyp     25      13188888888888
  3. 2       test    30      13888888888888
  4. 3       zs      34      899314121

3、

load data local inpath 'wyp.txt' into table wyp;

原文地址:https://www.cnblogs.com/CaptainLin/p/7519787.html