FAQ
Hi,

I am setting the rack ID using the python v6 api and it fails with the
below error, I think it's a bug. Can someone confirm?

  Note: This works with v5 API, but not with v6

host = api.get_host(<hostname>)

LOG.info('Setting host: %s to rack /default/%s' %(host.hostname, k))

host.set_rack_id('<rack id>')


Exception---

   File "build/bdist.macosx-10.9-intel/egg/cm_api/endpoints/hosts.py", line
187, in set_rack_id

   File "build/bdist.macosx-10.9-intel/egg/cm_api/endpoints/hosts.py", line
100, in _put

TypeError: _put() takes exactly 1 argument (4 given)



API

def set_rack_id(self, rackId):

     """

     Update the rack ID of this host.

     """

     self.rackId = rackId

     self._put()

To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 5 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedApr 22, '14 at 7:43p
activeApr 23, '14 at 12:07a
posts5
users2
websitecloudera.com
irc#hadoop

2 users in discussion

Vikram Bajaj: 3 posts Philip Langdale: 2 posts

People

Translate

site design / logo © 2022 Grokbase