Member since
09-30-2018
8
Posts
0
Kudos Received
0
Solutions
03-15-2022
08:30 AM
2 Kudos
Found a dirty workaround: generate a cookie from an API call and then use it to login into the console. As an example, in order to get the HDFS usage report, #!/bin/bash -x COOKIES=./cookies.txt USER="" PASS="" LOGIN="https://<cloudera_manager>:7183/api/version" REPORT="https://<cloudera_manager>:7183/cmf/services/11/nameservices/nameservice1/reports/currentDiskUsage?groupBy=DIRECTORY&format=CSV " SALIDA=./hdfs_usage.csv function login_cloudera(){ USER=$1 PASS=$2 wget --save-cookies ${COOKIES} --keep-session-cookies --user "${USER}" --password "$(echo ${PASS}|base64 -d)" --delete-after ${LOGIN} } function download_report(){ USER=$1 read -p "Password:" -s PASS PASS=$(echo $PASS | base64) login_cloudera $USER $PASS wget --load-cookies ${COOKIES} ${REPORT} -O ${SALIDA} rm ${COOKIES} } # MAIN USER=$1 download_report $USER
... View more
08-13-2021
04:50 AM
1 Kudo
Hi @amitshanker Thanks for the update. I can see than you had set hive.server2.webui.use.spnego as true, that means kerberos is enabled in your cluster. If spnego and kerberos are enabled then few settings needs to be changed in browser. Could you please follow the below link. https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cdh_sg_browser_access_kerberos_protected_url.html
... View more
05-04-2021
02:38 AM
1 Kudo
Try something like # curl -u admin "http://$cmhost:7180/api/v33/clusters/Cluster%201/services/IMPALA-1/impalaQueries?filter=(query_state=RUNNING%20and%20query_duration>=1000)&from=2021-05-04T00:00:00.00Z"
... View more