Open mat-ale opened 5 years ago
I'm experiencing similar issues, the README file is not explicit enough.
I am trying to connect from my local machine beeline> !connect jdbc:hive2://hive-server:10000
I get unknownhostexception, please let us know on how to make beeline or jdbc connection
networks: common-network: driver: overlay
adding this in docker-compose resolved the issue for me
@mat-ale did you resolve your issue?
I have same problem
I too have the same issue and not be able to fix it.
any resolution?
I have solved it by putting the ip address instead of localhost. As i had vm machine and your local desktop and vm localhost represent two machines. I hope this will solve your issues.
the following should resolve the issue: beeline -u jdbc:hive2://
literally. do not include any host or port and let beeline figure it out. This seems to work well (embedded mode); however, remote mode, even with configuring with nosasl
does not appear to work.
OK now it is resolved:
The following needs to be done:
[startup.sh]
#!/bin/bash
hadoop fs -mkdir /tmp
hadoop fs -mkdir -p /user/hive/warehouse
hadoop fs -chmod g+w /tmp
hadoop fs -chmod g+w /user/hive/warehouse
cd $HIVE_HOME/bin
./hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console --hiveconf hive.server2.enable.doAs=false
you probably do not need --hiveconf hive.server2.thrift.port=10000
as i have also added to the hadoop-hive.env
, but it doesnt hurt.
--hiveconf hive.root.logger=INFO,console
gives me more details about problems; this is how i resolved this specific issue.
add to hadoop-hive.env
and hadoop.env
CORE_CONF_hadoop_proxyuser_hive_hosts=*
and to hadoop-hive.env
HIVE_SITE_CONF_hive_server2_thrift_bind_host=0.0.0.0
HIVE_SITE_CONF_hive_server2_thrift_port=10000
HIVE_SITE_CONF_hive_metastore_event_db_notification_api_auth=false
Logging initialized using configuration in file:/opt/hive/conf/hive-log4j2.properties Async: true
Exception in thread "main" java.lang.IllegalArgumentException: java.net.UnknownHostException: namenode
at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:378)
at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:320)
at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:176)
at org.apache.hadoop.hdfs.DFSClient.
Hi,
this is my configuration:
and HIVE should be connected to 2 more HDFS containers (
hadoop-namenode
,hadoop-datanode1
) that I have built and that are working just great on the right ports.When I run:
I get:
From
docker-compose
logs I don't see specific errors so the containers seem to work fine.Any help on this please? Thanks