<?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: Hive View Create New Instance in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173896#M46045</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2547/muanang.html"&gt;Michael Dennis "MD" Uanang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are multiple errors in your logs:&lt;/P&gt;&lt;P&gt;1. Below error indicates that it is not able to locate "/etc/krb5.conf" file.  Or may be it is not readable because of incorrect file permission issues.&lt;/P&gt;&lt;PRE&gt;Caused by: KrbException: Cannot locate default realm
	at sun.security.krb5.Config.getDefaultRealm(Config.java:1029)
	... 93 more&lt;/PRE&gt;&lt;P&gt;2. Looks like the view is not created properly.  YOu shoudl recreate the view using "local cluster" option.&lt;/P&gt;&lt;PRE&gt;15 Nov 2016 09:02:23,706  WARN [qtp-ambari-client-6023] ViewRegistry:855 - Could not find the cluster identified by OLDclusterNAME.&lt;/PRE&gt;&lt;P&gt;3.  Following error also indicates that you have kerberos installed, but it is not properly installed.  See below "KerberosUtil.getDefaultRealm"&lt;/P&gt;&lt;PRE&gt;15 Nov 2016 09:02:23,707 ERROR [qtp-ambari-client-6023] ViewContextImpl:241 - Failed to get username
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor617.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.security.authentication.util.KerberosUtil.getDefaultRealm(KerberosUtil.java:84)
	at org.apache.ambari.server.view.ViewContextImpl.getUsername(ViewContextImpl.java:233)
	at org.apache.ambari.view.hive.utils.SharedObjectsFactory.getTagName(SharedObjectsFactory.java:145)&lt;/PRE&gt;&lt;P&gt;If you are using kerberos then you should setup the "&lt;STRONG&gt;WebHDFS Authentication&lt;/STRONG&gt;" and "&lt;STRONG&gt;Hive Authentication&lt;/STRONG&gt;" attribute of your HiveView with the principal defined in it as described in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/section_kerberos_setup_hive_view.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/section_kerberos_setup_hive_view.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2016 11:42:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-11-15T11:42:14Z</dc:date>
    <item>
      <title>Hive View Create New Instance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173893#M46042</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm trying to crate new instance for my hive view, but I couldn't see where the "Create Instance" anywhere on Ambari&amp;gt;Views as stated here in guide below; &lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/creating_the_hive_view_instance.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/creating_the_hive_view_instance.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 14:49:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173893#M46042</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-11-14T14:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Create New Instance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173894#M46043</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2547/muanang.html"&gt;Michael Dennis "MD" Uanang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Are you getting any error in the "/var/log/ambari-server/ambari-server.log" ?&lt;/P&gt;&lt;P&gt;Is it kerberized error? &lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 14:51:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173894#M46043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-14T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Create New Instance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173895#M46044</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3823/joysensharma.html" nodeid="3823"&gt;@jss&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1. Yes I'm getting errors. See below;&lt;/P&gt;&lt;PRE&gt;Caused by: KrbException: Cannot locate default realm
	at sun.security.krb5.Config.getDefaultRealm(Config.java:1029)
	... 93 more
15 Nov 2016 09:02:23,706  WARN [qtp-ambari-client-6023] ViewRegistry:855 - Could not find the cluster identified by OLDclusterNAME.
15 Nov 2016 09:02:23,707 ERROR [qtp-ambari-client-6023] ViewContextImpl:241 - Failed to get username
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor617.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.security.authentication.util.KerberosUtil.getDefaultRealm(KerberosUtil.java:84)
	at org.apache.ambari.server.view.ViewContextImpl.getUsername(ViewContextImpl.java:233)
	at org.apache.ambari.view.hive.utils.SharedObjectsFactory.getTagName(SharedObjectsFactory.java:145)



&lt;/PRE&gt;&lt;P&gt;2. I'm not in kerberized mode. :? But I have ranger on my cluster. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 09:06:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173895#M46044</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-11-15T09:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Create New Instance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173896#M46045</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2547/muanang.html"&gt;Michael Dennis "MD" Uanang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are multiple errors in your logs:&lt;/P&gt;&lt;P&gt;1. Below error indicates that it is not able to locate "/etc/krb5.conf" file.  Or may be it is not readable because of incorrect file permission issues.&lt;/P&gt;&lt;PRE&gt;Caused by: KrbException: Cannot locate default realm
	at sun.security.krb5.Config.getDefaultRealm(Config.java:1029)
	... 93 more&lt;/PRE&gt;&lt;P&gt;2. Looks like the view is not created properly.  YOu shoudl recreate the view using "local cluster" option.&lt;/P&gt;&lt;PRE&gt;15 Nov 2016 09:02:23,706  WARN [qtp-ambari-client-6023] ViewRegistry:855 - Could not find the cluster identified by OLDclusterNAME.&lt;/PRE&gt;&lt;P&gt;3.  Following error also indicates that you have kerberos installed, but it is not properly installed.  See below "KerberosUtil.getDefaultRealm"&lt;/P&gt;&lt;PRE&gt;15 Nov 2016 09:02:23,707 ERROR [qtp-ambari-client-6023] ViewContextImpl:241 - Failed to get username
java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor617.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.hadoop.security.authentication.util.KerberosUtil.getDefaultRealm(KerberosUtil.java:84)
	at org.apache.ambari.server.view.ViewContextImpl.getUsername(ViewContextImpl.java:233)
	at org.apache.ambari.view.hive.utils.SharedObjectsFactory.getTagName(SharedObjectsFactory.java:145)&lt;/PRE&gt;&lt;P&gt;If you are using kerberos then you should setup the "&lt;STRONG&gt;WebHDFS Authentication&lt;/STRONG&gt;" and "&lt;STRONG&gt;Hive Authentication&lt;/STRONG&gt;" attribute of your HiveView with the principal defined in it as described in the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/section_kerberos_setup_hive_view.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.1.0/bk_ambari_views_guide/content/section_kerberos_setup_hive_view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:42:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173896#M46045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-15T11:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hive View Create New Instance</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173897#M46046</link>
      <description>&lt;P&gt;WOW. Thank you for laying it out for me. 
For #2, how can I recreate the view?
Do I need to resolve issue #1 and #3 first? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 11:29:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-View-Create-New-Instance/m-p/173897#M46046</guid>
      <dc:creator>muanang</dc:creator>
      <dc:date>2016-11-16T11:29:01Z</dc:date>
    </item>
  </channel>
</rss>

