Bootstrap Oozie
- define admin user
cd /usr/lib/hue sudo build/env/bin/hue createsuperuser
sudo build/env/bin/hue changepassword userName
Username (leave blank to use 'root'): <enter the super user name> Email address: <your email id> Password: <password with one upper case, number, and special character> Password (again): Superuser created successfully.
-
copy files from source EMR
hadoop fs -get /user/hue/oozie/ /mnt/
aws s3 mv deployments s3://walla-oozie/ –recursive
aws s3 cp s3://walla-oozie/ oozie/ –recursive
hadoop fs -put oozie/workspaces/ /user/hue/oozie
-
imports /export jsons http://gethue.com/export-and-import-your-oozie-workflows/
-
source emr
-
cd /usr/lib/hue
-
sudo ./build/env/bin/hue dumpdata desktop.Document2 –indent 2 –natural > /home/hadoop/data.json
-
aws s3 cp /home/hadoop/data.json s3://walla-oozie/
-
-
import emr
-
aws s3 cp s3://walla-oozie/data.json /home/hadoop/
-
cd /usr/lib/hue
-
.
/build/env/bin/hue
loaddata /home/hadoop/data.json
-
-
——————————————————————————————————————————
I put a lot of thoughts into these blogs, so I could share the information in a clear and useful way. If you have any comments, thoughts, questions, or you need someone to consult with, feel free to contact me:
https://www.linkedin.com/in/omid-vahdaty/