Permalink
Commits on Aug 5, 2016
  1. [java] Updated with v13 java source

    mthakkar committed Aug 5, 2016
Commits on May 7, 2016
  1. [java] Updated with v12 java source

    mthakkar committed May 7, 2016
Commits on Mar 10, 2016
  1. @hermancc

    [api] OPSAPS-32658. Support pools refresh starting v6

    Since it's actually been around for a while.
    
    (cherry picked from commit ff09be867c01827d465eb8e8b3075245493aac90)
    (cherry picked from commit 8846594073fe12823afb3ef17757dd8cc823debd)
    hermancc committed Mar 10, 2016
  2. @hermancc

    [api] OPSAPS-32658. Add pools refresh endpoint

    Nothing special. It's been MIA for a while.
    
    >>> from cm_api.api_client import ApiResource
    >>> api=ApiResource("nightly-1.gce.cloudera.com", username="admin", password="admin")
    >>> cluster=api.get_cluster("Cluster 1")
    >>> cmd = cluster.pools_refresh()
    
    (cherry picked from commit c38553988a42a25732d5cf499a044194072ee1d1)
    (cherry picked from commit 3b6cb12bb0ff730d14bf847d3b4c2f96a4c39d17)
    hermancc committed Mar 10, 2016
Commits on Mar 9, 2016
  1. [scm] OPSAPS-32644 addRepositories argument is not present in python API

    - Fixed the api
    (cherry picked from commit 2151df03593d14038345a423da8fd4120f82f236)
    
    (cherry picked from commit 47531a5d9c4670aac1c8089d4c76774ec5c5e73a)
    Vivek Chaudhary committed Mar 9, 2016
Commits on Mar 8, 2016
  1. [yamon] OPSAPS-32606 Add the new fields for YARN apps

    (cherry picked from commit e6bc8282f7092a260541730ce27da45bcefcf5a0)
    (cherry picked from commit 44c479034092ff51c6f206f4101a156b086f7757)
    Vikram Srivastava committed Mar 8, 2016
Commits on Feb 24, 2016
  1. @andyao1

    [scm] OPSAPS-31656 ClusterTemplates: Cardinality needs to be described

    in the exported template
    
    Added cardinality attribute to host template in cluster template
    
    (cherry picked from commit 0c8595db3519e94c9a78acaebe176007ccbd3e83)
    (cherry picked from commit 5fd588f77b0300c2bc25e6ebf508f66e338d1f22)
    Vivek Chaudhary committed with andyao1 Feb 24, 2016
Commits on Feb 23, 2016
  1. @andyao1

    OPSAPS-31990 Add dfsServices to the python API

    Added list_dfs_services to endpoints/cluster.py's ApiCluster, to match API addition in OPSAPS-31495.
    
    Testing:
    - new unit test
    - verified with manual test against CM via a simple test script:
    
    ---
    
        from cm_api.api_client import ApiResource
    
        api=ApiResource("nightly-1.vpc.cloudera.com", username="foo", password="bar")
        cluster=api.get_cluster("Cluster 1")
        apiList=cluster.list_dfs_services(view="export")
        print ("%s" %(apiList))
    ---
    
    (cherry picked from commit adef14dab858094d72173e2e5c1afee2ef81ebed)
    (cherry picked from commit e40c6259f119cc9067db9d03b092ad0e72ac5f14)
    Jayesh Seshadri committed with andyao1 Feb 19, 2016
  2. @andyao1

    [cm_api] OPSAPS-22366 Python API changes for cluster template import

    (cherry picked from commit d6c83987655a19846c09528be21c769029176c8a)
    (cherry picked from commit 4a47d5491e9ad682a8ee2769f262f014ebcd1cb5)
    Vivek Chaudhary committed with andyao1 Feb 1, 2016
Commits on Feb 13, 2016
  1. @cloudera-hudson
Commits on Sep 29, 2015
  1. [cm_api] OPSAPS-29287 add new timeseries API for v11 to sync with jav…

    …a side changes
    
    CM server side introduces queryTimeSeries(ApiTimeSeriesRequest request) in
    v11. This change adds query_timeseries_with_long_query_string to ApiResource
    to sync with server side changes.
    
    Testing done:
    End to end test:
      able to invoke new API in new python client against my cluster.
    Updated test_timeseries and following command passes:
      cm_api/python$ make clean test
    Xiaobin Zheng committed Sep 25, 2015
Commits on Sep 5, 2015
  1. @cloudera-hudson
Commits on Sep 3, 2015
  1. [DR] OPSAPS-28182 Add new field 'paused' to ApiSnapshotPolicy

    The field allows a user to pause a snapshot policy.
    lei shi committed Aug 31, 2015
Commits on Sep 1, 2015
  1. OPSAPS-27553 Add restart_service_names to endpoints/clusters.py

    To match the option added to CM API in this JIRA.
    Jayesh Seshadri committed Sep 1, 2015
Commits on Aug 28, 2015
  1. [DR] OPSAPS-28181 - Add RunAs user to the replication history/details

    Added correspoding field for runAsUser in python cm_api.
    Nachiket Vaidya committed Aug 28, 2015
  2. OPSAPS-17731 Introduce ApiHdfsReplicationArguments options

    Seemed to be missed by earlier changes:
    - logPath
    - bandwidthPerMap
    
    New ones, relevant to OPSAPS-17731:
    
    - exclusionFilters
    Jayesh Seshadri committed Aug 28, 2015
Commits on Aug 25, 2015
  1. [dr] OPSAPS-23462 Expose failed list of files via API

    Mathing change to the python clinet
    Hongbin Huang committed Aug 25, 2015
Commits on Aug 20, 2015
  1. OPSAPS-28021 [DR] Provide isActive flag in replication schedule

    Matching change to the python client
    Jayesh Seshadri committed Aug 20, 2015
Commits on Jul 28, 2015
  1. OPSAPS-27837 Fix python API wrappers that don't mark list return valu…

    …es as lists
    
    In get_yarn_application_attributes and get_impala_query_attributes, we expect
    the return to be a list but did not set so. This cause json failures when they
    are invoked.
    
    Fix:
    Set ret_is_list to True.
    
    Testing Done:
    Updated test_yarn and test_impala which was using wrong response json.
    Xiaobin Zheng committed Jul 28, 2015
Commits on Jul 23, 2015
  1. [cm_api] OPSAPS-27756 Add 'canRetry' field to ApiCommand and new

    ApiCommand.retry() endpoint.
    
    In this change attribute 'canRetry' is added to ApiCommand to keep it
    in sync with CM V11. Also added the new endpoint to retry a command.
    
    Testing done:
    make clean test
    Vivek Chaudhary committed Jul 23, 2015
Commits on Jul 22, 2015
  1. [cm_api] Add 'clouderaManagerCreatedUser' field to ApiCmPeer

    This change adds this field to CM API python client in sync with
    server side API changes for CM API v11.
    
    Testing done:
    make clean test
    Xiaobin Zheng committed Jul 22, 2015
Commits on Jul 13, 2015
  1. @technmsg

    OPSAPS-27572 fixed redirects in cm-api examples

    - sudo doesn't affect shell redirects, tee is required
    technmsg committed Jul 13, 2015
  2. @technmsg

    OPSAPS-27572 fixed bash syntax in cm-api examples

    - added double quotes to prevent globbing and word splitting
    - removed deprecated backtick operators
    - escaped all variables explicitly
    technmsg committed Jul 13, 2015
Commits on Jul 9, 2015
  1. [api] add new 'validationWarningsSuppressed' flag to ApiConfig.

    This presence of this flag indicates whether a given config is suppressible and
    the value indicates whether any configuration validation warnings are currently
    being suppressed.
    Chris Leroy committed Jul 9, 2015
Commits on Jun 30, 2015
  1. [api] Adding hostsUrl for clusters and roleInstancesUrl for services

    This commit adds a readonly hostsUrl field to ApiCluster and
    roleInstancesUrl to ApiService.
    Hayrettin Kolukisaoglu committed Jun 30, 2015
Commits on Jun 16, 2015
  1. [api] Adding 'entityStatus' as read-only field in ApiCluster

    This change adds 'entityStatus' to ApiCluster. Server side changes has been pushed
    to master as well. This change is similar to what we did for host/role/service entities.
    Xiaobin Zheng committed Jun 16, 2015
Commits on May 17, 2015
  1. [api] Add clusterRef to ApiHost

    We added clusterRef to ApiHost in CM server side. This change adds
    it to python client.
    Xiaobin Zheng committed May 17, 2015
Commits on May 14, 2015
  1. [api] OPSAPS-13725: Add entityStatus to ApiRole/Service/Host

    We introduced ApiEntityStatus in cm api. This change adds the same field to our
    python client.
    Xiaobin Zheng committed May 14, 2015
Commits on Apr 23, 2015
  1. [java] Updated with v10 java source

    mthakkar committed Apr 23, 2015
Commits on Apr 13, 2015
  1. [api] Add python binding to get metric entity types and attributes

    We expose time series entity types and time series entity attributes
    through CM API v11 at endpoints: /timeseries/entityTypes and
    /timeseries/entityTypeAttributes.
    
    This change adds python binding for the above endpoints.
    
    Unit test is added.
    Xiaobin Zheng committed Apr 13, 2015
  2. OPSAPS-26038. Conditionalize 'roles' argument.

    Tests running against older CM versions had the following
    error:
        test_support_bundle45 fails with error: Unrecognized property: 'roles' (error 400)
    
    As it turns out, we have the capability to set an API
    version when using the python client, and the client
    should take care of things like this, so I've done so.
    
    To test this, I ran:
    
      $ cp ~/src/cm_api/python/src/cm_api/endpoints/cms.py ./target/env/lib/python2.7/site-packages/cm_api/endpoints/cms.py
      $ systest.py --agents="cdh5+parcels@nightly53-{1..4}.ent.cloudera.com" run_tests -n "test_support_bundle:SupportBundleTests.test_support_bundle_45" --disable-pre-validations  --version cm53
    
    Before my change (that I manually cherrypicked in the first hand):
    
            ApiException: Unrecognized property: 'roles' (error 400)
    
            ----------------------------------------------------------------------
            Ran 1 test in 0.499s
    
            FAILED (errors=1)
            False
    
    After:
    
        ***********************************************************************
        * End test_support_bundle_45 (test_support_bundle.SupportBundleTests) *
        ***********************************************************************
    
        ----------------------------------------------------------------------
        Ran 1 test in 128.929s
    
    I also tested against nightly (5.5) to make sure this didn't regress.
    It passed.
    
        $./systest.py --agents="cdh5+parcels@nightly-{1..4}.ent.cloudera.com" run_tests -n "test_support_bundle:SupportBundleTests.test_support_bundle_45"
        --disable-pre-validations
    Philip Zeyliger committed Apr 13, 2015
Commits on Apr 9, 2015
  1. @philipl

    Revert "[py] Make scripts Python 3 compatible"

    This reverts commit 73829ba.
    philipl committed Apr 9, 2015
  2. @philipl

    Revert "[python] Additional changes for python3 compatibility"

    This reverts commit 5266328.
    philipl committed Apr 9, 2015
Commits on Apr 8, 2015
  1. [api] OPSAPS-20021: add entity name to rollup statistics in the api

    This change adds 'maxEntityName' and 'minEntityName' fields in
    ApiTimeSeriesCrossEntityMetadata.
    Xiaobin Zheng committed Apr 8, 2015
Commits on Apr 7, 2015
  1. @philipl