Linux
文章平均质量分 73
BigBrother@@U
这个作者很懒,什么都没留下…
展开
-
hadoop伪分布式上搭建hive
搭建hadoop一台,hive使用的是MySQL 首先搭建一台hadoop 参照以前的文章 下面是hive的流程 1, 复制数据包hive和mysql连接jar包到Linux中 2, 安装hive到opt下 tar -zxvf apache-hive-1.2.1-bin.tar.gz -C /opt/ 3, 重新命名hive程序 4, 把hive添加到环境变量 vim /etc/profile Source 一下/etc/profile 测试一下hive命令是可以使用tab键按出来 5,cd 到hiv原创 2020-11-03 22:26:32 · 1024 阅读 · 0 评论 -
Crontab每五分钟向ntp服务器矫正时间
创建三个文件 crontest.cron为定时文件 timelog.txt为保存日志的文件 time.sh为访问ntp服务器的脚本 1 创建访问ntp服务器的脚本 #! /bin/bash /usr/sbin/ntpdate -u cn.ntp.org.cn &> /temp/timelog.txt echo 'time is update!' >> /temp/tim...原创 2019-08-07 18:47:32 · 823 阅读 · 0 评论