通过全局唯一ID删除Confluent模式

时间:2018-07-03 08:20:59

标签: apache-kafka confluent

https://github.com/confluentinc/schema-registry GitHub README上,它显示了通过id获取模式:

class UpperPipe(pygame.sprite.Sprite):

    def __init__(self, pipe_x, pipe_height, pipe_speed):
        super(LowerPipe, self).__init__()
        self.pipe_speed = pipe_speed
        # Either call `convert_alpha` ...
        self.image = pygame.Surface((pipe_width, display_height-(pipe_gap+pipe_height))).convert_alpha()
        self.image.fill(GREEN)
        # ... or call `set_colorkey`.
        # I think surfaces converted with convert_alpha are blitted faster.
        # self.image.set_colorkey((0, 0, 0))

        # You also don't have to create the mask repeatedly in the
        # update method. Just call it once in the __init__ method.
        self.mask = pygame.mask.from_surface(self.image)

如何删除该架构版本?

这更是一个开发周期的问题,当我们迭代完成产品时,我们要进行测试并保持整洁。

我已经删除了实际的模式

# Fetch a schema by globally unique id 1
$ curl -X GET http://localhost:8081/schemas/ids/1
  {"schema":"\"string\""}

没有任何对象

# Delete all versions of the schema registered under subject "Kafka-value"
$ curl -X DELETE http://localhost:8081/subjects/Kafka-value
  [1, 2, 3, 4, 5]

但是上面对curl -X GET http://localhost:8081/subjects []% 的GET仍然总是返回一个模式。

0 个答案:

没有答案