سؤال

أرغب في جمع السجلات من وحدة التحكم مع Flume ، أبدأ Flume مع الأمر التالي:

process_which_generates_the_log | flume node_nowatch -1 -n node -c 'node : console | agentBESink("localhost", 12345)'

لكنها تقول:

10/09/22 13:59:21 Info Agent.flumenode: تحميل المواصفات من سطر الأوامر: 'العقدة: وحدة التحكم | AgentBesink ("LocalHost" ، 12345)

10/09/22 13:59:21 Warn Agent.Flumenode: استثناء تم صيده Node: Error Error: غير متوقع 'Null' في الموضع -1 السطر 0: 'Node: Console | AgentBesink ("LocalHost" ، 12345)

ماذا ينقصني؟ تتبعت كلودرا هو Howto. من المتوقع أن يعمل أليس كذلك؟

هل كانت مفيدة؟

المحلول

حسنًا ، لقد وجدت ذلك ، هناك حاجة إلى فاصلة فاصلة!

الأمر الصحيح هو:

process_which_generates_the_log | flume node_nowatch -1 -n node -c 'node : console | agentBESink("localhost", 12345);'
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top