본문 바로가기

ALL162

[리눅스] yum $releasever 변경하는 방법 yum repository에서 $releasever 변수를 사용하는데 잘못 설정되어 아래와 같은 에러가 발생하는 경우가 있는데요 /etc/yum/vars/releasever 생성 또는 변경하여 조치할 수 있습니다. 🚫 ERROR https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7.7-10.el7-x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found 💡 SOLVED $ echo "7.7" > /etc/yum/vars/releasever 조회 방법 $ python -c 'import yum, pprint; yb = yum.YumBase(); pprint.pprint(yb.conf.y.. 2020. 4. 1.
[Hive] 테이블 JSON 포맷 사용 방법 1. JSON 데이터 확인 2. Hive 데이터베이스/테이블 생성 json 중첩 객체가 존재할 경우 string으로 처리 json 컬럼 type 주의 (arrary) - 컬럼 List type을 String으로 설정해서 아래 에러가 발생함. org.apache.hadoop.hive.serde2.SerDeException: java.io.IOException: Field name expected CREATE DATABASE IF NOT EXISTS db_nm; CREATE EXTERNAL TABLE IF NOT EXISTS db_nm.tb_nm ( repotype string, repo string, requser string, tags array ) PARTITIONED BY (dt string) ROW.. 2020. 3. 27.
Ambari HDP component 삭제 후 재설치 💡 Ambari HDP 에코시스템에 문제가 발생해 해당 서비스를 삭제 후 재설치 방법 아래 명령어 실행 후 ambari에서 재설치 진행해주면 됩니다. $ rm -rf /usr/hdp/2.6.5.1175-1/ranger-kms $ rm -rf /etc/ranger/kms $ yum remove ranger_2_6_5_1175_1-kms.x86_64 2020. 2. 28.
SSLError: Failed to connect. Please check openssl library versions. 🚫 ERROR INFO 2020-02-14 17:13:35,457 NetUtil.py:70 - Connecting to https://hdp.hadoop.com:8440/ca ERROR 2020-02-14 17:13:35,460 NetUtil.py:96 - EOF occurred in violation of protocol (_ssl.c:618) ERROR 2020-02-14 17:13:35,461 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions. Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details. WARNING 2.. 2020. 2. 14.
Ambari table 생성 Ambari 설치 후 실행하기 전 관련 테이블을 생성해야 합니다. 생성하지 않고 ambari-server start 실행을 하면 에러가 발생합니다. ambari 설치가 완료 되었으면 아래 명령어 실행해서 관련 테이블을 모두 생성해 줍니다. mysql -u ambari -p ambari < /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql 2020. 2. 14.
[Atlas] Authentication failed. Cloudera Manager에서 Atlas 설치 후 인증 문제가 발생하는데 Congifuration에서 아래 옵션을 체크해주면 정상 로그인됩니다. 2020. 2. 4.
[MariaDB] Specified key was too long; max key length is 767 bytes MariaDB에서 ranger db 생성할 때마다 발생하는 에러입니다... 까먹지 않게 적어둠.. 초기에 세팅해두면 좋습니다. 💡 해결 방법 my.cnf에 아래 옵션 추가 후 mariaDB 재기동 $ vi /etc/my.cnf [mysqld] ... innodb_file_format = barracuda innodb_large_prefix = on ✅ 재기동 후 확인 명령어 MariaDB [(none)]> SHOW VARIABLES LIKE 'innodb_lar%'; +---------------------+-------+ | Variable_name | Value | +---------------------+-------+ | innodb_large_prefix | ON | +--------------.. 2020. 2. 3.
[SOLVED] two-way ssl authentication failed 🚫 ERROR (Ambari) two-way ssl authentication failed. ssl CERTIFICATE_VERIFY_FAILED certificate verify failed and ambari agent heartbeat is not sending heartbeats 💡 SOLVED: 1. open /etc/ambari-server/conf/ambari.properties 2. remove the property security.server.two_way_ssl = true 2020. 1. 21.