<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Flume - custom user classpath by CM in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54151#M49010</link>
    <description>Modifying the flume classpath to insert the plugins directory first isn't a recommended solution, as it could cause unintended side affects due to class version incompatibilities (if thats why you are attempting to load them first).&lt;BR /&gt;&lt;BR /&gt;If you have duplicate classes with higher versions, the recommendation would be to use the maven shade plugin (&lt;A href="https://maven.apache.org/plugins/maven-shade-plugin/" target="_blank"&gt;https://maven.apache.org/plugins/maven-shade-plugin/&lt;/A&gt;) with relocation in order to load the needed duplicate classes.&lt;BR /&gt;&lt;BR /&gt;-pd</description>
    <pubDate>Wed, 26 Apr 2017 15:31:37 GMT</pubDate>
    <dc:creator>pdvorak</dc:creator>
    <dc:date>2017-04-26T15:31:37Z</dc:date>
    <item>
      <title>Flume - custom user classpath by CM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54123#M49009</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i need insert 'plugins_lib' directory at the head &amp;nbsp;of flume_classpath .&lt;/P&gt;&lt;P&gt;I solved it modifying&amp;nbsp;CDH_INSTALL_DIR/lib/flume-ng/bin/flume-ng script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;from : &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;if [[ -n "${plugin_lib}" ]]
then
FLUME_CLASSPATH="${FLUME_CLASSPATH}:${plugin_lib}"
fi&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;to:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;if [[ -n "${plugin_lib}" ]]
then
FLUME_CLASSPATH="${plugin_lib}:${FLUME_CLASSPATH}"
fi&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a production environemnt i can't alter script.&lt;/P&gt;&lt;P&gt;So,how can achieve it using cloudera manager configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:30:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54123#M49009</guid>
      <dc:creator>fcausa</dc:creator>
      <dc:date>2022-09-16T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - custom user classpath by CM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54151#M49010</link>
      <description>Modifying the flume classpath to insert the plugins directory first isn't a recommended solution, as it could cause unintended side affects due to class version incompatibilities (if thats why you are attempting to load them first).&lt;BR /&gt;&lt;BR /&gt;If you have duplicate classes with higher versions, the recommendation would be to use the maven shade plugin (&lt;A href="https://maven.apache.org/plugins/maven-shade-plugin/" target="_blank"&gt;https://maven.apache.org/plugins/maven-shade-plugin/&lt;/A&gt;) with relocation in order to load the needed duplicate classes.&lt;BR /&gt;&lt;BR /&gt;-pd</description>
      <pubDate>Wed, 26 Apr 2017 15:31:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54151#M49010</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2017-04-26T15:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - custom user classpath by CM</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54196#M49011</link>
      <description>&lt;P&gt;it works!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 09:48:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Flume-custom-user-classpath-by-CM/m-p/54196#M49011</guid>
      <dc:creator>fcausa</dc:creator>
      <dc:date>2017-04-27T09:48:18Z</dc:date>
    </item>
  </channel>
</rss>

