๐ปTech160 [Impala] memory limit exceeded ๐ซ ERROR Memory limit exceeded: Error occurred on backend impala-executor-000-1:27000 by fragment ce406efbcc638b19:6306d59800000011 Memory left in process limit: 80.72 GB Memory left in query limit: -270.99 MB Query (ce406efbcc638b19:6306d59800000000): memory limit exceeded. Limit=2.00 GB Reservation=642.00 MB ReservationLimit=1.60 GB OtherMemory=1.64 GB Total=2.26 GB Peak=2.26 GB Fragment ๐ก SOLV.. 2021. 8. 19. conda keyerror 'channels' is not in the 'channels' key of the config file conda config --remove channel ์คํ์ ์๋ ์๋ฌ ๋ฐ์ํ ๊ฒฝ์ฐ ์กฐ์น ๋ฐฉ๋ฒ์ ๋๋ค. ๐ซ ERROR conda keyerror 'channels' is not in the 'channels' key of the config file ๐ก SOLVED 1. conda config --show channels 2. conda config --remove channel CHANNEL_NAME 2021. 7. 16. Git clone/push LDAP ์ธ์ฆ ๋ฌธ์ (http 500 ์๋ฌ) ๐ซ ERROR fatal: unable to access 'https://localhost:8800/admin1/init_test.git/': The requested URL returned error: 500 ๐ก SOLVED 1. ์๋ git ์ค์ ํด์ค์ผ clone/push ์ธ์ฆ ํ ๋ AD ๊ณ์ ์ธ์ฆ ๋ฉ๋๋ค. ## ์ค์ ์ ์ฉ $ vi /etc/gitlab/gitlab.rb -------------------------------- encryption = 'plain' -------------------------------- 2. ์ค์ ํ ์ฌ๊ธฐ๋ $ gitlab-ctl reconfigure ๐ ์ฐธ๊ณ https://forum.gitlab.com/t/unable-to-clone-in-https-using.. 2021. 7. 9. pip install (ํ์๋ง ๋ก์ปฌ whl ํ์ผ ์ง์ ์ค์น) โพ whl ํ์ผ ์ง์ ์ค์น user ์ต์ ์ ์ค์น๋ฅผ ์งํํ๋ ํด๋น ๊ณ์ ์ ํจํค์ง ์ค์นํ๋ค๋ ์๋ฏธ user ์ต์ ์ ๋ถ์ด์ง ์์ผ๋ฉด root ๊ณ์ ์ผ๋ก ์งํํด์ผํจ pip3 install --no-index --find-links . ํ์ผ๋ช .whl --user โพ requirements.txt ํ์ผ์ ์ค์น ํจํค์ง ๋ชฉ๋ก ์์ฑํ์ฌ ์คํ pip3 install --no-index --find-links . -r requirements.txt --user 2021. 6. 18. [Hive] sequence ์ปฌ๋ผ ์์ฑ ๋ฐฉ๋ฒ ๐โ๏ธ ROW_NUMBER() OVER() ๊ตฌ๋ฌธ์ ์ฌ์ฉํด์ seq ๋ฒํธ๋ฅผ ์ ์ฅ ## ๊ธฐ์กด ํ ์ด๋ธ์์ seq ์ปฌ๋ผ์ ์ถ๊ฐํ ํ ์ด๋ธ ์์ฑ CREATE TABLE new_table( seq int, code string, description string, total_emp int, salary int ) STORE AS parquet; ## ๊ธฐ์กด ํ ์ด๋ธ์ ROW_NUMBER() OVER() ํฉ์ ์ฌ์ฉํด์ seq ์ปฌ๋ผ ์ถ๊ฐํ ๋ฐ์ดํฐ insert insert overwrite table new_table select * from ( select ROW_NUMBER() OVER() as RNUM, * from old_table) a where a.RNUM 2021. 4. 28. [MariaDB] Replication ๊ธฐ๋ฅ ์ ์ฉ ๋ฐฉ๋ฒ MariaDB Replication ๊ธฐ๋ฅ์ DB ๋ฐ์ดํฐ ๋ฐฑ์ ์ฉ๋๋ก ์ฌ์ฉ (์ด์คํ๊ฐ ์๋) 1. Master ์๋ฒ 1) mariaDB stop & DB ๋ฐฑ์ $ systemctl stop mariadb $ mysqldump -uroot -p hue > hue.sql 2) server.cnf ์ค์ ์ถ๊ฐ vi /etc/my.conf.d/server.cnf ----------------------------- [mysqld] log_bin=mysql-bin server-id=1 ----------------------------- 3) systemctl start mariadb 4) mysql ์ ์ ํ ์๋ ๋ช ๋ น์ด ์คํ > GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.. 2021. 4. 20. [Ranger] REST API Query History (hiveServer2, impala) ๐ REST API URL http://localhost:6080/service/assets/accessAudit?page=0&pageSize=25&total_pages=55&totalCount=1363&startIndex=0&sortBy=eventTime&excludeServiceUser=true&startDate=03%2F30%2F2021 [ํ๋ผ๋ฏธํฐ ์ค๋ช ] > startDate=03%2F30%2F2021 (03/30/2021) > ์กฐํ ๊ฒฐ๊ณผ agentID์ hiveServer2, impala๋ก ์ฟผ๋ฆฌ ๊ตฌ๋ถ ๊ฐ๋ฅ 2021. 4. 8. [๋ฆฌ๋ ์ค] ์ฌ๋ฌ ์๋ฒ ์๊ฒฉ ์์ (parallel-ssh, ssh remote shell) ๋ฆฌ๋ ์ค์์ ์ฌ๋ฌ ์๋ฒ๋ค ๋์์ ์์ ํ ๋ ์ ์ฉํ 2๊ฐ์ง ๋ฐฉ๋ฒ์ ๋๋ค. (parallel-ssh๋ฅผ ์ถ์ฒ) โพ parallel-ssh ์ค์น ๋ฐ ์ฌ์ฉ 1. ๋ค์ด ๋ฐ ์ค์น pssh-2.3.1.tar.gz ๋ค์ด (https://code.google.com/archive/p/parallel-ssh/downloads/) tar xvzf pssh-2.3.1.tar.gz cd pssh-2.3.1 python setup.py install 2. ์์ host ํ์ผ ์์ฑ vi allnodes ------------------------------ cdpwork01 cdpwork02 cdpwork03 ------------------------------ 3. keygen ์์ฑ ๋ฐ ๋ฐฐํฌ ssh-keygen chmod 700 ... 2021. 3. 4. ์ด์ 1 ยทยทยท 3 4 5 6 7 8 9 ยทยทยท 20 ๋ค์