forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
28 lines
3.9 KiB
HTML
28 lines
3.9 KiB
HTML
<a name="mrs_01_1083"></a><a name="mrs_01_1083"></a>
|
|
|
|
<h1 class="topictitle1">Secondary Development Guide for Flume Third-Party Plug-ins</h1>
|
|
<div id="body1590647393118"><div class="section" id="mrs_01_1083__section115355210407"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_1083__p11747835184120">This section describes how to perform secondary development for third-party plug-ins.</p>
|
|
<p id="mrs_01_1083__p712492310251">This section applies to MRS 3.<em id="mrs_01_1083__i170841073910">x</em> or later.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1083__section0795182014111"><h4 class="sectiontitle">Prerequisites</h4><ul id="mrs_01_1083__ul161216141855"><li id="mrs_01_1083__li1361216141518">You have obtained the third-party JAR package.</li></ul>
|
|
<ul id="mrs_01_1083__ul1762919261554"><li id="mrs_01_1083__li76291726153">You have installed Flume server or client.</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1083__section063194035915"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1083__ol148204044416"><li id="mrs_01_1083__li1048174014417"><span>Compress the self-developed code into a JAR package.</span></li><li id="mrs_01_1083__li675847142313"><span>Create a directory for the plug-in.</span><p><ol type="a" id="mrs_01_1083__ol5658195102717"><li id="mrs_01_1083__li136581454276">Access the <strong id="mrs_01_1083__b396318267394">$FLUME_HOME/plugins.d</strong> path and run the following command to create a directory:<p id="mrs_01_1083__p68573589261"><strong id="mrs_01_1083__b249471655717">mkdir thirdPlugin</strong></p>
|
|
<p id="mrs_01_1083__p1076510243272"><strong id="mrs_01_1083__b8421910732">cd thirdPlugin</strong></p>
|
|
<p id="mrs_01_1083__p131678352272"><strong id="mrs_01_1083__b58115106316">mkdir lib libext</strong> <strong id="mrs_01_1083__b761233611109">native</strong></p>
|
|
<p id="mrs_01_1083__p3849125263312">The command output is displayed as follows:</p>
|
|
<p id="mrs_01_1083__p9481568612"><span><img id="mrs_01_1083__image133081673619" src="en-us_image_0000001388527202.png"></span></p>
|
|
</li><li id="mrs_01_1083__li20955115172716">Place the third-party JAR package in the <strong id="mrs_01_1083__b6233635163918">$FLUME_HOME/plugins.d/thirdPlugin/lib</strong> directory. If the JAR package depends on other JAR packages, place the depended JAR packages to the <strong id="mrs_01_1083__b8239335143913">$FLUME_HOME/ plugins.d/ thirdPlugin/libext</strong> directory, and place the local library files in <strong id="mrs_01_1083__b723953583911">$FLUME_HOME/ plugins.d/ thirdPlugin/native</strong>.</li></ol>
|
|
</p></li><li id="mrs_01_1083__li856315234418"><span>Configure the <strong id="mrs_01_1083__b1088940193912">properties.properties</strong> file in <strong id="mrs_01_1083__b10931740123919">$FLUME_HOME/conf/</strong>.</span><p><p id="mrs_01_1083__p4683122524017">For details about how to set parameters in the <strong id="mrs_01_1083__b26561541113912">properties.properties</strong> file, see the parameter list in the <strong id="mrs_01_1083__b1365724114393">properties.properties</strong> file in the corresponding typical scenario <a href="mrs_01_1059.html">Non-Encrypted Transmission</a> and <a href="mrs_01_1068.html">Encrypted Transmission</a>.</p>
|
|
<div class="note" id="mrs_01_1083__note9613172773810"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_1083__ul199731715141211"><li id="mrs_01_1083__li1297491518122"><strong id="mrs_01_1083__b15380164712395">$FLUME_HOME</strong> indicates the Flume installation path. Set this parameter based on the site requirements (server or client) when configuring third-party plug-ins.</li><li id="mrs_01_1083__li963153531211"><strong id="mrs_01_1083__b14214104194018">thirdPlugin</strong> is the name of the third-party plugin.</li></ul>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0390.html">Using Flume</a></div>
|
|
</div>
|
|
</div>
|
|
|