๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ปTech/๐Ÿ’งnifi

[NiFi] Impala JDBC DBCPConnectionPool ์‚ฌ์šฉ ์˜ˆ์ œ

by _viper_ 2020. 10. 14.
๋ฐ˜์‘ํ˜•

1. Impala JDBC Connector ๋‹ค์šด๋กœ๋“œ

 

2. NiFi DBCPConnectionPool ์„ค์ •

  • Database Driver Location(s) ์—…๋กœ๋“œํ•œ ํŒŒ์ผ ๊ฒฝ๋กœ ์ž…๋ ฅ
    • /opt/cloudera/parcels/CFM/NIFI/lib/ImpalaJDBC42.jar
  • ๊ฒฝ๋กœ๋ฅผ ์ง€์ •ํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•จ
  • Validation query ์ž…๋ ฅํ•ด์ฃผ๋ฉด ์ข‹์Œ (select 1)
Could not initialize class com.cloudera.impala.jdbc42.internal.apache.thrift.transport.TSocket

 

3. Impala SQL ์˜ˆ์ œ ์ž‘์„ฑ