[jira] [Commented] (HIVE-10570) HiveServer2 shut downs due to temporary ZooKeeper unavailability, causes permanent outage instead of temporary

2015-12-10 Thread Arpan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-10570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15051104#comment-15051104
 ] 

Arpan commented on HIVE-10570:
--

Guys,

I am also facing the same issue. Is there any work around till issue gets fixed?


> HiveServer2 shut downs due to temporary ZooKeeper unavailability, causes 
> permanent outage instead of temporary
> --
>
> Key: HIVE-10570
> URL: https://issues.apache.org/jira/browse/HIVE-10570
> Project: Hive
>  Issue Type: Bug
>  Components: HiveServer2
>Affects Versions: 0.14.0
> Environment: HDP 2.2
>Reporter: Hari Sekhon
>Priority: Critical
>
> HiveServer2 should not shut down when there is temporary ZooKeeper 
> unavailability (eg. temporary network outage). This prevents retry and 
> recovery later as HiveServer2 is no longer running and therefore cannot retry 
> - HiveServer2 stays offline indefinitely until operator intervention to 
> restart it, even for minor temporary problems.
> I believe this behaviour is due to recent ZooKeeper dependency addition for 
> HiveServer2 HA.
> {code}2015-05-01 11:35:05,367 WARN  zookeeper.ClientCnxn 
> (ClientCnxn.java:run(1102)) - Session 0x14d004cb02c001e for server null, 
> unexpected error, closing socket
> connection and attempting reconnect
> java.net.SocketException: Network is unreachable
> at sun.nio.ch.Net.connect0(Native Method)
> at sun.nio.ch.Net.connect(Net.java:465)
> at sun.nio.ch.Net.connect(Net.java:457)
> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
> at 
> org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
> at 
> org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287)
> at 
> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:967)
> at 
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003)
> 2015-05-01 11:35:05,629 INFO  client.ZooKeeperSaslClient 
> (ZooKeeperSaslClient.java:run(285)) - Client will use GSSAPI as SASL 
> mechanism.
> 2015-05-01 11:35:05,630 INFO  zookeeper.ClientCnxn 
> (ClientCnxn.java:logStartConnect(975)) - Opening socket connection to server 
> /:2181. Will attempt to SASL-authenticate using Login 
> Context section 'HiveZooKeeperClient'
> 2015-05-01 11:35:05,630 ERROR zookeeper.ClientCnxnSocketNIO 
> (ClientCnxnSocketNIO.java:connect(289)) - Unable to open socket to 
> /:2181
> 2015-05-01 11:35:05,630 ERROR zookeeper.ClientCnxnSocketNIO 
> (ClientCnxnSocketNIO.java:connect(289)) - Unable to open socket to 
> /:2181
> 2015-05-01 11:35:05,630 WARN  zookeeper.ClientCnxn 
> (ClientCnxn.java:run(1102)) - Session 0x14d004cb02c001e for server null, 
> unexpected error, closing socket
> connection and attempting reconnect
> java.net.SocketException: Network is unreachable
> at sun.nio.ch.Net.connect0(Native Method)
> at sun.nio.ch.Net.connect(Net.java:465)
> at sun.nio.ch.Net.connect(Net.java:457)
> at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:670)
> at 
> org.apache.zookeeper.ClientCnxnSocketNIO.registerAndConnect(ClientCnxnSocketNIO.java:277)
> at 
> org.apache.zookeeper.ClientCnxnSocketNIO.connect(ClientCnxnSocketNIO.java:287)
> at 
> org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:967)
> at 
> org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1003)
> 2015-05-01 11:35:05,943 INFO  server.HiveServer2 (HiveServer2.java:stop(299)) 
> - Shutting down HiveServer2
> 2015-05-01 11:35:05,944 INFO  thrift.ThriftCLIService 
> (ThriftCLIService.java:stop(137)) - Thrift server has stopped
> 2015-05-01 11:35:05,944 INFO  service.AbstractService 
> (AbstractService.java:stop(125)) - Service:ThriftBinaryCLIService is stopped.
> 2015-05-01 11:35:05,944 INFO  service.AbstractService 
> (AbstractService.java:stop(125)) - Service:OperationManager is stopped.
> 2015-05-01 11:35:05,944 INFO  service.AbstractService 
> (AbstractService.java:stop(125)) - Service:SessionManager is stopped.
> 2015-05-01 11:35:05,946 INFO  server.HiveServer2 
> (HiveStringUtils.java:run(679)) - SHUTDOWN_MSG:
> /
> SHUTDOWN_MSG: Shutting down HiveServer2 at /
> /{code}
> Hari Sekhon
> http://www.linkedin.com/in/harisekhon



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


[jira] [Commented] (HIVE-11653) Beeline asks for password even when connecting with Kerberos

2015-11-25 Thread Arpan (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-11653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15026655#comment-15026655
 ] 

Arpan commented on HIVE-11653:
--

For now workaround is : pass -p "" argument. You will not need to enter the 
username and password.

$> beeline

WARNING: Use "yarn jar" to launch YARN applications.
Beeline version 1.2.1.2.3.2.0-2950 by Apache Hive

*beeline> !connect 
jdbc:hive2://:1/default;principal=hive/@ 
-p ""*

Connecting to 
jdbc:hive2://:1/default;principal=hive/@
Connected to: Apache Hive (version 1.2.1.2.3.2.0-2950)
Driver: Hive JDBC (version 1.2.1.2.3.2.0-2950)
Transaction isolation: TRANSACTION_REPEATABLE_READ

0: jdbc:hive2://> show databases;

| database_name  |
| default|

1 row selected (0.299 seconds)

> Beeline asks for password even when connecting with Kerberos
> 
>
> Key: HIVE-11653
> URL: https://issues.apache.org/jira/browse/HIVE-11653
> Project: Hive
>  Issue Type: Bug
>  Components: Beeline
>Affects Versions: 0.14.0
> Environment: Kerberos and Hive
>Reporter: Loïc C. Chanel
>
> When connecting to HiveServer via Beeline, Beeline asks for a password even 
> if Kerberos is enabled and there is a ticket in cache (kinit have been 
> successfully executed, as klist shows the ticket is in cache).



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