您配置水槽的正常方式是通過水槽主控制檯,在這裏很容易討論。在外殼/ bash腳本中配置水槽 - 避免交互式水槽外殼控制檯
OR
通過互動水槽外殼控制檯,請按照下列步驟:
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
到目前爲止好。
然後,我正在嘗試爲我的水槽配置寫一個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並將我帶到交互式水槽外殼控制檯,而不是在非迭代模式下輕鬆地運行它。
有沒有人知道如何忽略交互模式,只是輕微地運行它?
將嘗試並更新此。謝謝 :) – Shengjie