This commit is contained in:
newnius
2017-09-02 14:44:57 +08:00
parent 3c2b40e598
commit b5e3da77c1
6 changed files with 140 additions and 0 deletions

8
hive/2.1.1/init_hive.sh Executable file
View 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