Cloudera HUE - HIVE不承认查询

时间:2017-01-23 06:09:29

标签: hadoop hive cloudera hue

CREATE TABLE schema.table1 (
             DATE_OUT STRING COMMENT 'Date',
             STATUS_OUT STRING COMMENT 'Status',
             SHIP_NR_OUT STRING COMMENT 'Shipper Number',
             TABLE_NAME_OUT STRING COMMENT 'Table Name',
             AC_NR STRING COMMENT 'Account Number',
             AC_TYP_CD STRING COMMENT 'Account type code',
             CNY_CD STRING COMMENT 'Country code',
             AC_XCV_EMP_NR STRING COMMENT 'ACCOUNT EXECUTIVE EMPLOYEE NUMBER',
             ROW_UDT_TS STRING COMMENT 'ROW UPDATE INDICATOR')
COMMENT 'my desc' 
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.RegexSerDe'
WITH SERDEPROPERTIES (
     "input.regex" = "(.{10})(.{1})(.{10})(.{7})(.{10})(.{2})(.{2})(.{9})(.{1})",
     "output.format.string" = "%1$s %2$s %3$s %4$s %5$s %6$s %7$s %8$s %9$s"
   );
LOCATION 'hdfs_path'

当我把它放在屏幕上时,会出现第二个屏幕,询问此查询的参数? 我在CLOUDERA DISTRO中使用HUE,在那里我看到了消息

1 个答案:

答案 0 :(得分:0)

查询中的参数是:

$s

如果你使用Hue,你应该取消选中'启用参数化'在'设置'标签

enter image description here