如何执行Netflix参展商发布REST API?

如何执行Netflix参展商发布REST API?,rest,hadoop,apache-zookeeper,netflix,Rest,Hadoop,Apache Zookeeper,Netflix,我需要zookeeper的RESTAPI,我指的是,但我无法执行POST API 在哪里可以使用exhibitor获得示例卷曲请求。或者有人可以发布一个示例来设置配置。curl查询如下所示,它需要config作为参数 curl -i -X POST "http://hostname:8080/exhibitor/v1/config/set 那么,以任何配置作为参数的最终curl请求会是怎样的呢。所以基本上我就是不能添加参数。我想出来了。:) 您必须提供整个配置。并更改要更改的属性的值。我已经计

我需要zookeeper的RESTAPI,我指的是,但我无法执行POST API

在哪里可以使用exhibitor获得示例卷曲请求。或者有人可以发布一个示例来设置配置。curl查询如下所示,它需要config作为参数

curl -i -X POST "http://hostname:8080/exhibitor/v1/config/set
那么,以任何配置作为参数的最终curl请求会是怎样的呢。所以基本上我就是不能添加参数。

我想出来了。:)

您必须提供整个配置。并更改要更改的属性的值。

我已经计算出来了。:)

您必须提供整个配置。并更改要更改的属性的值

curl -i -X POST “http://hostname:8080/exhibitor/v1/config/set” -d '{"rollInProgress":false,"rollStatus":"n/a","rollPercentDone":0,"hostname":"hostname.com","serverId":-1,"logIndexDirectory":"","zookeeperInstallDirectory":"","zookeeperDataDirectory":"","zookeeperLogDirectory":"","serversSpec":"","backupExtra":"","zooCfgExtra":{},"javaEnvironment":"","log4jProperties":"","clientPort":0,"connectPort":0,"electionPort":0,"checkMs":0,"cleanupPeriodMs":0,"cleanupMaxFiles":10,"backupMaxStoreMs":0,"backupPeriodMs":0,"autoManageInstances":0,"autoManageInstancesSettlingPeriodMs":0,"observerThreshold":0,"controlPanel":{}}'