<?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 error- Unable to open a session in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151799#M52913</link>
    <description>&lt;P&gt;Thanks for your reply &lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/etc/hosts does have the sandbox entry. Please see the below code&lt;/P&gt;&lt;PRE&gt;
[root@sandbox Lab7.2]# cat /etc/hosts
127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2      sandbox.hortonworks.com
&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Jan 2017 21:05:26 GMT</pubDate>
    <dc:creator>raviinfo001</dc:creator>
    <dc:date>2017-01-30T21:05:26Z</dc:date>
    <item>
      <title>HIVE error- Unable to open a session</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151797#M52911</link>
      <description>&lt;P&gt;When ever I tried to start a HIVE session I get the following error. I restarted hiveserver and ambari but no luck. Could any one please help me?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;PRE&gt;Logging initialized using configuration in file:/etc/hive/2.5.0.0-1245/0/hive-log4j.properties Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgumentException: java.net.UnknownHostException: sandbox at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:523) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.util.RunJar.run(RunJar.java:233) at org.apache.hadoop.util.RunJar.main(RunJar.java:148) Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: sandbox at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:411) at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:311) at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176) at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:688) at org.apache.hadoop.hdfs.DFSClient.&amp;lt;init&amp;gt;(DFSClient.java:629) at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:159) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2761) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2795) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2777) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:386) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:506) ... 8 more Caused by: java.net.UnknownHostException: sandbox ... 21 more

&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:32:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151797#M52911</guid>
      <dc:creator>raviinfo001</dc:creator>
      <dc:date>2017-01-30T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE error- Unable to open a session</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151798#M52912</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15676/raviinfo001.html" nodeid="15676"&gt;@Rav Reddy&lt;/A&gt;&lt;P&gt;UnknownHostException for hostname sandbox. Please verify that /etc/hosts or dns has the hostname entry "sandbox" on the host you are trying to use hive command. Like&lt;/P&gt;&lt;P&gt;#vi /etc/hosts&lt;/P&gt;&lt;P&gt;&amp;lt;IPAddre&amp;gt; sandbox.&amp;lt;FQDN&amp;gt; sandbox&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:35:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151798#M52912</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-01-30T20:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE error- Unable to open a session</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151799#M52913</link>
      <description>&lt;P&gt;Thanks for your reply &lt;A rel="user" href="https://community.cloudera.com/users/3576/rguruvannagari.html" nodeid="3576"&gt;@rguruvannagari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/etc/hosts does have the sandbox entry. Please see the below code&lt;/P&gt;&lt;PRE&gt;
[root@sandbox Lab7.2]# cat /etc/hosts
127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2      sandbox.hortonworks.com
&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 21:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151799#M52913</guid>
      <dc:creator>raviinfo001</dc:creator>
      <dc:date>2017-01-30T21:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE error- Unable to open a session</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151800#M52914</link>
      <description>&lt;P&gt;Please set it as below and try &lt;/P&gt;&lt;PRE&gt;[root@sandbox Lab7.2]# cat /etc/hosts
127.0.0.1       localhost
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2      sandbox.hortonworks.com sandbox    #####added sandbox
&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2017 21:08:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151800#M52914</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-01-30T21:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE error- Unable to open a session</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151801#M52915</link>
      <description>&lt;P&gt;It worked Thanks &lt;A href="https://community.hortonworks.com/questions/80459/hive-error-unable-to-open-a-session.html#"&gt;@rguruvannagari&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:47:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-error-Unable-to-open-a-session/m-p/151801#M52915</guid>
      <dc:creator>raviinfo001</dc:creator>
      <dc:date>2017-01-31T18:47:51Z</dc:date>
    </item>
  </channel>
</rss>

