<?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 &amp;lt; secure cluster insecure cluster &amp;gt;hdfs java.io.EOFException in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43306#M36187</link>
    <description>On your insecure cluster, even though it does not use security it may need&lt;BR /&gt;to still parse a secure username such as foo@REALM. To allow for this, you&lt;BR /&gt;need to edit on the insecure cluster's CM, the value of HDFS -&amp;gt;&lt;BR /&gt;Configuration -&amp;gt; Trusted Realms and add the value as the realm used on the&lt;BR /&gt;secure cluster. Save and restart the insecure cluster as marked by CM.&lt;BR /&gt;&lt;BR /&gt;This change won't alter your security states, its only allowed to make&lt;BR /&gt;rules to parse such secure-incoming usernames and avoid the EOFException&lt;BR /&gt;(which happens when it closes the connection being unable to parse the&lt;BR /&gt;username from the secure accessor).&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Jul 2016 06:43:31 GMT</pubDate>
    <dc:creator>Harsh J</dc:creator>
    <dc:date>2016-07-28T06:43:31Z</dc:date>
    <item>
      <title>flume + &lt; secure cluster + insecure cluster &gt;hdfs java.io.EOFException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43305#M36186</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very urgent!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are working with tow CDH5.7.1 cluster , one is the secure and another is the insecure cluster.&lt;/P&gt;&lt;P&gt;We install flume agent service with secure cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;on the secure &amp;nbsp;we run the command access insecure cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;a. &amp;nbsp;hdfs dfs -ls hdfs://cache01.dev1.fn:8020/flume/app_logs/&lt;BR /&gt;ls: End of File Exception between local host is: "arch-od-tracker04.beta1.fn/10.202.251.14"; destination host is: "cache01.dev1.fn":8020; : java.io.EOFException; For more details see: &lt;A href="http://wiki.apache.org/hadoop/EOFException" target="_blank"&gt;http://wiki.apache.org/hadoop/EOFException&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;b.&amp;nbsp;hdfs dfs -ls webhdfs://cache01.dev1.fn:50070/flume/app_logs/&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxrwxrwx - flume supergroup 0 2016-07-28 13:15 webhdfs://cache01.dev1.fn:50070/flume/app_logs/2016-07-28&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So we run the flume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----&amp;gt; &amp;nbsp; insecure cluster &amp;nbsp; (fail) with &amp;nbsp; exception of a. &amp;nbsp;&lt;SPAN&gt; java.io.EOFException;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;secure cluster &amp;nbsp; &amp;nbsp; &amp;nbsp;-----&amp;gt; secure cluster self (success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----&amp;gt; &amp;nbsp; insecure cluster &amp;nbsp; (&lt;SPAN&gt;success&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;secure cluster &amp;nbsp; &amp;nbsp; &amp;nbsp;-----&amp;gt; &lt;SPAN&gt;insecure &lt;/SPAN&gt;cluster (success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -----&amp;gt; &amp;nbsp; &lt;SPAN&gt;secure &lt;/SPAN&gt;cluster &amp;nbsp; (&lt;SPAN&gt;success&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;secure cluster &amp;nbsp; &amp;nbsp; &amp;nbsp;-----&amp;gt;&lt;SPAN&gt;secure &lt;/SPAN&gt;cluster (success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my question is how to config the flume agent to let 1 to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:38:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43305#M36186</guid>
      <dc:creator>Paul Yang</dc:creator>
      <dc:date>2016-07-28T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: flume &lt; secure cluster insecure cluster &gt;hdfs java.io.EOFException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43306#M36187</link>
      <description>On your insecure cluster, even though it does not use security it may need&lt;BR /&gt;to still parse a secure username such as foo@REALM. To allow for this, you&lt;BR /&gt;need to edit on the insecure cluster's CM, the value of HDFS -&amp;gt;&lt;BR /&gt;Configuration -&amp;gt; Trusted Realms and add the value as the realm used on the&lt;BR /&gt;secure cluster. Save and restart the insecure cluster as marked by CM.&lt;BR /&gt;&lt;BR /&gt;This change won't alter your security states, its only allowed to make&lt;BR /&gt;rules to parse such secure-incoming usernames and avoid the EOFException&lt;BR /&gt;(which happens when it closes the connection being unable to parse the&lt;BR /&gt;username from the secure accessor).&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2016 06:43:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43306#M36187</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-07-28T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: flume &lt; secure cluster insecure cluster &gt;hdfs java.io.EOFException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43307#M36188</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;SPAN&gt;Harsh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you a lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there any other solution?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because the insecure cluster is our product enviorment. we can not reboot it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can flume support the hftp or webhdfs potocal?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;there is our configruation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;agent.sources = source1&lt;BR /&gt;agent.channels = channel1 channel2&lt;BR /&gt;agent.sinks = hdfs_sink1 hdfs_sink2&lt;BR /&gt;&lt;BR /&gt;agent.sources.source1.selector.type = replicating&lt;BR /&gt;agent.sources.source1.channels = channel1 channel2&lt;BR /&gt;agent.sources.source1.type = spooldir&lt;BR /&gt;agent.sources.source1.spoolDir =/flumeDataTest&lt;BR /&gt;agent.sources.source1.interceptors = i1&lt;BR /&gt;agent.sources.source1.interceptors.i1.type = timestamp&lt;BR /&gt;agent.sources.source1.deserializer = LINE&lt;BR /&gt;agent.sources.source1.deserializer.maxLineLength = 65535&lt;BR /&gt;agent.sources.source1.decodeErrorPolicy=IGNORE&lt;/P&gt;&lt;P&gt;agent.channels.channel1.type = memory&lt;BR /&gt;agent.channels.channel1.capacity = 10000&lt;BR /&gt;agent.channels.channel1.transactionCapacity=10000&lt;/P&gt;&lt;P&gt;agent.channels.channel2.type = memory&lt;BR /&gt;agent.channels.channel2.capacity = 10000&lt;BR /&gt;agent.channels.channel2.transactionCapacity=10000&lt;/P&gt;&lt;P&gt;agent.sinks.hdfs_sink1.channel=channel1&lt;BR /&gt;agent.sinks.hdfs_sink1.type = hdfs&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.path = hdfs://arch-od-data01.beta1.fn:8020/user/kai.he/app_logs/%Y-%m-%d&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.fileType = DataStream&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.writeFormat = TEXT&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.useLocalTimeStamp=true&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.filePrefix=ev&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.inUsePrefix=.&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.request-timeout=30000&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.rollCount = 6000&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.rollInterval = 60&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.rollSize=0&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.kerberosKeytab=/tmp/kai.keytab&lt;BR /&gt;agent.sinks.hdfs_sink1.hdfs.kerberosPrincipal=kai.he@OD.BETA&lt;/P&gt;&lt;P&gt;agent.sinks.hdfs_sink2.channel=channel2&lt;BR /&gt;agent.sinks.hdfs_sink2.type = hdfs&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.path = hdfs://cache01.dev1.fn:8020/flume/app_logs/%Y-%m-%d&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.fileType = DataStream&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.writeFormat = TEXT&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.useLocalTimeStamp=true&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.filePrefix=f3&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.inUsePrefix=.&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.request-timeout=30000&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.rollCount = 6000&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.rollInterval = 60&lt;BR /&gt;agent.sinks.hdfs_sink2.hdfs.rollSize=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:02:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43307#M36188</guid>
      <dc:creator>Paul Yang</dc:creator>
      <dc:date>2016-07-28T07:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: flume &lt; secure cluster insecure cluster &gt;hdfs java.io.EOFException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43308#M36189</link>
      <description>I've not tried it, but you should be able to use webhdfs:// instead of&lt;BR /&gt;hdfs:// in that config. You need to also change the 8020 to 50070 (or your&lt;BR /&gt;custom NN HTTP port).&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:10:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43308#M36189</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-07-28T07:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: flume &lt; secure cluster insecure cluster &gt;hdfs java.io.EOFException</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43309#M36190</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HI,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Harsh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I changed the&amp;nbsp; HDFS -&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;Configuration -&amp;gt; Trusted Realms&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So the issue gone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Great! &amp;nbsp;Thanks for your&amp;nbsp;excellent work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 08:54:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/flume-lt-secure-cluster-insecure-cluster-gt-hdfs-java-io/m-p/43309#M36190</guid>
      <dc:creator>Paul Yang</dc:creator>
      <dc:date>2016-07-28T08:54:32Z</dc:date>
    </item>
  </channel>
</rss>

