Errors loading flume custom interceptor in Hortonworks



0

Hi All,

I created a flume interceptor to convert CSV stream to Gson. I didn't find any FLUME_HOME environment variable created by HDP. I just created plugins.d directory inside /etc/flume 

Under plugins.d directory I created directory with the name of the project /etc/flume/plugins.d/myproject with lib and libext directories

I put the project jar inside /etc/flume/plugins.d/myproject/lib

And the external librairies /etc/flume/plugins.d/myproject/libext

Now, when I have restarted the flume agent I got this error  org.apache.flume.FlumeException: Interceptor.Builder not found

How I have declared my interceptor

----

a1.sources.r1.interceptors = i2
a1.sources.r1.interceptors.i2.type=com.dezyre.hadoop.flume.InterceptorCsvToJson$Builder

----

Thanks in advance for your help

Halim


Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password