mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-13 01:36:43 +00:00
add hive
This commit is contained in:
8
hive/2.1.1/init_hive.sh
Executable file
8
hive/2.1.1/init_hive.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user