<?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: Configuration kerberos authorization via JDBC for apach hive. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Configuration-kerberos-authorization-via-JDBC-for-apach-hive/m-p/391691#M247727</link>
    <description>&lt;P&gt;Could you please try the steps detailed at&amp;nbsp;&lt;A href="https://hub.docker.com/r/apache/hive" target="_blank" rel="noopener"&gt;https://hub.docker.com/r/apache/hive&lt;/A&gt;&lt;/P&gt;&lt;P class="MuiTypography-root MuiTypography-body1 css-10elszr"&gt;If you want to use your own&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;core-site.xml/hdfs-site.xml/yarn-site.xml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hive-site.xml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the service, you can provide the environment variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;HIVE_CUSTOM_CONF_DIR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the command. For example:&lt;/P&gt;&lt;P class="MuiTypography-root MuiTypography-body1 css-10elszr"&gt;Put the custom configuration file under the directory&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/opt/hive/conf&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and run:&lt;/P&gt;&lt;DIV class="MuiBox-root css-14tyjzo"&gt;&lt;DIV class="MuiStack-root css-1g4yje1"&gt;&lt;DIV class="MuiBox-root css-mu0cnk"&gt;&lt;PRE&gt;docker run -d -p 9083:9083 --&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; SERVICE_NAME=metastore \--&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; DB_DRIVER=postgres -v /opt/hive/conf:/hive_custom_conf --&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; HIVE_CUSTOM_CONF_DIR=/hive_custom_conf \--name metastore apache/hive:&lt;SPAN class="hljs-variable"&gt;${HIVE_VERSION}&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 13 Aug 2024 11:33:34 GMT</pubDate>
    <dc:creator>tarak271</dc:creator>
    <dc:date>2024-08-13T11:33:34Z</dc:date>
    <item>
      <title>Configuration kerberos authorization via JDBC for apach hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuration-kerberos-authorization-via-JDBC-for-apach-hive/m-p/391629#M247700</link>
      <description>&lt;P&gt;I'm running Apach Hive in a Docker container and using the following image:&amp;nbsp;&amp;nbsp;&lt;A href="https://github.com/big-data-europe/docker-hive" target="_blank" rel="noopener"&gt;https://github.com/big-data-europe/docker-hive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to add kerberos authorization to connect to Apach Hive via JDBC from a Java application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;everything I could find:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hive-site.xml&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.server2.authentication&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;KERBEROS&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.server2.authentication.kerberos.principal&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;hive/hive-server.example.com@EXAMPLE.COM&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;
&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hive.server2.authentication.kerberos.keytab&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;/home/mykeytab.keytab&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I generated a valid keytab file but the container start and after a while stoped.&lt;/P&gt;&lt;P&gt;There is only one configuration file in the container repository:&lt;/P&gt;&lt;P&gt;ivysettings.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;ivysettings&amp;gt;
  &amp;lt;!--name of the defaultResolver should always be 'downloadGrapes'. --&amp;gt;
  &amp;lt;settings defaultResolver="downloadGrapes"/&amp;gt;
  &amp;lt;!-- Only set maven.local.repository if not already set --&amp;gt;
  &amp;lt;property name="maven.local.repository" value="${user.home}/.m2/repository" override="false" /&amp;gt;
  &amp;lt;property name="m2-pattern"
            value="file:${maven.local.repository}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
            override="false"/&amp;gt;
  &amp;lt;resolvers&amp;gt;
    &amp;lt;!-- more resolvers can be added here --&amp;gt;
    &amp;lt;chain name="downloadGrapes"&amp;gt;
      &amp;lt;!-- This resolver uses ibiblio to find artifacts, compatible with maven2 repository --&amp;gt;
      &amp;lt;ibiblio name="central" m2compatible="true"/&amp;gt;
      &amp;lt;url name="local-maven2" m2compatible="true"&amp;gt;
        &amp;lt;artifact pattern="${m2-pattern}"/&amp;gt;
      &amp;lt;/url&amp;gt;
      &amp;lt;!-- File resolver to add jars from the local system. --&amp;gt;
      &amp;lt;filesystem name="test" checkmodified="true"&amp;gt;
        &amp;lt;artifact pattern="/tmp/[module]-[revision](-[classifier]).jar"/&amp;gt;
      &amp;lt;/filesystem&amp;gt;

    &amp;lt;/chain&amp;gt;
  &amp;lt;/resolvers&amp;gt;
&amp;lt;/ivysettings&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For what reason might this not work? It would be great to see an example of configuring kerberos for Apach Hive&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 08:49:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuration-kerberos-authorization-via-JDBC-for-apach-hive/m-p/391629#M247700</guid>
      <dc:creator>marsel9513</dc:creator>
      <dc:date>2024-08-12T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configuration kerberos authorization via JDBC for apach hive.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Configuration-kerberos-authorization-via-JDBC-for-apach-hive/m-p/391691#M247727</link>
      <description>&lt;P&gt;Could you please try the steps detailed at&amp;nbsp;&lt;A href="https://hub.docker.com/r/apache/hive" target="_blank" rel="noopener"&gt;https://hub.docker.com/r/apache/hive&lt;/A&gt;&lt;/P&gt;&lt;P class="MuiTypography-root MuiTypography-body1 css-10elszr"&gt;If you want to use your own&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;core-site.xml/hdfs-site.xml/yarn-site.xml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hive-site.xml&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the service, you can provide the environment variable&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;HIVE_CUSTOM_CONF_DIR&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for the command. For example:&lt;/P&gt;&lt;P class="MuiTypography-root MuiTypography-body1 css-10elszr"&gt;Put the custom configuration file under the directory&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/opt/hive/conf&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and run:&lt;/P&gt;&lt;DIV class="MuiBox-root css-14tyjzo"&gt;&lt;DIV class="MuiStack-root css-1g4yje1"&gt;&lt;DIV class="MuiBox-root css-mu0cnk"&gt;&lt;PRE&gt;docker run -d -p 9083:9083 --&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; SERVICE_NAME=metastore \--&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; DB_DRIVER=postgres -v /opt/hive/conf:/hive_custom_conf --&lt;SPAN class="hljs-built_in"&gt;env&lt;/SPAN&gt; HIVE_CUSTOM_CONF_DIR=/hive_custom_conf \--name metastore apache/hive:&lt;SPAN class="hljs-variable"&gt;${HIVE_VERSION}&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Aug 2024 11:33:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Configuration-kerberos-authorization-via-JDBC-for-apach-hive/m-p/391691#M247727</guid>
      <dc:creator>tarak271</dc:creator>
      <dc:date>2024-08-13T11:33:34Z</dc:date>
    </item>
  </channel>
</rss>

