๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ปTech/๐Ÿ˜hadoop27

zeppelin notebook execute REST API โ—พ curl ๋ช…๋ น์–ด๋กœ zeppelin ๋…ธํŠธ๋ถ ์‹คํ–‰ ๋ฐฉ๋ฒ• #!/bin/bash kinit -kt /opt/cloudera/security/user.keytab userid curl -X POST -H "accept: application/json" --negotiate -u : \ https://zeppelin-server-url:8886/api/notebook/run/$1/$2 $1 : paragraph $2 : notebook index name ํ™•์ธ : zeppelin > notebook > wheel icon 2023. 11. 22.
[SOLVED] datanode denied communication with namenode because hostname cannot be resolved ๐Ÿšซ ERROR datanode denied communication with namenode because hostname cannot be resolved ๐Ÿ’ก SOLVED DNS ์„ค์ •์œผ๋กœ ๋ณ„๋„๋กœ /etc/hosts ์ž‘์—…์„ ์•ˆํ–ˆ๊ณ , ํ™•์ธํ•ด๋ณด๋‹ˆ ์—ญ๋ฐฉํ–ฅ DNS ๋“ฑ๋ก์ด ์•ˆ๋ผ์„œ ๋ฐœ์ƒํ•œ ๋ฌธ์ œ /etc/hosts์— FQDN ๋“ฑ๋ก ์ž‘์—…์œผ๋กœ ๋ฐ”๋กœ ๋ฌธ์ œ ํ•ด๊ฒฐ 2023. 9. 27.
Apache Ranger ์‚ฌ์šฉ๋ฒ• Ranger Web UI ๊ฐ ๊ธฐ๋Šฅ๋“ค ์‚ฌ์šฉ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. Ranger๋ž€? ํ•˜๋‘ก ์ „์ฒด ์„œ๋น„์Šค์— ๋Œ€ํ•œ ๋ณด์•ˆ ์ •์ฑ…์„ ์ ์šฉํ•  ์ˆ˜ ์žˆ๊ณ  ๊ด€๋ฆฌ ๋ฐ ์šด์˜ํ•  ์ˆ˜ ์žˆ๋Š” Hadoop Component ํ•˜๋‘ก์˜ ๋ณด์•ˆ ๊ด€๋ จ ์กฐ์น˜๋Š” ๋Œ€๋ถ€๋ถ„ Ranger์—์„œ ์ฒ˜๋ฆฌ ๊ฐ€๋Šฅํ•˜๋‹ค๊ณ  ๋ณด์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. Ranger Architecture Ranger๋Š” Hadoop์˜ ์ „์ฒด ์ปดํฌ๋„ŒํŠธ์— ๋Œ€ํ•œ Ranger ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ํ™œ์„ฑํ™”ํ•˜์—ฌ ๋ชจ๋“  ์•ก์„ธ์Šค๋ฅผ ์ œ์–ดํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Ranger ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ Ranger policy server ๊ฐ„์—๋Š” ์–‘๋ฐฉํ–ฅ ํ†ต์‹ ์ด ์ด๋ฃจ์–ด์ง€๋ฉฐ, Ranger ํ”Œ๋Ÿฌ๊ทธ์ธ์€ ์ •๊ธฐ์ ์œผ๋กœ(30์ดˆ) Ranger Policy Server๋ฅผ ํ˜ธ์ถœํ•˜์—ฌ ์ƒˆ๋กœ์šด ์ •์ฑ…์ด ์ •์˜๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ๐Ÿ”— https://doc.hcs.huawei.com/productdesc/.. 2023. 8. 23.
zeppelin interpreter resource share mode (notebook pending) zeppelin ์—์„œ ์—ฌ๋Ÿฌ ํƒœ์Šคํฌ๋ฅผ ์‹คํ–‰ํ•˜๋ฉด, ์„ ํ–‰ ์ž‘์—…์ด ๋๋‚ ๋•Œ๊นŒ์ง€ ์ž‘์—…์ด pending ๊ฑธ๋ฆฌ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋„ค์š” ๐Ÿ”— ๋งํฌ ์ฐธ๊ณ  https://zeppelin.apache.org/docs/0.8.0/usage/interpreter/interpreter_binding_mode.html 2022. 9. 19.
[zeppelin] python interpreter ์„ค์น˜ ๋ฐ ์—ฐ๋™ ํด๋ผ์šฐ๋ฐ๋ผ์—์„œ zeppelin ์„œ๋น„์Šค์— python interpreter ์„ค์น˜ ๋ฐ ์—ฐ๋™ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค. clouder doc์—๋Š” ๋‚˜์™€์žˆ์ง€ ์•Š์•„ ๊ณผ๊ฑฐ HDP์™€ Apache Zeppelin ๋ฌธ์„œ ์ฐธ๊ณ  ํ•˜์˜€์Šต๋‹ˆ๋‹ค ๐Ÿ™‚ 1. zeppelin ์„ค์น˜๋œ ์„œ๋ฒ„ ์ ‘์† ํ›„ ํŒŒ์ด์ฌ ์ธํ„ฐํ”„๋ฆฌํ„ฐ ์„ค์น˜ ์„ค์น˜ ์™„๋ฃŒ๋˜๋ฉด /opt/cloudera/parcels/CDH/lib/zeppelin/interpreter/python ๊ฒฝ๋กœ๊ฐ€ ์ƒ์„ฑ๋จ ํ•˜์œ„ ๊ฒฝ๋กœ ๊ถŒํ•œ ํ™•์ธ (chmod 644) /opt/cloudera/parcels/CDH/lib/zeppelin/bin/install-interpreter.sh -n python 2. zeppelin web-ui > interpreter > create python interpreter๊ฐ€ ์ •์ƒ ์„ค์น˜๋˜๋ฉด.. 2022. 8. 18.
[zeppelin] Authentication failed for PAM. ๐Ÿšซ ERROR Exception in login: org.apache.shiro.authc.AuthenticationException: Authentication failed for PAM. Caused by: org.jvnet.libpam.PAMException: pam_authenticate failed : Authentication failure ๐Ÿ’ก SOLVED ## check shiro.ini: -------------------------------------------- pamRealm=org.apache.zeppelin.realm.PamRealm pamRealm.service=sshd -------------------------------------------- ## set acl $ se.. 2022. 8. 16.
[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.
kudu ๋ช…๋ น์–ด ์ •๋ฆฌ โ—พ ํ…Œ์ด๋ธ” ์ƒ์„ฑ (as select) CREATE TABLE temp.kudu_cm_audits PRIMARY KEY (audit_id) STORED AS KUDU TBLPROPERTIES ('kudu.num_tablet_replicas' = '1') AS SELECT * FROM temp.cm_audits ; โ—พ ํ…Œ์ด๋ธ” ์ƒ์„ฑ (range partition) CREATE TABLE IF NOT EXISTS temp.kudu_sample( gubun string, seq int, code string, description string, total_emp int, salary int, PRIMARY KEY(gubun,seq) ) PARTITION BY RANGE(gubun)( PARTITION VALUE .. 2020. 12. 23.