Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다.
문의사항은 gooper@gooper.com로 메일을
보내주세요.
1. hiveserver2를 기동한다.
hadoop@bigdata-host:~/hive/bin$ hive --service hiveserver2
Starting HiveServer2
2. 외부 프로그램에서 hive server에 접근한다.
org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused: connect
--------------------------------조치사항-----------------------------------
hive-conf.xml에서 아래 항목의 value를 localhost에서 서비스가 되는 서버의 ip로 바꿔줘야.. 외부에서 접속이 가능함
<property>
<name>hive.server2.thrift.bind.host</name>
<value>192.168.0.39</value>
<description>Bind host on which to run the HiveServer2 Thrift interface.
Can be overridden by setting $HIVE_SERVER2_THRIFT_BIND_HOST</description>
</property>