[ 
https://issues.apache.org/jira/browse/AMBARI-18437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

DIPAYAN BHOWMICK reopened AMBARI-18437:
---------------------------------------

closed this by mistake.

> Hive view not working on LLAP enabled cluster
> ---------------------------------------------
>
>                 Key: AMBARI-18437
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18437
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-views
>    Affects Versions: 2.4.0
>            Reporter: DIPAYAN BHOWMICK
>            Assignee: DIPAYAN BHOWMICK
>         Attachments: AMBARI-18437.1.branch-2.4.patch, 
> AMBARI-18437.branch-2.4.patch
>
>
> Hive view shows "java.lang.Exception: Cannot connect to hive" error
> {code:java}
> 20 Sep 2016 08:44:15,298 ERROR 
> [HiveViewActorSystem-akka.actor.jdbc-connector-dispatcher-5] [HIVE 1.5.0 
> HiveView123] JdbcConnector:419 - Failed to create a hive connection. {}
> org.apache.ambari.view.hive2.internal.ConnectionException: Cannot open a hive 
> connection with connect string 
> jdbc:hive2://hn0-4117d3.ambhviewl-am25-ssh.h8.internal.cloudapp.net:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;;hive.server2.proxy.user=admin
>         at 
> org.apache.ambari.view.hive2.internal.HiveConnectionWrapper.connect(HiveConnectionWrapper.java:63)
>         at 
> org.apache.ambari.view.hive2.actor.JdbcConnector.connect(JdbcConnector.java:416)
>         at 
> org.apache.ambari.view.hive2.actor.JdbcConnector.handleNonLifecycleMessage(JdbcConnector.java:179)
>         at 
> org.apache.ambari.view.hive2.actor.JdbcConnector.handleMessage(JdbcConnector.java:171)
>         at 
> org.apache.ambari.view.hive2.actor.HiveActor.onReceive(HiveActor.java:38)
>         at 
> akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
>         at akka.actor.Actor$class.aroundReceive(Actor.scala:467)
>         at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)
>         at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
>         at akka.actor.ActorCell.invoke(ActorCell.scala:487)
>         at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
>         at akka.dispatch.Mailbox.run(Mailbox.scala:220)
>         at 
> akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:397)
>         at 
> scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
>         at 
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
>         at 
> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
>         at 
> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> Caused by: java.sql.SQLException: 
> org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read HiveServer2 
> configs from ZooKeeper
>         at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:134)
>         at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
>         at java.sql.DriverManager.getConnection(DriverManager.java:664)
>         at java.sql.DriverManager.getConnection(DriverManager.java:247)
>         at 
> org.apache.ambari.view.hive2.internal.HiveConnectionWrapper.connect(HiveConnectionWrapper.java:59)
>         ... 16 more
> Caused by: org.apache.hive.jdbc.ZooKeeperHiveClientException: Unable to read 
> HiveServer2 configs from ZooKeeper
>         at 
> org.apache.hive.jdbc.ZooKeeperHiveClientHelper.configureConnParams(ZooKeeperHiveClientHelper.java:96)
>         at org.apache.hive.jdbc.Utils.configureConnParams(Utils.java:514)
>         at org.apache.hive.jdbc.Utils.parseURL(Utils.java:434)
>         at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:132)
>         ... 20 more 
> Caused by: org.apache.zookeeper.KeeperException$NoNodeException: 
> KeeperErrorCode = NoNode for /hiveserver2
>         at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
>         at 
> org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
>         at org.apache.zookeeper.ZooKeeper.getChildren(ZooKeeper.java:1590)
>         at 
> org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:214)
>         at 
> org.apache.curator.framework.imps.GetChildrenBuilderImpl$3.call(GetChildrenBuilderImpl.java:203)
>         at org.apache.curator.RetryLoop.callWithRetry(RetryLoop.java:107)
>         at 
> org.apache.curator.framework.imps.GetChildrenBuilderImpl.pathInForeground(GetChildrenBuilderImpl.java:199)
>         at 
> org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:191)
>         at 
> org.apache.curator.framework.imps.GetChildrenBuilderImpl.forPath(GetChildrenBuilderImpl.java:38)
>         at 
> org.apache.hive.jdbc.ZooKeeperHiveClientHelper.configureConnParams(ZooKeeperHiveClientHelper.java:64)
>         ... 23 more
> 20 Sep 2016 08:44:15,314 ERROR [ambari-client-thread-2148] [HIVE 1.5.0 
> HiveView123] DDLDelegatorImpl:200 - Failed to get the table description
> 20 Sep 2016 08:44:15,319 ERROR [ambari-client-thread-2148] [HIVE 1.5.0 
> HiveView123] ServiceFormattedException:97 - Cannot connect to hive
> 20 Sep 2016 08:44:15,319 ERROR [ambari-client-thread-2148] [HIVE 1.5.0 
> HiveView123] ServiceFormattedException:98 - java.lang.Exception: Cannot 
> connect to hive
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to