메뉴 건너뛰기

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
번호 제목 날짜 조회 수
461 CDH 5.14.2 설치중 agent설치에서 실패하는 경우 확인/조치 2018.05.22 593
460 TLS/SSl설정시 방법및 참고 사항 2021.10.08 592
459 기준일자 이전의 hdfs 데이타를 지우는 shellscript 샘플 2019.06.14 592
458 It is indirectly referenced from required .class files 오류 발생시 조치방법 2017.03.09 587
457 Windows7 64bit 환경에서 Apache Spark 2.2.0 설치하기 2017.07.26 583
» 시스템날짜를 현재 정보로 동기화 하는 방법(rdate, ntpdate이용) 2014.08.24 583
455 CDH에서 Sentry 개념및 설정 file 2018.06.21 582
454 Eclipse실행시 Java was started but returned exit code=1이라는 오류가 발생할때 조치방법 2016.11.07 581
453 spark-sql실행시 The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH오류 발생시 조치사항 2016.06.09 581
452 [kudu]테이블 drop이 안되고 timeout이 걸리는 경우 조치 방법 2020.06.08 579
451 Incompatible clusterIDs오류 원인및 해결방법 2016.04.01 577
450 impala,hive및 hdfs만 접근가능하고 파일을 이용한 테이블생성가능하도록 hue 권한설정설정 2018.09.17 576
449 데이타 제공 사이트 링크 2014.08.03 576
448 Impala daemon기동시 "Could not create temporary timezone file"오류 발생시 조치사항 2018.03.29 575
447 lagom에서 제공하는 초기 생성기능을 이용하여 생성한 프로젝트의 소스 파악 2018.01.16 574
446 kudu 테이블 metadata강제 삭제시 발생하는 오류 메세지 2022.01.12 571
445 kafka 0.9.0.1 for scala 2.1.1 설치및 테스트 2016.05.02 569
444 Cloudera의 API를 이용하여 impala의 실행되었던 쿼리 확인하는 예시 2018.05.03 568
443 [우분투] suppoie 채굴 프로세스 발생시 자동으로 삭제하는 shell프로그램 2018.04.01 568
442 Ubuntu 16.04 LTS에 Hive 2.1.1설치하면서 "Version information not found in metastore"발생하는 오류원인및 조치사항 2017.05.03 567
위로