摘要: 说明 基于Hive的数据开发工作中,常常用到时间戳,日期各种格式转换,今天抽时间梳理一下。 1. 获取当前UNIX时间戳函数: unix_timestamp select unix_timestamp(); 1711268556 2、UNIX时间戳转日期函数: from_unixtime selec 阅读全文
posted @ 2024-03-24 16:29 晓枫的春天 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 直接看代码 [hui@hadoop101 ~]$ cat str.sh #!/bin/ssh name="hello " age="world" info="$name $age" info1=$name$age info2=$name": "$age info3="$name: $age" ech 阅读全文
posted @ 2024-03-24 15:43 晓枫的春天 阅读(40) 评论(0) 推荐(0) 编辑