From 5e84902dd78030160133bdd0a278401c60bbe86e Mon Sep 17 00:00:00 2001 From: Nihaal George Date: Fri, 10 May 2019 09:10:40 -0400 Subject: [PATCH] fixing oozie --- ooziescripts/highAltitude.properties | 17 +++++++++ ooziescripts/workflow.xml | 56 ++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 ooziescripts/highAltitude.properties create mode 100644 ooziescripts/workflow.xml diff --git a/ooziescripts/highAltitude.properties b/ooziescripts/highAltitude.properties new file mode 100644 index 0000000..6f2ba53 --- /dev/null +++ b/ooziescripts/highAltitude.properties @@ -0,0 +1,17 @@ +name-node=hdfs://10.128.0.4:8020 +jobTracker=10.128.0.4:8050 +pigOutputPath=/tmp/openflight/oozieoutput/highAltitude/ +pigScript=/openflight/features/high_altitude.pig +airportsLocation=/tmp/openflight/airports.dat +airlinesLocation=/tmp/openflight/airlines.dat +routesLocation=/tmp/openflight/routes.dat +planesLocation=/tmp/openflight/planes.dat +outputLocation=/tmp/openflight/output/mostConnectedAirports/ +n=10 +sqlScript=/openflight/SQLscripts/highAltitudesSQL.sh +TableName=highAltitudes +exportDir=/tmp/openflight/oozieoutput/highAltitude/part-r-00000 +oozie.wf.application.path=${name-node}/tmp/deploy/ooziescripts/ooziescripts +oozie.use.system.libpath=true +oozie.libpath=/tmp/shared/jars +oozie.action.sharelib.for.sqoop=sqoop,hcatalog,hive \ No newline at end of file diff --git a/ooziescripts/workflow.xml b/ooziescripts/workflow.xml new file mode 100644 index 0000000..e0dfc53 --- /dev/null +++ b/ooziescripts/workflow.xml @@ -0,0 +1,56 @@ + + + + + ${jobTracker} + ${name-node} + + + + + + airportsLocation=${airportsLocation} + airlinesLocation=${airlinesLocation} + routesLocation=${routesLocation} + planesLocation=${planesLocation} + outputLocation=${outputLocation} + n=${n} + + + + + + + ${sqlScript} + ${sqlScript} + + + + + + + ${jobTracker} + ${name-node} + sqoop export --connect jdbc:mysql://10.128.0.4:3306/OpenAnalysis --username hive --password admin -m 1 --table ${TableName} --export-dir ${exportDir} --input-fields-terminated-by ',' --input-null-string '\\N' --input-null-non-string '\\N' + + + + + + + Pig Action Failed, error message + [${wf:errorMessage(wf:lastErrorNode())}] + + + + SQL Action Failed, error message + [${wf:errorMessage(wf:lastErrorNode())}] + + + + Sqoop Action Failed, error message + [${wf:errorMessage(wf:lastErrorNode())}] + + + + \ No newline at end of file