메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


1. rdate를 설치한다.
root@master:/app/hdd# apt-get install rdate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  rdate
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.4 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  rdate
Authentication warning overridden.
Get:1 http://ports.ubuntu.com/ubuntu-ports/ quantal/main rdate armhf 1:1.2-5 [16.4 kB]
Fetched 16.4 kB in 1s (13.9 kB/s)                  
Selecting previously unselected package rdate.
(Reading database ... 59871 files and directories currently installed.)
Unpacking rdate (from .../rdate_1%3a1.2-5_armhf.deb) ...
Processing triggers for man-db ...
Setting up rdate (1:1.2-5) ...
localepurge: Disk space freed in /usr/share/locale: 45316 KiB
localepurge: Disk space freed in /usr/share/man: 4252 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 564 KiB
localepurge: Disk space freed in /usr/share/omf: 8 KiB

Total disk space freed by localepurge: 50140 KiB

2. 설정할 사이트의 주소를 이용하여 날자를 현재 시간과 동기화 한다.
root@master:/root# rdate -s time.nist.gov
 
 
3. CST를 KST로 적용하도록 변경
mv /etc/localtime /etc/localtime_old
cp /usr/share/zoneinfo/Asia/Seoul /etc/localtime
 
4. 시간을 hw에 기록
root@master:/root# hwclock -w
 
#확인
root@master:~# date
Sun Aug 24 22:26:58 CST 2014

 
# 주기적으로 실행하려면 root로 로그인하여 
crontab -e하여 아래 줄을 입력한다.
00 01 * * * /usr/bin/rdate -s time.nist.gov
00 01 * * * /sbin/hwclock -w
 
---------------time server list--------------
time.nist.gov
time.bora.net

* 참고 :rdate용 시간 제공 서버가 많이 없어짐 그래서 ntpdate를 이용하는 방법을 사용할것
-------------------------------------ntpdate사용-----------------
ntpdate time.nuri.net
ntpdate time.bora.net
번호 제목 날짜 조회 수
59 MySQL 다운로드 및 리눅스에서 간단 컴파일 설치 2013.03.08 1950
58 checking for termcap functions library... configure: error: No curses/termcap library found 2013.03.08 4189
57 ../depcomp: line 512 exec : g++ : not found 2013.03.08 2146
56 centos 5.X에 hadoop 2.0.5 alpha 설치 2013.12.16 1674
55 ubuntu에 hadoop 2.0.5설치하기 2013.12.16 1977
54 통계자료 구할수 있는 곳 2014.04.16 2011
53 Building a Cluster docs 2014.04.22 1129
52 빅데이터 분석을 위한 샘플 빅데이터 파일 다운로드 사이트 2014.04.28 3332
51 우분투 16.04 LTS에 apache2와 tomcat7 연동하여 설치하기 2014.05.09 1605
50 의사분산모드에 hadoop설치및 ecosystem 환경 정리 2014.05.29 3217
49 원보드pc인 bananapi를 이용하여 hadoop 클러스터 구성하기(준비물) file 2014.05.29 3933
48 데이타 제공 사이트 링크 2014.08.03 576
47 외부 기기(usb, 하드)등 mount(연결)하기 2014.08.03 611
46 원보드 컴퓨터 비교표 file 2014.08.04 555
» 시스템날짜를 현재 정보로 동기화 하는 방법(rdate, ntpdate이용) 2014.08.24 583
44 원격지에서 zio공유기를 통해서 노트북의 mysql접속을 허용하는 방법 2014.09.07 689
43 apt-get install mysql-server수행시 "404 Not Found" 오류발생시 조치방법 2014.09.10 1507
42 mysql 5.5.34-0ubuntu0.13.04용 설치/진행 화면 2014.09.10 823
41 하둡 분산 파일 시스템을 기반으로 색인하고 검색하기 2014.09.25 1016
40 hadoop 기반 문서 검색 2014.09.25 1049
위로