美文网首页
hive load txt to table

hive load txt to table

作者: e237262360d2 | 来源:发表于2018-07-02 18:42 被阅读0次

hive -e "

USE jkgj_log;

DROP TABLE IF EXISTS recsys_consult_keyword_drug_prob_new;

CREATE TABLE recsys_consult_keyword_drug_prob_new (

  combile_key string,

  word string,

  values string

)

  ROW FORMAT DELIMITED

  FIELDS TERMINATED BY '\t'

  STORED AS TEXTFILE;

  LOAD DATA LOCAL INPATH 'recsys_consult_keyword_drug_prob_new.txt' OVERWRITE INTO TABLE jkgj_log.recsys_consult_keyword_drug_prob_new;"

相关文章

网友评论

      本文标题:hive load txt to table

      本文链接:https://www.haomeiwen.com/subject/wroluftx.html