Giter Club home page Giter Club logo

cmapi's Introduction

https://cloudera.app.box.com/file/75000334202 (CM API for partners) https://cloudera.app.box.com/file/124546077676 (Navigator Lineage) https://wiki.cloudera.com/display/~svenkataramanasam/CM+API+examples https://wiki.cloudera.com/display/PRODUCT/CM+API+integration+with+other+tools

https://wiki.cloudera.com/display/COPS/CM+API+curl+usage+examples

https://archive.cloudera.com/cm6/6.1.0/generic/jar/cm_api/apidocs/index.html

https://cloudera.github.io/cm_api/docs/python-client-swagger/

https://github.com/cloudera/cm_api

escape characters

%2F - for slashes
%20 - for spaces

CM API SAMPLES

curl -su spgdevadmin:'XYZ' -X GET 'https://dal01d-gen-cdh-cmn001.dalab.syniverse.com:7183/api/v13/clusters/Dallas%20Lab%20(Corp)%20Cluster/services/impala/impalaQueries?filter=(query_duration>1ms)&from=2018-06-20&to=2018-06-20T23:59:59'

-u is for username and password authentication

curl -su admin:admin http://nightly514-1.gce.cloudera.com:7180/api/v19/clusters/Cluster%201/export > cluster.json

http://cloudera.github.io/cm_api/apidocs/v19/path__clusters_-clusterName-_services_-serviceName-_replications_-scheduleId-_run.html

to get cloudera manager config from the clusters

wget --user --password admin -O cminfo.json http://host:7180/api/v19/cm/deployment?view=export_redacted --no-check-certificate

to get the CDH config from the clusters

wget --user --password admin -O cluster_info.json http://nightly514-1.gce.cloudera.com:7180/api/v19/clusters/Cluster%201/export --no-check-certificate

3.Update scmdb.json

wget --user --password admin -O cmdb.json http://host:7180/api/v19/cm/scmDbInfo?view=export_redacted --no-check-certificate


Scripts

  1. CM dump config example

Java Example:

https://github.com/namrata01/cloudera-manager-automation

Genreric https://github.com/jameyhanson/CM_API

cmapi's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.