Created
May 27, 2012 12:04
-
-
Save jorisbontje/2811226 to your computer and use it in GitHub Desktop.
Export the Cloudera Manager configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERNAME=admin | |
PASSWORD=admin | |
SCM_URL=http://localhost:7180 | |
COOKIES_FILE=cookies.txt | |
EXPORT_FILE=export.txt | |
wget -q --post-data="j_username=${USERNAME}&j_password=${PASSWORD}" --save-cookies ${COOKIES_FILE} --keep-session-cookies -O /dev/null ${SCM_URL}/j_spring_security_check | |
wget -q -O ${EXPORT_FILE} --load-cookies ${COOKIES_FILE} ${SCM_URL}/cmf/exportCLI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment