hive<<ENDOFINPUT 不可混用空格与tab

下面这一段代码,之前没有注意都是去除tab健的。

注意 从 t2.first_active_date  开始是用的"tab"。

hive<<ENDOFINPUT;
--------------------------- Below are HIVE SQL scripts --------------------------
SELECT
    coalesce(t2.imei,t1.imei)
    ,coalesce(t2.app_name,t1.app_name)  
    ,coalesce(t2.first_active_date,t1.dt)
    ,coalesce(t2.first_app_version,t1.first_app_version)
    ,coalesce(t1.dt,t2.last_active_date)
    ,coalesce(t1.last_app_version,t2.last_app_version)
        ,t2.first_active_date
        ,t1.dt
        ,t2.last_active_date   

结果提示“Logging initialized using configuration in jar:file:/usr/local/apache-hive-1.2.1-bin/lib/hive-common-1.2.1.jar!/hive-log4j.properties
hive> --------------------------- Below are HIVE SQL scripts --------------------------
    > SELECT
    >     coalesce(t2.imei,t1.imei)
    >     ,coalesce(t2.app_name,t1.app_name)  
    >     ,coalesce(t2.first_active_date,t1.dt)
    >     ,coalesce(t2.first_app_version,t1.first_app_version)
    >     ,coalesce(t1.dt,t2.last_active_date)
    >     ,coalesce(t1.last_app_version,t2.last_app_version)
    > Display all 475 possibilities? (y or n)
    > ame”

 

 

说明此处异常,tab改为空格后,ok, 大功告成。

 

转载于:https://my.oschina.net/u/2536026/blog/684124

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值