flumeを構成する通常の方法は、flumeマスターWebコンソールを使用することで、ここで簡単に説明できます。
また
インタラクティブな水路シェルコンソールを介して、以下の手順に従います。
1. $ flume shell //this brings you to the interactive flume shell console
2. in the interactive console,connect flume-master-node // this connects you to flume-master
3. in the interactive console, run "exec unconfig your_node" // this unconfig all flume configuration
4. in the interactive console, run "exec config your_node new_config" // apply new flume configuration
5. quit // exit the the interactive console
ここまでは順調ですね。
次に、Flume構成用のbashスクリプトを作成しようとしています。だから私は1、2、3、4、5をbashに絞りたいので、介入なしで毎回自動的に実行されます。
/usr/bin/flume shell << EOF #line1
connect $FLUME_MASTER #line2
exec unconfig your_node #line3
exec config your_node new_config #line4
quit #line5
EOF #line6
しかし、このbashスクリプトを実行するたびに、常に#line1で停止し、非反復モードでスムーズに実行するのではなく、インタラクティブなFlumeシェルコンソールに移動します。
インタラクティブモードを無視して、それを巧みに実行する方法を知っている人はいますか?