Member since
07-31-2016
4
Posts
0
Kudos Received
0
Solutions
07-26-2018
12:08 AM
I have 3 node cluster and install haproxy on node1. the list of hive services running on my node 1 are : Metastore server, Webcat server, and HiveServer2. one instance of hive server2 is running on node 2 and its working fine. But node1 hive server2 is not running and showing this errot: Error starting HiveServer2: could not start ThriftBinaryCLIService
org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:10000.
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:87)
at org.apache.hadoop.hive.common.auth.HiveAuthUtils.getServerSocket(HiveAuthUtils.java:87)
at org.apache.hive.service.cli.thrift.ThriftBinaryCLIService.run(ThriftBinaryCLIService.java:67)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Address already in use (Listen failed)
at java.net.PlainSocketImpl.socketListen(Native Method)
at java.net.AbstractPlainSocketImpl.listen(AbstractPlainSocketImpl.java:399)
at java.net.ServerSocket.bind(ServerSocket.java:376)
at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:106) on cli its showing haproxy is using the port 10000 [root@cm1 singhkabir880]# netstat -tulpn | grep 10000tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 882/haproxy [root@cm1 singhkabir880]# i have add hive server2 role first then install haproxy service and made below changes in : /etc/haproxy/haproxy.cfg : listen hiveserver2 :10000
#haproxy will listen in port 10000 for hiveserver2 client requests.
mode tcp
option tcplog
balance leastconn
#tcp – connection mode between haproxy to hive servers
#leastconn – requests will be sent to server with less connection
server server1 node1:10000
server server2 node2:10000 What should do i need to order to start newly added hive server2 ? Kindly Suggest.
... View more
08-16-2016
11:45 AM
1 Kudo
Ah I see, then yes I agree, replication does impact fsimage and memory footprint and that documentation should be updated to reflect that.
... View more