๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐ŸฆŒImpala

impala-shell ํŒจ์Šค์›Œ๋“œ ์ž…๋ ฅ์—†์ด Ldap ๋กœ๊ทธ์ธํ•˜๋Š” ๋ฐฉ๋ฒ•

by _viper_ 2021. 11. 25.
๋ฐ˜์‘ํ˜•

impala-shell์—์„œ ์•„๋ž˜ 2๊ฐ€์ง€ ๋‚ด์šฉ์— ๋Œ€ํ•ด ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค

  • impala-shell ๋ช…๋ น์–ด ์‹คํ–‰์‹œ ํ•ด๋‹น ๊ณ„์ •์œผ๋กœ ์˜ต์…˜ ์ž…๋ ฅ์—†์ด ๋กœ๊ทธ์ธํ•˜๋Š” ๋ฐฉ๋ฒ•
  • impala-shell ๋ช…๋ น์–ด ์‹คํ–‰์‹œ Ldap ๋กœ๊ทธ์ธ ํŒจ์Šค์›Œ๋“œ ์ž…๋ ฅ์—†์ด ์‹คํ–‰์‹œํ‚ค๋Š” ๋ฐฉ๋ฒ•

 

1. ํ•ด๋‹น ๊ณ„์ •์˜ .impalarc ํŒŒ์ผ ์ƒ์„ฑ

  $ vi /home/user1/.impalarc

 

2. ์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œ Command-Line Option๊ณผ Configuration File Setting ๋น„๊ตํ•˜์—ฌ .impalarc ํŒŒ์ผ ์ž‘์„ฑ

  ๐Ÿ”— ์ฐธ๊ณ  ์‚ฌ์ดํŠธ: https://impala.apache.org/docs/build/html/topics/impala_shell_options.html 

 

3. impalarc ํŒŒ์ผ ์ž‘์„ฑ

 โ—พ ์‹คํ–‰ํ•˜๋ ค๋Š” impala-shell ๋ช…๋ น์–ด

impala-shell --protocol='hs2-http' --ssl -i 'coordinator-Impala.site.com:443' -u user1 -l --ldap_password_cmd="echo -n 'Password'"

 

 โ—พ impalarc ํŒŒ์ผ ๋‚ด์šฉ

[impala]
protocol=hs2-http
impalad=coordinator-Impala.site.com:443
user=user1
ldap_password_cmd=echo -n "PASSWORD"
use_ldap=true
ssl=true

 

4. ๋ณธ์ธ ๊ณ„์ •๋งŒ ํŒŒ์ผ ์ฝ์„ ์ˆ˜ ์žˆ๋„๋ก ๊ถŒํ•œ ์„ค์ •

  $ chmod 600 /home/user1/.impalarc

 

5. ํ•ด๋‹น ์ž‘์—… ์ดํ›„ impala-shell ๋ช…๋ น์–ด๋งŒ ์‹คํ–‰ํ•˜๋ฉด ๋ณ„๋„์˜ ์˜ต์…˜์—†์ด ์ž๋™ ๋กœ๊ทธ์ธ๋จ