
newnius/hiveRun Aapache Hive with Docker
Assume you already have one Hadoop cluster whose master node host is hadoop-master;
Assume you already have a Mysql server whose host is mysql;
You can specify them in conf/hive-site.xml;
docker service create \ --name hive \ --hostname hive \ --network swarm-net \ --replicas 1 \ --detach=true \ --mount type=bind,source=/etc/localtime,target=/etc/localtime \ newnius/hive:2.1.1
Init HIVE for the first time
bash$HADOOP_HOME/bin/hdfs dfs -mkdir /tmp $HADOOP_HOME/bin/hdfs dfs -mkdir -p /user/hive/warehouse $HADOOP_HOME/bin/hdfs dfs -chmod g+w /tmp $HADOOP_HOME/bin/hdfs dfs -chmod g+w /user/hive/warehouse
bashschematool --dbType mysql --initSchema
bashnohup hive --service metastore &
Run hive to start the hive shell
If the following command is executed successfully, then the installation is fine.
hiveCREATE TABLE pokes (foo INT, bar STRING);
To persist data or modify the conf files, refer to the following script.
The /config/hive path is where new conf files to be replaces, you don't have to put all the files.
bashdocker service create \ --name hive \ --hostname hive \ --network swarm-net \ --replicas 1 \ --detach=true \ --mount type=bind,source=/etc/localtime,target=/etc/localtime \ --mount type=bind,source=/data/hive/config,target=/config/hive \ newnius/hive:2.1.1




manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务