Cloudera CDH/CDP 및 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>
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
67 | hive query에서 mapreduce돌리지 않고 select하는 방법 | 2014.05.23 | 2438 |
» | hiverserver2기동시 connection refused가 발생하는 경우 조치방법 | 2014.05.22 | 2939 |
65 | import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by " |