Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
kinit -kt /var/lib/keytab/hdfs.keytab hdfs
hdfs fsck / -list-corruptfileblocks
수행결과 :
Connecting to namenode via http://namenode01.gooper.com:9870/fsck?ugi=hadoop&listcorruptfileblocks=1&path=%2F
The list of corrupt files under path '/' are:
blk_1073743651 /test/hdfs/test_terasort/pat-r-00196
The filesystem under path '/' has 1 CORRUPT files
조치하는 2가지 방법
### 1. /lost+found 디렉터리로 corrupt 파일 이동
$ hdfs fsck / -move
### 2. corrupt 파일 삭제
$ hdfs fsck / -delete
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
10 | 기준일자 이전의 hdfs 데이타를 지우는 shellscript 샘플 | 2019.06.14 | 592 |
9 | A Cluster의 HDFS 디렉토리및 파일을 사용자및 권한 유지 하여 다운 받아서 B Cluster에 넣기 | 2020.05.06 | 603 |
8 | W/F수행후 Logs not available for 1. Aggregation may not to complete. 표시되며 로그내용이 보이지 않은 경우 | 2020.05.08 | 2217 |
» | missing block및 관련 파일명 찾는 명령어 | 2021.02.20 | 328 |
6 | [Kudu] tablet server 혹은 kudu master가 어떤 원인에 의해서 replica가 failed상태인 경우 복구하는 방법 | 2021.05.24 | 473 |
5 | drop table로 삭제했으나 tablet server에는 여전히 존재하는 테이블 삭제방법 | 2021.07.09 | 7943 |
4 | tablet별 disk사용량 확인하는 방법 | 2021.08.27 | 455 |
3 | hadoop nfs gateway설정 (Cloudera 6.3.4, CentOS 7.4 환경에서) | 2022.01.07 | 404 |
2 | kudu의 내부 table명 변경하는 방법 | 2022.11.10 | 655 |
1 | [Hadoop Encryption] Encryption Zone에 생성된 table에 Hue에서 insert 수행시 User:hdfs not allowed to do 'DECRYPT_EEK' ON 'testkey' 오류 | 2023.11.01 | 121 |