-
下载项目
git clone https://github.com/big-data-europe/docker-hive.git
直接用大佬们造好的轮子 -
端口转发
编辑docker-compose.yml
增加一个5005:5005
-
启动hive
docker-compose up -d
启动集群
docker-compose exec hive-server bash
进入容器
hive --debug[:port=5005]
用debug模式启动hive -
启动idea
选择attach模式
注意分支尽量和docker容器中的hive版本对应