<?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: Connecting nifi to HDFS in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/367005#M239748</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;i am getting the following error " ERROR org.apache.nifi.processors.parquet.PutParquet: PutParquet[id=c6dee132-cb63-3b8b-9148-ec10de8044c4] HDFS Configuration error - java.lang.IllegalArgumentException: Can't get Kerberos realm: java.lang.IllegalArgumentException: KrbException: Cannot locate default realm&lt;BR /&gt;↳ causes: java.lang.IllegalArgumentException: Can't get Kerberos realm&lt;BR /&gt;"&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 13:59:35 GMT</pubDate>
    <dc:creator>TB_19</dc:creator>
    <dc:date>2023-03-27T13:59:35Z</dc:date>
    <item>
      <title>Connecting nifi to HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366989#M239742</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a HDFS cluster configure to work with Kerberos and we want to use nifi processor&amp;nbsp;&lt;SPAN&gt;PutParquet&amp;nbsp;to write file into hadoop cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;do we need to configure nifi to work with kerberos too in order to connect to Hadoop?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;what are the steps i need to take in order to do the connection between the two clusters (nifi --&amp;gt; HDFS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 11:40:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366989#M239742</guid>
      <dc:creator>TB_19</dc:creator>
      <dc:date>2023-03-27T11:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting nifi to HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366990#M239743</link>
      <description>&lt;P&gt;At a minimum, this is required in NiFi to connect to the Hdfs service secured by Kerberos.&lt;/P&gt;&lt;P&gt;1. Copy of core-site.xml and hdfs-site.xml file from hdfs cluster needs to be placed on nifi host to be able to configure in for&amp;nbsp;&lt;SPAN&gt;Hadoop Configuration Resources property&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Kerberos user principal and copy of keytab file on each nifi node to able to use by KeytabCredentialsService or directly configured in processor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3. From NiFi hosts, the user who is running the nifi application "by default is nifi " should be able to obtain Kerberos tickets by using the user principal and keytab file configured in processor at&amp;nbsp; step2 ,&amp;nbsp; from KDC server which is used by HDFS Service, so krb5.conf Kerberos client file needs to be updated to respective kdc realm details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;If you found this response assisted with your issue, please take a moment and click on "&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;" below this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:15:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366990#M239743</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2023-03-27T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting nifi to HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366991#M239744</link>
      <description>&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;step 2 - a. where can i find the user principle ? b. there are several keytabs for each service . which one do i need ?&lt;/P&gt;&lt;P&gt;step 3 - its not very clear , do i need to install kerberos in nifi cluster in order to&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;connect to hdfs cluster ?&amp;nbsp; do i need to copy the krb5.conf file to nifi cluster ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:27:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366991#M239744</guid>
      <dc:creator>TB_19</dc:creator>
      <dc:date>2023-03-27T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting nifi to HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366999#M239747</link>
      <description>&lt;P&gt;Regarding step 2, You have to determine the HDFS directory where NiFi&amp;nbsp;&lt;SPAN&gt;PutParquet will write the files, and who has access to this directory path on HDFS, that user's&amp;nbsp;user principal and associated keytab is required. I assume if HDFS is secured by Kerberos then the users has to obtain the Kerberos ticket by running kinit with user principal and Keytab to access it at the HDFS&amp;nbsp; side.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;About step 3. No need to install Kerberos service, NiFi needs a Kerberos client on NiFi hosts which is by default installed on most Linux OS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;client config files located at&amp;nbsp;/etc/krb5.conf , to which Kerberos server NiFi&amp;nbsp;PutParquet should connect in order to obtain kerbeors ticket using configured user pric/keytab details, user has updated Krb5.conf file with Kerberos Server details. I mean KDC realm details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you found this additional response assisted with your issue, please take a moment and click on "&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;" below this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 13:28:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/366999#M239747</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2023-03-27T13:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting nifi to HDFS</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/367005#M239748</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;i am getting the following error " ERROR org.apache.nifi.processors.parquet.PutParquet: PutParquet[id=c6dee132-cb63-3b8b-9148-ec10de8044c4] HDFS Configuration error - java.lang.IllegalArgumentException: Can't get Kerberos realm: java.lang.IllegalArgumentException: KrbException: Cannot locate default realm&lt;BR /&gt;↳ causes: java.lang.IllegalArgumentException: Can't get Kerberos realm&lt;BR /&gt;"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 13:59:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Connecting-nifi-to-HDFS/m-p/367005#M239748</guid>
      <dc:creator>TB_19</dc:creator>
      <dc:date>2023-03-27T13:59:35Z</dc:date>
    </item>
  </channel>
</rss>

