mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-13 09:36:44 +00:00
add hive:2.3.3
This commit is contained in:
@@ -39,6 +39,11 @@ $HADOOP_HOME/bin/hdfs dfs -chmod g+w /user/hive/warehouse
|
||||
schematool --dbType mysql --initSchema
|
||||
```
|
||||
|
||||
#### Start MetaStore service
|
||||
```bash
|
||||
nohup hive --service metastore &
|
||||
```
|
||||
|
||||
#### Validate Installation
|
||||
|
||||
Run `hive` to start the hive shell
|
||||
@@ -48,3 +53,20 @@ If the following command is executed successfully, then the installation is fine
|
||||
```hive
|
||||
CREATE TABLE pokes (foo INT, bar STRING);
|
||||
```
|
||||
|
||||
## Custom configuration
|
||||
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.
|
||||
|
||||
```bash
|
||||
docker 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
|
||||
```
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/bin/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
|
||||
|
||||
schematool --dbType mysql --initSchema
|
||||
Binary file not shown.
Reference in New Issue
Block a user