๐ปTech/๐hadoop
[zeppelin] hive interpreter ์ฐ๋ ๋ฐฉ๋ฒ
_viper_
2020. 6. 12. 12:44
๋ฐ์ํ
Zeppelin ์ค์น ํ hive๋ฅผ ์ฌ์ฉํ๋ ค๋ฉด interpreter๋ฅผ ์ถ๊ฐ ํด์ค์ผ ํฉ๋๋ค.
์ถ๊ฐํ์ง ์๊ณ ์ฌ์ฉํ๋ฉด ์๋ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
Error: Either no interpreter named hive or it is not binded to this note
์์ธ : hive interpreter ์์ฑํ์ง ์๊ณ %hive ์ฌ์ฉ์ ๋ฐ์
Error : zeppelin Unable to read HiveServer2 configs from ZooKeeper
์์ธ : hive url ์ฃผ์๊ฐ ์๋ชป๋ผ์ ๋ฐ์
1. Zeppelin ๋ก๊ทธ์ธ
2. ์ค๋ฅธ์ชฝ ์๋จ์ Interpreter ํด๋ฆญ
3. Interpreter ํ๋ฉด
4. ์ค๋ฅธ์ชฝ ์๋จ์ create ๋ฒํผ์ ํด๋ฆญํ๊ณ hive interpreter๋ฅผ ์ค์ ํด ์ค๋๋ค.
5. Interpreter Name : hive / Interpreter group : jdbc
6. Properties ์ค์ ์ ํด์ค๋๋ค
- ์ ์ํ hive ๊ณ์ ,password,url ์ ๋ ฅํด ์ค๋๋ค
PropertyValue
hive.driver | org.apache.hive.jdbc.HiveDriver |
hive.url | jdbc:hive2://localhost:10000 |
hive.user | hiveUser |
hive.password | hivePassword |
7. ์ค์ ์ด ์๋ฃ๋๋ฉด Zeppelin ๋ฉ์ธ ํ๋ฉด์ผ๋ก ์์ note ์์ฑ ์ hive interpreter๋ก ์์ฑํด์ฃผ๊ณ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค.