小鱼 发表于 2014-9-4 17:08 |
小鱼 发表于 2014-9-4 17:08 这是创建外部表: 创建外部表: CREATE EXTERNAL TABLE page_view(viewTime INT, userid BIGINT, page_url STRING, referrer_url STRING, ip STRING COMMENT 'IP Address of the User', country STRING COMMENT 'country of origination') COMMENT 'This is the staging page view table' ROW FORMAT DELIMITED FIELDS TERMINATED BY '\054' STORED AS TEXTFILE LOCATION '<hdfs_location>'; 详细参考: Hadoop Hive sql语法详解1-认识hive及DDL操作 |
pig2 发表于 2014-9-4 16:56 可以了,谢谢,External这个不用了还是怎样? |
把关键字 External去掉 |