https://www.cloudera.com/documentation/enterprise/5-13-x/topics/quickstart_docker_container.html
tar -xzvf
docker import cloudera-quickstart-vm-5.13.0-0-beta-docker.tar
docker images
导入ID为:b54f881ba562
后台运行
docker run --hostname=quickstart.cloudera --privileged=true -t -i -d -p 9083:9083 -p 7180:7180 -p 10000:10000 -p 8888:8888 b54f881ba562 /usr/bin/docker-quickstart --name hive_server
docker run --hostname=quickstart.cloudera --privileged=true -t -i -d [IMAGE] /usr/bin/docker-quickstart
docker ps
[CONTAINER HASH]
docker attach 219adb340a66
退出是
Ctrl+p
-p 9083:9083 -p 7180:7180 -p 10000:10000 -p 2181:2181 -p 8888:8888
[root@localhost ~]# docker start yufei_01
yufei_01
[root@localhost ~]# docker stop yufei_01
yufei_01
[root@localhost ~]# docker restart yufei_01
yufei_01
[root@localhost ~]#
[root@localhost ~]# docker rm yufei_01
Error response from daemon: You cannot remove a running container 2d48fc5b7c17b01e6247cbc012013306faf1e54f24651d5e16d6db4e15f92d33. Stop the container before attempting removal or use -f
[root@localhost ~]# docker stop yufei_01
yufei_01
[root@localhost ~]# docker rm yufei_01
yufei_01
[root@localhost ~]#
beeline -u jdbc:hive2://localhost:10000 -n hdfs