Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Community Articles

Find and share helpful community-sourced technical articles.
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!
Labels (1)
avatar
Rising Star

OBJECTIVE:

Delete the cluster added in the Dataplane using utility script provided in the product.

OVERVIEW:

DPS-1.1 doesn't support the deletion of added clusters from the UI. If the users want to delete the clusters added in the Dataplane , an utility script is provided which can be used for deleting the HDP Clusters added.

PREREQUISITES:

Install jq : jq is a lightweight and flexible command-line JSON processor.

STEPS:

  1. By default, "rm_dp_cluster.sh" script will be located at /usr/dp/current/core/bin.
  2. Execute the rm_dp_cluster.sh script by providing the following parameters
    • DP_JWT : Value of dp_jwt cookie from a valid users browser sessionn
    • HADOOP_JWT : Value of hadoop-jwt cookie from a valid users browser session
    • DP_HOST_NAME : Hostname or IP address of the DataPlane server
    • CLUSTER_NAME: Ambari Cluster Name of the cluster to delete
    • DATA_CENTER_NAME : Name of the cluster datacenter to delete
  • For e.g:
  • Format:
    ./rm_dp_cluster.sh <DP_JWT> <HADOOP_JWT> <DP_HOST_NAME> <CLUSTER_NAME> <DATA_CENTER_NAME>

    Executing the script:

    [root@dphost-mramasami-dlm-test-1 bin]# ./rm_dp_cluster.sh "eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE1Mjk5NjAzMTksInVzZXIiOiJ7XCJpZFwiOjIsXCJ1c2VybmFtZVwiOlwiYWRtaW4xXCIsXCJhdmF0YXJcIjpudWxsLFwicm9sZXNcIjpbXCJTVVBFUkFETUlOXCIsXCJJTkZSQUFETUlOXCJdLFwic2VydmljZXNcIjpbXCJkbG1cIl0sXCJkaXNwbGF5XCI6XCJhZG1pbjFcIixcInBhc3N3b3JkXCI6XCJcIixcImFjdGl2ZVwiOnRydWUsXCJkY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c-uEPSuNocCYmCYCpoh55sHzjj2VVRHa4-t7-pPYQNQaCX_vjXnvjQW2UYvMZpoyMRsAcaNHTAUm0zyidJ3q7zOLzasjZx4iRYnp1ttYa2F9Cdb8FpEJ6Qh8xNoZCLM0HH9mJC8fCMrd87IOX0Gw6dP9rYe58IRIMy3pvPW3sMnIUV_mtxFLGrL7tV1i8ubpXA3kSPOpKtk-YqshWy48Q2IPabGkI5mdAHukyKpW8IZHtTcYdMKHN9p2W7nCFu03gDorxDF4MkvLVgv3LF5-RL0zaqzgjY0kQ-gwZ--8-qX8QdvdNhr2Vg88DG2GnVRZc1tXFuHZDfHfQ3nCSiyITRw8hGlPN6GidZwRyXgg8-Ku9rSqv9AbUbEUeF9_XHR4fc5G_qsBmdF5KurTYmifXF0PcVFejjl1_10kVpUeTK4J_Qg21FLHWDwd6rwCZWspaXLyUmhS0kzHymrsutSmN0" 172.22.118.100 onpremdlm SFO_DC

    Output:

    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 29166 0 29166 0 0 93490 0 --:--:-- --:--:-- --:--:-- 93781
    Found cluster with name onpremdlm in DataCenter SFO_DC having id 2
    Do you want to delete this cluster? (yes / no)? yes
    Deleting cluster...
    true
    

    Now the onpremdlm successfully deleted.

    2,173 Views
    0 Kudos
    Comments
    avatar
    Cloudera Employee

    cookies provided should belong to Super Administrator id "admin"

    Version history
    Last update:
    ‎06-25-2018 09:05 PM
    Updated by:
    Contributors