- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我试过运行 hive -v -f sqlfile.sql
文件内容如下
CREATE TABLE UpStreamParam (
'macaddress' CHAR(50),
'datats' BIGINT,
'cmtstimestamp' BIGINT,
'modulation' INT,
'chnlidx' INT,
'severity' BIGINT,
'rxpower' FLOAT,
'sigqnoise' FLOAT,
'noisedeviation' FLOAT,
'prefecber' FLOAT,
'postfecber' FLOAT,
'txpower' FLOAT,
'txpowerdrop' FLOAT,
'nmter' FLOAT,
'premtter' FLOAT,
'postmtter' FLOAT,
'unerroreds' BIGINT,
'corrected' BIGINT,
'uncorrectables' BIGINT)
STORED AS ORC TBLPROPERTIES ("orc.compress"="SNAPPY","orc.bloom.filters.columns"="macaddress")
PARTITIONED BY ('cmtsid' CHAR(50),' date' INT)
LOCATION '/usr/hive/warehouse/UpStreamParam' ;
我收到以下错误:
FAILED: ParseException line 2:0 cannot recognize input near ''macaddress'' 'CHAR' '(' in column specification
最佳答案
首先,列名必须被`
(反引号)包围,而不是'
(单引号)。
因此,您必须将 'macaddress'
替换为 `macaddress`
,以及所有其他列名。
其次,STORED AS
和TBLPROPERTIES
以及PARTITIONED BY
和LOCATION
的顺序是错误的。正确的顺序是PARTITIONED BY
、STORED AS
、LOCATION
、TBLPROPERTIES
。
有关详细信息,请参阅 hive 语言手册。 https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-CreateTable
所以正确的代码是
CREATE TABLE UpStreamParam (
`macaddress` CHAR(50),
`datats` BIGINT,
`cmtstimestamp` BIGINT,
`modulation` INT,
`chnlidx` INT,
`severity` BIGINT,
`rxpower` FLOAT,
`sigqnoise` FLOAT,
`noisedeviation` FLOAT,
`prefecber` FLOAT,
`postfecber` FLOAT,
`txpower` FLOAT,
`txpowerdrop` FLOAT,
`nmter` FLOAT,
`premtter` FLOAT,
`postmtter` FLOAT,
`unerroreds` BIGINT,
`corrected` BIGINT,
`uncorrectables` BIGINT)
PARTITIONED BY (`cmtsid` CHAR(50), `date` INT)
STORED AS ORC
LOCATION '/usr/hive/warehouse/UpStreamParam'
TBLPROPERTIES ("orc.compress"="SNAPPY","orc.bloom.filters.columns"="macaddress");
关于hadoop - 配置单元失败 : ParseException line 2:0 cannot recognize input near '' macaddress '' ' CHAR' '(' in column specification,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32191404/
我有一台经过认证的 bt 2.0 设备。 我可以使用这个带有 eaaccessory 输入/输出流的 bt 设备发送/接收数据。 但是我去获取了设备的mac地址 有一个 ios9 eaaccessor
我需要找出我的设备从中获取 TCP 请求的设备的 MAC 地址,我将通过 tcp 端点获取设备的 IP 地址,但我需要找出设备的 MAC 地址。我的应用程序将在windows和linux,所以请建议我
我想使用我系统的 mac 地址作为主题名称。 我想要这样的东西:project/00:1B:44:11:3A:B7/temperature/status 我这样试过: #define TEMP_STA
本文告诉大家如何在 dotnet core 获取 Mac 地址 因为在 dotnetcore 是没有直接和硬件相关的,所以无法通过 WMI 的方法获取当前设备的 Mac 地址 但是在 dotne
是否可以在 dnsmasq.conf 中处理不同的 tftp-roots? 类似于:如果 MAC=19-4B-90-DA-1C-C3然后 tftp-root=/tftpbootAB IF MAC=19
我需要将 Mac 地址转换为 IPv6 链接 本地地址。此链路本地 IPv6 是从 NIC 的 MAC 地址推断出来的。转换过程如下。 获取 MAC 地址:例如 52:74:f2:b1:a8:7f 将
Java类程序macaddress,它保存本地主机的macaddress地址....而其他是loginpage.jsp.. .我需要包括java类 macaddress 输出,存储在字符串 m
我试过运行 hive -v -f sqlfile.sql 文件内容如下 CREATE TABLE UpStreamParam ( 'macaddress' CHAR(50), 'datats' BIG
我是一名优秀的程序员,十分优秀!