메뉴 건너뛰기

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
번호 제목 날짜 조회 수
» 시스템날짜를 현재 정보로 동기화 하는 방법(rdate, ntpdate이용) 2014.08.24 2707
87 FAILED: IllegalStateException Variable substitution depth too large: 40 오류발생시 조치사항 2014.08.19 2523
86 원보드 컴퓨터 비교표 file 2014.08.04 1682
85 외부 기기(usb, 하드)등 mount(연결)하기 2014.08.03 1448
84 데이타 제공 사이트 링크 2014.08.03 2243
83 lubuntu 호스트 네임변경 2014.08.03 1927
82 oozie 에서 sqoop action실행 에러 - 컬럼개수 차이 2014.07.17 1990
81 uEnv.txt위치및 내용 2014.07.09 1526
80 banana pi(lubuntu)에서 한글 설정및 한글깨짐 문제 해결 2014.07.06 4275
79 access=WRITE, inode="staging":ubuntu:supergroup:rwxr-xr-x 오류 2014.07.05 2762
78 org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="":root:supergroup:rwxr-xr-x 오류 처리방법 2014.07.05 3705
77 banana pi에(lubuntu)에 hadoop설치하고 테스트하기 - 성공 file 2014.07.05 3733
76 2개 data를 join하고 마지막으로 code정보를 join하여 결과를 얻는 mr 프로그램 2014.06.30 1285
75 jsoup 사용 예제 2014.06.06 2713
74 Cannot create /var/run/oozie/oozie.pid: Directory nonexistent오류 2014.06.03 2534
73 oozie job 구동시 JA009: User: hadoop is not allowed to impersonate hadoop 오류나는 경우 2014.06.02 1863
72 원보드pc인 bananapi를 이용하여 hadoop 클러스터 구성하기(준비물) file 2014.05.29 4761
71 의사분산모드에 hadoop설치및 ecosystem 환경 정리 2014.05.29 3925
70 hadoop및 ecosystem에서 사용되는 명령문 정리 2014.05.28 4717
69 hive job실행시 meta정보를 원격의 mysql에 저장하는 경우 설정방법 2014.05.28 2203
위로