You can use "beeline -u jdbc:hive2://" It will connect to hive2. This is the best way to talk to hive using beeline. You don't need to specify any other things. Please let me know if this works for all who wants to use hive through beeline command.
... View more
@Jay Kumar SenSharma I have a similar issue and I am getting NetUtil.py:92 - Failed to connect to https://master1.hadoop.com:8440/ca due to [Errno 111] Connection refused I have gone through your suggestions and verified my settings. I have all the right settings in place like firewalls disabled, ambari-agent.ini file has right server name etc. I can also ping master node ip address from worker node, and I can see the responses from master. It means that both the nodes are connected. I have also added the following to ambari-agen.ini file force_https_protocol=PROTOCOL_TLSv1_2 I have also made the changes in /etc/python/cert-verification.cfg verify=disable But when I tried the command "nc -v $AMBARI_HOST 8440 " as mentioned by you, then I found that the command works in master node but not in worker node. It gives me the error message as "Connection refused". So it means that somewhere my set up is missing something. Can you suggest a solution for this problem. Please let me know if you need more details about it?
... View more