<?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: Zeppelin, Livy, Hive, Kerberos &amp;amp; Spark 1.6 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59849#M57707</link>
    <description>OK, I have tried and it seems it's best to copy hive-site.xml into livy/conf/ and it will load it in every session.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;</description>
    <pubDate>Tue, 12 Sep 2017 22:49:27 GMT</pubDate>
    <dc:creator>maziyar</dc:creator>
    <dc:date>2017-09-12T22:49:27Z</dc:date>
    <item>
      <title>Zeppelin, Livy, Hive, Kerberos &amp; Spark 1.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/52494#M57704</link>
      <description>&lt;P&gt;When using Zeppelin with Livy on a kerberized CDH 5.10 cluster and trying to access Hive, I ran into this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/SPARK-13478" target="_blank"&gt;https://issues.apache.org/jira/browse/SPARK-13478&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since Hive on Spark is not supported on Spark 2.0 in CDH 5.10, only on Spark 1.6, when will the fix be backported please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fix is available for Spark 1.6.4, so one option would be to upgrade Hive on Spark to support Spark 1.6.4. What is your timeline to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when will you provide&amp;nbsp;packaging for LIvy?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:18:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/52494#M57704</guid>
      <dc:creator>____r</dc:creator>
      <dc:date>2022-09-16T11:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin, Livy, Hive, Kerberos &amp; Spark 1.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/52574#M57705</link>
      <description>&lt;P&gt;Solved this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;Hive from Zeppelin w. Livy &amp;amp; Spark2&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Add spark2 to the kerberized cluster&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://www.cloudera.com/downloads/spark2/2-0.html" target="_self"&gt;https://www.cloudera.com/downloads/spark2/2-0.html&lt;/A&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cm_mc_addon_services.html#concept_qbv_3jk_bn__section_xvc_yqj_bn" target="_self"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cm_mc_addon_services.html#concept_qbv_3jk_bn__section_xvc_yqj_bn&lt;/A&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Adapt livy to recognize spark2 if required&lt;/P&gt;&lt;P class="p1"&gt;&lt;A href="https://community.cloudera.com/t5/Web-UI-Hue-Beeswax/Spark-2-0-livy-server-3/td-p/48562" target="_self"&gt;https://community.cloudera.com/t5/Web-UI-Hue-Beeswax/Spark-2-0-livy-server-3/td-p/48562&lt;/A&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#build livy for spark2
mvn clean package -DskipTests -Dspark-2.0 -Dscala-2.11

#make livy hive aware
sudo ln -s /etc/hive/conf/hive-site.xml /etc/spark/conf/hive-site.xml

#make a livy user
sudo useradd livy

#create a logs dir
mkdir logs

#change the ownership of everything
sudo chown -R livy:livy ./*

#start livy with the right config (see below)
sudo -u livy /opt/livy/bin/livy-server

livy-env.sh
===============================================
export SPARK_HOME=/opt/cloudera/parcels/SPARK2/lib/spark2
export HADOOP_HOME=/opt/cloudera/parcels/CDH
export SPARK_CONF_DIR=/etc/spark/conf
export HADOOP_CONF_DIR=/etc/hadoop/conf

livy.conf
===============================================
# What spark master Livy sessions should use.
livy.spark.master = yarn

# What spark deploy mode Livy sessions should use.
livy.spark.deployMode = cluster

# If livy should impersonate the requesting users when creating a new session.
livy.impersonation.enabled = true

# Whether to enable HiveContext in livy interpreter, if it is true hive-site.xml will be detected
# on user request and then livy server classpath automatically.
livy.repl.enableHiveContext = true

livy.server.launch.kerberos.keytab = /opt/livy/livy.keytab
livy.server.launch.kerberos.principal=livy/server.fqdn@XXX

livy.impersonation.enabled = true
livy.server.auth.type = kerberos

livy.server.auth.kerberos.keytab=/opt/livy/spnego.keytab
livy.server.auth.kerberos.principal=HTTP/server.fqdn@XXX

livy.server.access_control.enabled=true
livy.server.access_control.users=zeppelin,livy

livy.superusers=zeppelin,livy&lt;/PRE&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;You must also configure Zeppelin for kerberos auth:&lt;/P&gt;&lt;PRE&gt;zeppelin.livy.keytab	/opt/zeppelin/zeppelin.keytab
zeppelin.livy.principal	zeppelin@XXX
zeppelin.livy.url	http://host.fqdn:8998&lt;/PRE&gt;&lt;P class="p2"&gt;Finally you must configure shiro, I used an LDAP backend with&amp;nbsp;&lt;SPAN class="s1"&gt;org.apache.zeppelin.realm.LdapGroupRealm plugin to enable LDAP user group awareness (take care to set up groupOfNames not posixGroup...).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p3"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 12:34:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/52574#M57705</guid>
      <dc:creator>____r</dc:creator>
      <dc:date>2017-03-23T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin, Livy, Hive, Kerberos &amp; Spark 1.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59848#M57706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something to be careful is when you do "Deploy Client Configuration" on your Spark2 service it will remove the link or the hive-site.xml if you have copied it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed all these config are in&amp;nbsp;$SPARK_CONF_DIR/yarn-conf/ so I wish Livy could also load them when it starts up the Spark.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 22:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59848#M57706</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2017-09-12T22:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin, Livy, Hive, Kerberos &amp; Spark 1.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59849#M57707</link>
      <description>OK, I have tried and it seems it's best to copy hive-site.xml into livy/conf/ and it will load it in every session.&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2017 22:49:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59849#M57707</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2017-09-12T22:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Zeppelin, Livy, Hive, Kerberos &amp; Spark 1.6</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59933#M57708</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Set this in livy-env.sh instead to get it working in a more maintainable way:&lt;BR /&gt;export HADOOP_CONF_DIR=/etc/hive/conf</description>
      <pubDate>Thu, 14 Sep 2017 19:42:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Zeppelin-Livy-Hive-Kerberos-amp-Spark-1-6/m-p/59933#M57708</guid>
      <dc:creator>____r</dc:creator>
      <dc:date>2017-09-14T19:42:22Z</dc:date>
    </item>
  </channel>
</rss>

