
ks.registries.schema-lifecycle.1.0.0.source-code.registry-lifecycle-example.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schema-lifecycle Show documentation
Show all versions of schema-lifecycle Show documentation
Registry is a framework to build metadata repositories. As part of Registry, we currently have SchemaRegistry repositories.
The newest version!
# registries configuration
schemaProviders:
- providerClass: "com.hortonworks.registries.schemaregistry.avro.AvroSchemaProvider"
defaultSerializerClass: "com.hortonworks.registries.schemaregistry.serdes.avro.AvroSnapshotSerializer"
defaultDeserializerClass: "com.hortonworks.registries.schemaregistry.serdes.avro.AvroSnapshotDeserializer"
# schema reviewer configuration
customSchemaStateExecutor:
className: "com.hortonworks.registries.examples.schema.lifecycle.executor.CustomReviewCycleExecutor"
props:
review.service.url: "http://localhost:7070"
servletFilters:
# - className: "com.hortonworks.registries.auth.server.AuthenticationFilter"
# params:
# type: "kerberos"
# kerberos.principal: "HTTP/streamline-ui-host.com"
# kerberos.keytab: "/vagrant/keytabs/http.keytab"
# kerberos.name.rules: "RULE:[2:$1@$0]([jt]t@.*EXAMPLE.COM)s/.*/$MAPRED_USER/ RULE:[2:$1@$0]([nd]n@.*EXAMPLE.COM)s/.*/$HDFS_USER/DEFAULT"
# allowed.resources: "401.html,back-default.png,favicon.ico"
- className: "com.hortonworks.registries.schemaregistry.webservice.RewriteUriFilter"
params:
# value format is [,,*|]*
# below /subjects and /schemas/ids are forwarded to /api/v1/confluent
forwardPaths: "/api/v1/confluent,/subjects/*,/schemas/ids/*"
redirectPaths: "/ui/,/"
## HA configuration
## When no configuration is set, then all the nodes in schema registry cluster are eligible to write to the backend storage.
#haConfig:
# className: com.hortonworks.registries.ha.zk.ZKLeadershipParticipant
# config:
# # This url is a list of ZK servers separated by ,
# connect.url: "localhost:2181"
# # root node prefix in ZK for this instance
# root: "/registry"
# session.timeout.ms: 30000
# connection.timeout.ms: 20000
# retry.limit: 5
# retry.base.sleep.time.ms: 1000
# retry.max.sleep.time.ms: 5000
# Filesystem based jar storage
fileStorageConfiguration:
className: "com.hortonworks.registries.common.util.LocalFileSystemStorage"
properties:
directory: "/tmp/schema-registry/jars"
# MySQL based jdbc provider configuration is:
storageProviderConfiguration:
providerClass: "com.hortonworks.registries.storage.impl.jdbc.JdbcStorageManager"
properties:
db.type: "mysql"
queryTimeoutInSecs: 30
db.properties:
dataSourceClassName: "com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
dataSource.url: "jdbc:mysql://localhost/schema_registry"
dataSource.user: "root"
dataSource.password: "root"
#swagger configuration
swagger:
resourcePackage: com.hortonworks.registries.schemaregistry.webservice
#enable CORS, may want to disable in production
enableCors: true
server:
applicationConnectors:
- type: http
port: 0
adminConnectors:
- type: http
port: 0
# Logging settings.
logging:
level: INFO
loggers:
com.hortonworks.registries: INFO
© 2015 - 2025 Weber Informatics LLC | Privacy Policy