shell脚本
名字怪怪滴
热爱java
展开
-
shell脚本判断hive表是否存在
#!/bin/bash #日志目录 #shell判断表hive表是否存在 #TABLE=库名.表名 TABLE=dal.dal_mdn_communication_behavior hive -e" desc $TABLE; " 2>&1 | grep 'Table not found' rtstatus=$? echo $rtstatus if [ $rtstatus -...原创 2018-09-13 15:55:18 · 6050 阅读 · 4 评论 -
shell脚本创建hbase表
#!/bin/bash source ~/.bash_profile #日志目录 DACPDIR="/logs" #DACPDIR=$(cd "$(dirname "$0")"; pwd) #日志名称 LOGNAME="hbase_table" #日志全路径名 full_log_name=${DACPDIR}/${LOGNAME}.log #hbase名称 hbase_table=pro:in...原创 2018-11-14 21:09:26 · 1291 阅读 · 0 评论