【发布时间】:2016-11-15 13:50:54
【问题描述】:
我是 hadoop 新手。在创建新表时,我需要有关 Hive 中遇到的错误的帮助。我经历过这个Hive FAILED: ParseException line 2:0 cannot recognize input near ''macaddress'' 'CHAR' '(' in column specification
我的问题:有必要在脚本中写下表格的位置吗?因为我在开始时写表位置,我害怕写位置,因为它不应该通过任何多功能操作干扰我的其余数据库。
这是我的查询:
CREATE TABLE meta_statistics.tank_items (
shop_offers_history_before bigint,
shop_offers_temp bigint,
videos_distinct_temp bigint,
deleted_temp bigint,
t_stamp timestamp )
CLUSTERED BY (
tank_items_id)
INTO 8 BUCKETS
ROW FORMAT SERDE
TBLPROPERTIES (transactional=true)
STORED AS ORC;
我得到的错误是 -
ParseException 第 1:3 行无法识别“TBLPROPERTIES”附近的输入 '(' '事务性'
还有哪些其他可能的错误以及如何消除这些错误?
【问题讨论】:
标签: hive