<?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 - question in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102356#M14846</link>
    <description>&lt;P&gt;In one terminal, I started the agent.  I opened a new terminal in sandbox.  when I give telnet it is giving error: command not found.&lt;/P&gt;&lt;P&gt;$ telnet localhost 44444&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2016 09:20:06 GMT</pubDate>
    <dc:creator>vidyaranya_kupp</dc:creator>
    <dc:date>2016-01-13T09:20:06Z</dc:date>
    <item>
      <title>Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102352#M14842</link>
      <description>&lt;P&gt;Can anybody help me to test the flume on sandbox.  I did the following 3 steps.  Please help on next steps to test this. Like: telnet and input the data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A.&lt;/STRONG&gt;  I have installed flume on HDP sandbox the Hortonworks documentation (yum install flume; yum install flume-agent).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;B.&lt;/STRONG&gt;  I have used the sample agent given; shown below.&lt;/P&gt;&lt;P&gt;=============================&lt;/P&gt;&lt;P&gt;Configuration File&lt;/P&gt;&lt;P&gt;==============================&lt;/P&gt;&lt;P&gt;# example.conf: A single-node Flume configuration &lt;/P&gt;&lt;P&gt;# Name the components on this agent &lt;/P&gt;&lt;P&gt;a1.sources = r1 &lt;/P&gt;&lt;P&gt;a1.sinks = k1 &lt;/P&gt;&lt;P&gt;a1.channels = c1&lt;/P&gt;&lt;P&gt;# Describe/configure the source &lt;/P&gt;&lt;P&gt; a1.sources.r1.type = netcat &lt;/P&gt;&lt;P&gt; a1.sources.r1.bind = localhost &lt;/P&gt;&lt;P&gt;a1.sources.r1.port = 44444&lt;/P&gt;&lt;P&gt;# Describe the &lt;/P&gt;&lt;P&gt;sink 
a1.sinks.k1.type = logger&lt;/P&gt;&lt;P&gt;# Use a channel that buffers events in memory &lt;/P&gt;&lt;P&gt;a1.channels.c1.type = memory &lt;/P&gt;&lt;P&gt;a1.channels.c1.capacity = 1000 &lt;/P&gt;&lt;P&gt;a1.channels.c1.transactionCapacity = 100&lt;/P&gt;&lt;P&gt;# Bind the source and sink to the channel &lt;/P&gt;&lt;P&gt;a1.sources.r1.channels = c1 &lt;/P&gt;&lt;P&gt;a1.sinks.k1.channel = c1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C.&lt;/STRONG&gt;  Started the agent: flume-ng agent -n &amp;lt;agent-name&amp;gt; -f &amp;lt;configuration file name&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:17:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102352#M14842</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-13T08:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102353#M14843</link>
      <description>&lt;P&gt;You can send events on localhost port 44444 and it will show them in the logs. That basically shows that the Flume Agent is working as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:24:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102353#M14843</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2016-01-13T08:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102354#M14844</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/222/deepesh.html" nodeid="222"&gt;@Deepesh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you give sequence of commands step by step.  Plz.  I am new bee.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 08:50:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102354#M14844</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-13T08:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102355#M14845</link>
      <description>&lt;P&gt;You can find detailed steps in the &lt;A href="https://flume.apache.org/FlumeUserGuide.html#a-simple-example"&gt;Apache Flume User Guide&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:06:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102355#M14845</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2016-01-13T09:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102356#M14846</link>
      <description>&lt;P&gt;In one terminal, I started the agent.  I opened a new terminal in sandbox.  when I give telnet it is giving error: command not found.&lt;/P&gt;&lt;P&gt;$ telnet localhost 44444&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:20:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102356#M14846</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-13T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102357#M14847</link>
      <description>&lt;P&gt;If you are logged in as root user, you can install telnet package&lt;/P&gt;&lt;PRE&gt;yum -y install telnet&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:28:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102357#M14847</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2016-01-13T09:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102358#M14848</link>
      <description>&lt;P&gt;Great.  Thanks a lot Deepesh.  Succeeded.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 09:38:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102358#M14848</guid>
      <dc:creator>vidyaranya_kupp</dc:creator>
      <dc:date>2016-01-13T09:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flume - question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102359#M14849</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1870/vidyaranyakuppa.html" nodeid="1870"&gt;@Vidya SK&lt;/A&gt;&lt;P&gt; here's my tutorial for telnet source and logger sink and additionally hdfs sink.&lt;/P&gt;&lt;P&gt;# tested on HDP 2.3.2 Sandbox&lt;/P&gt;&lt;P&gt;# Example, single-node Flume configuration using netcat source, memory channel and logger sink&lt;/P&gt;&lt;P&gt;# install telnet&lt;/P&gt;&lt;P&gt;yum install -y telnet&lt;/P&gt;&lt;P&gt;# start flume with this configuration&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;# example.conf: A single-node Flume configuration&lt;/P&gt;&lt;P&gt;# Name the components on this agent&lt;/P&gt;&lt;P&gt;a1.sources = r1&lt;/P&gt;&lt;P&gt;a1.sinks = k1&lt;/P&gt;&lt;P&gt;a1.channels = c1&lt;/P&gt;&lt;P&gt;# Describe/configure the source&lt;/P&gt;&lt;P&gt;a1.sources.r1.type = netcat&lt;/P&gt;&lt;P&gt;a1.sources.r1.bind = localhost&lt;/P&gt;&lt;P&gt;a1.sources.r1.port = 44444&lt;/P&gt;&lt;P&gt;# Describe the sink&lt;/P&gt;&lt;P&gt;a1.sinks.k1.type = logger&lt;/P&gt;&lt;P&gt;# Use a channel which buffers events in memory&lt;/P&gt;&lt;P&gt;a1.channels.c1.type = memory&lt;/P&gt;&lt;P&gt;a1.channels.c1.capacity = 1000&lt;/P&gt;&lt;P&gt;a1.channels.c1.transactionCapacity = 100&lt;/P&gt;&lt;P&gt;# Bind the source and sink to the channel&lt;/P&gt;&lt;P&gt;a1.sources.r1.channels = c1&lt;/P&gt;&lt;P&gt;a1.sinks.k1.channel = c1&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;# in another terminal&lt;/P&gt;&lt;P&gt;telnet localhost 44444&lt;/P&gt;&lt;P&gt;# type anything&lt;/P&gt;&lt;P&gt;# then in the original terminal&lt;/P&gt;&lt;P&gt;tail -f /var/log/flume/flume-a1.log&lt;/P&gt;&lt;P&gt;# Exampe netcat source, hdfs sink as DataStream&lt;/P&gt;&lt;P&gt;# create hdfs flume directory&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfs -mkdir /flume&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfs -mkdir /flume/events&lt;/P&gt;&lt;P&gt;sudo -u hdfs hdfs dfs -chown -R flume:hdfs /flume/events&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;# example.conf: A single-node Flume configuration&lt;/P&gt;&lt;P&gt;# Name the components on this agent&lt;/P&gt;&lt;P&gt;a1.sources = r1&lt;/P&gt;&lt;P&gt;a1.sinks = k1&lt;/P&gt;&lt;P&gt;a1.channels = c1&lt;/P&gt;&lt;P&gt;# Describe/configure the source&lt;/P&gt;&lt;P&gt;a1.sources.r1.type = netcat&lt;/P&gt;&lt;P&gt;a1.sources.r1.bind = localhost&lt;/P&gt;&lt;P&gt;a1.sources.r1.port = 44444&lt;/P&gt;&lt;P&gt;# Describe the sink&lt;/P&gt;&lt;P&gt;a1.sinks.k1.type = hdfs&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.path = /flume/events/%y-%m-%d/%H%M/%S&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.filePrefix = events-&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.round = true&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.roundValue = 10&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.roundUnit = minute&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.useLocalTimeStamp = true&lt;/P&gt;&lt;P&gt;a1.sinks.k1.hdfs.fileType = DataStream&lt;/P&gt;&lt;P&gt;# Use a channel which buffers events in memory&lt;/P&gt;&lt;P&gt;a1.channels.c1.type = memory&lt;/P&gt;&lt;P&gt;a1.channels.c1.capacity = 1000&lt;/P&gt;&lt;P&gt;a1.channels.c1.transactionCapacity = 100&lt;/P&gt;&lt;P&gt;# Bind the source and sink to the channel&lt;/P&gt;&lt;P&gt;a1.sources.r1.channels = c1&lt;/P&gt;&lt;P&gt;a1.sinks.k1.channel = c1&lt;/P&gt;&lt;P&gt;******************************************************************************&lt;/P&gt;&lt;P&gt;# show the output in hdfs&lt;/P&gt;&lt;P&gt;sudo -u flume hdfs dfs -ls /flume/events/&lt;/P&gt;&lt;P&gt;sudo -u flume hdfs dfs -ls /flume/events/&lt;/P&gt;&lt;P&gt;sudo -u flume hdfs dfs -cat /flume/events/*/*/*/*&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 13:20:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Flume-question/m-p/102359#M14849</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-13T13:20:15Z</dc:date>
    </item>
  </channel>
</rss>

