cd docker_hdp_services/
- Modify /etc/docker/daemon.json on all nodes in the cluster to include the following configuration options.
{
"live-restore" : true,
"debug": true,
"insecure-registries" : ["<docker registry>:5000"],
"dns": ["<yarn registry dns ip addr>"]
}
- Restart Docker on all nodes.
cd hbase/
docker build -t hbase .
docker tag hbase <docker registry>:5000/hbase
docker push <docker registry>:5000/hbase
hdfs dfs -copyFromLocal /etc/hadoop/conf/core-site.xml .
hdfs dfs -copyFromLocal /etc/hadoop/conf/hdfs-site.xml .
yarn app -launch hbase hbase.json
cd hive/
docker build -t hive .
docker tag hive <docker registry>:5000/hive
docker push <docker registry>:5000/hive
su - hive
hdfs dfs -copyFromLocal /etc/hadoop/conf/core-site.xml .
hdfs dfs -copyFromLocal /etc/hadoop/conf/hdfs-site.xml .
hdfs dfs -copyFromLocal /etc/hadoop/conf/yarn-site.xml .
yarn app -launch hive hive.json