메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

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


hive query에서 insert overwrite directory '${OUTPUT}'형태로 저장하면

컬럼 구분자는 default가 'x01'가 자동으로 삽입된다.

 

하지만 local로 저장하는 경우는 delimiter를 아래와 같이 지정할 수 있음

-------------------------------------아래-------------------------------------------

insert overwrite local directory '${OUTPUT}'
row format delimited fields terminated by 't'
select * from aaa;


 -------------------추가--------------------

위의 경우는 MapR의 경우이며 apache배포본에는 't'로 저장됨

 

-------------------확인하는 방법-----------

excel에서 해당 파일을 읽어들여 컬럼분리자가 무엇으로 표시되는지 확인하면.. 정확히 알 수 있다..

번호 제목 날짜 조회 수
610 hive에서 생성된 external table에서 hbase의 table에 값 insert하기 2014.04.11 4627
609 [KUDU] kudu tablet server여러가지 원인에 의해서 corrupted상태가 된 경우 복구방법 2023.03.28 4616
608 hive의 메타정보 테이블을 MariaDB로 사용하는 경우 table comment나 column comment에 한글 입력시 깨지는 경우 utf8로 바꾸는 방법. 2023.03.10 4611
607 Oozie 설치, 환경설정 및 테스트 2014.04.08 4610
606 root가 localhost에서 mysql로 접근하지 못하는 경우의 해결방법(패스워드) 2014.09.10 4609
605 service name방식의 oracle을 메타정보 저장소로 사용할때 Hue Configuration설정하는 방법 2022.02.12 4607
604 oozie의 sqoop action수행시 ooize:launcher의 applicationId를 이용하여 oozie:action의 applicationId및 관련 로그를 찾는 방법 2023.07.26 4605
603 you are accessing a non-optimized hue please switch to one of the available addresses 2021.10.06 4605
602 hadoop nfs gateway설정 (Cloudera 6.3.4, CentOS 7.4 환경에서) 2022.01.07 4600
601 Tracking URL = N/A 가발생하는 경우 - 환경설정값을 잘못설정하는 경우에 발생함 2015.06.17 4595
600 Hadoop wordcount 소스 작성 file 2013.03.06 4594
599 oozie webui접근시 id/pw를 물어보는 Windows보안 팝업창이 뜰때 확인/조치방법 2022.05.02 4586
598 FAILED: IllegalStateException Variable substitution depth too large: 40 오류발생시 조치사항 2014.08.19 4584
597 [CDP7.1.7, Hive Replication]Hive Replication진행중 "The following columns have types incompatible with the existing columns in their respective positions " 오류 2023.12.27 4581
596 python test.py실행시 "ImportError: No module named pyspark" 혹은 "ImportError: No module named py4j.protocol"등의 오류 발생시 조치사항 2017.07.04 4574
595 column family삭제시 Column family 'delete' does not exist오류 발생하는 경우 2014.04.14 4571
594 kudu table와 impala(hive) table정보가 틀어져서 테이블을 읽지 못하는 경우(Error Loading Metadata) 조치방법 2023.11.10 4565
593 missing block및 관련 파일명 찾는 명령어 2021.02.20 4565
592 "Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources"오류 발생시 조치사항 2016.05.25 4562
591 https용 인증서 발급 명령문 예시및 오류 메세지 2018.01.24 4560
위로