<?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: We have a requirement to connect to Hive database using custom c#. The issue we are facing is using a linux generated keytab on windows CLI. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189265#M58987</link>
    <description>&lt;P&gt;Also, another option is to execute kdestroy and generate a new ticket and krb5cache.&lt;/P&gt;&lt;P&gt;The documentation you need for HDP 2.4: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/hive-jdbc-odbc-drivers.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_dataintegration/content/hive-jdbc-odbc-drivers.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 02:28:07 GMT</pubDate>
    <dc:creator>cstanca</dc:creator>
    <dc:date>2017-04-06T02:28:07Z</dc:date>
    <item>
      <title>We have a requirement to connect to Hive database using custom c#. The issue we are facing is using a linux generated keytab on windows CLI.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189263#M58985</link>
      <description>&lt;P&gt;Error we are getting is below.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/18e9c2274fb59b4b182c980591e51eb3576ed53e/68747470733a2f2f6f75746c6f6f6b2e6f66666963652e636f6d2f6f77612f736572766963652e7376632f732f47657446696c654174746163686d656e743f69643d41414d6b414745354e574d35597a41774c54686c5a574d744e446c68597930354f5459774c54517759324a6a4d5441304f5463784d7742474141414141414173624974774744734b524a5734576a6f496d79376642774332715274324b743458544c4e3925324674445978544f4241414141483773644141427259307a6b316925324262543448456148666643754f6d414144544c326b3041414142456741514150367270786f39466d645067517853654479426e5a4525334426582d4f57412d43414e4152593d62563169754e61337a4536784754515a65356375756f445034526842664e51594251655a597577584473367a764f43755f5f42554d616f384778724a59364a644d4f435378566951504a342e266973496d616765507265766965773d54727565" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:25:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189263#M58985</guid>
      <dc:creator>Anilbagga08</dc:creator>
      <dc:date>2022-09-16T11:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: We have a requirement to connect to Hive database using custom c#. The issue we are facing is using a linux generated keytab on windows CLI.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189264#M58986</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/10581/anilbagga08.html"&gt;Anil Bagga&lt;/A&gt;&lt;/P&gt;&lt;H2&gt;Problem&lt;/H2&gt;&lt;P&gt;when ading a key to hte keytab file with the kadmin, a error could be encountered:&lt;/P&gt;&lt;P&gt;Unsupported key table format version number while adding key to keytab&lt;/P&gt;&lt;H2&gt;Cause&lt;/H2&gt;&lt;P&gt;local file to which you want to export the key (/etc/krb5.keytab) is in an incorrect format.
This is usually because you have tried to create an empty file (using touch or similar commands) beforehand, and then export the key into it.&lt;/P&gt;&lt;H2&gt;Diagnosing the problem&lt;/H2&gt;&lt;P&gt;To verify that this is indeed the case, try running klist  on the existing file to which you are attempting to export the key (you should run it in the source and target environment where the file is originated/used): &lt;/P&gt;&lt;PRE&gt;example:sudo klist -k /etc/keytab&lt;/PRE&gt;&lt;P&gt;It should return&lt;/P&gt;&lt;PRE&gt;klist: Unsupported key table format version number while starting keytab scan&lt;/PRE&gt;&lt;H2&gt;Resolving the problem&lt;/H2&gt;&lt;P&gt;This usually happens when the local file to which you want to export the key (/etc/krb5.keytab) is in an incorrect format. The most common reason why this would happen is if you have tried to create an empty file (using touch or similar commands) beforehand, and then export the key into it. &lt;/P&gt;&lt;P&gt;To verify that this is indeed the case, try running kliston the existing file to which you are attempting to export the key: &lt;/P&gt;&lt;PRE&gt;sudo klist -k /etc/keytab&lt;/PRE&gt;&lt;PRE&gt;klist: Unsupported key table format version number while starting keytab scan&lt;/PRE&gt;&lt;P&gt;if this is not the cause, use another option:&lt;/P&gt;&lt;P&gt;execute kdestroy and generate a new ticket and krb5cache”&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2017 23:35:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189264#M58986</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2017-04-05T23:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: We have a requirement to connect to Hive database using custom c#. The issue we are facing is using a linux generated keytab on windows CLI.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189265#M58987</link>
      <description>&lt;P&gt;Also, another option is to execute kdestroy and generate a new ticket and krb5cache.&lt;/P&gt;&lt;P&gt;The documentation you need for HDP 2.4: &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_dataintegration/content/hive-jdbc-odbc-drivers.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_dataintegration/content/hive-jdbc-odbc-drivers.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 02:28:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189265#M58987</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2017-04-06T02:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: We have a requirement to connect to Hive database using custom c#. The issue we are facing is using a linux generated keytab on windows CLI.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189266#M58988</link>
      <description>&lt;P&gt;executed kdestroy and generated a new ticket and krb5cache” worked&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 02:31:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/We-have-a-requirement-to-connect-to-Hive-database-using/m-p/189266#M58988</guid>
      <dc:creator>Anilbagga08</dc:creator>
      <dc:date>2017-04-06T02:31:52Z</dc:date>
    </item>
  </channel>
</rss>

