-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.sh
38 lines (35 loc) · 2.49 KB
/
main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!bin/bash
############################################################################################################
############################################################################################################
########## Content: Shell Script to run the other Shells ############################
########## Author: Jorge Quintana ############################
########## Date: January, 10th 2017 ############################
########## Contact: [email protected] ############################
############################################################################################################
############################################################################################################
############################################################################################################
############################################################################################################
########### ############################
########### This shell script execute the specific shell scripts to create the ############################
########### following processes and to validate the result ############################
########### ############################
###################### ######################################
###################### 1. Taxonomy creation ######################################
###################### 2. Migration of Sanata files ######################################
###################### 3. Creation of Hive external tables ######################################
###################### ######################################
############################################################################################################
############################################################################################################
MY_DB="$1"
MY_HIVEPORT="$2"
MY_DATAPATH="$3"
echo ""
echo "Creating the Taxonomy ... "
echo ""
source ./sh/taxonomia.sh
echo "Creating folders for each master file"
echo ""
source ./sh/folder_creation.sh ${MY_DB} ${MY_HIVEPORT} ${MY_DATAPATH}
echo "Moving data to HDFS"
echo ""
source ./sh/data_migration.sh ${MY_DB} ${MY_HIVEPORT} ${MY_DATAPATH}