摘要: #!/bin/bash hive -S -e "use 数据库名;show tables;" >tables.txt cat tables.txt | while read eachline do hive -S -e "use 数据库名;show create table ${eachline};" >> tablesDDL.hql done 阅读全文
posted @ 2018-09-19 17:14 Tomatoes 阅读(1965) 评论(0) 推荐(0) 编辑
摘要: 1.运行环境变量,获取keytab票据: source component_env klist -kt ***.keytabkinit -kt ******** 2.登陆过程报错: 阅读全文
posted @ 2018-09-19 17:12 Tomatoes 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: 1.以root用户登录需要设置NTP同步的节点上。 执行如下命令查看系统中是否已安装NTP。 rpm -qa | grep ntp 显示类似如下信息则表示已安装NTP ntp-4.2.4p8-1.22.1 yast2-ntp-client-2.17.15-0.7.29 否则,可按如下命令安装: rpm -ivh ntp-4.2.4p2-6.fc8.rpm 2.配置NTP服务器。 修改配... 阅读全文
posted @ 2018-09-19 17:04 Tomatoes 阅读(1440) 评论(2) 推荐(0) 编辑
摘要: 写在shell脚本中,每5秒执行一次 阅读全文
posted @ 2018-09-19 17:02 Tomatoes 阅读(159) 评论(0) 推荐(0) 编辑