nick-zh
Repos
38
Followers
23
Following
12

PHP Kafka extension, supports also Redpanda

C
17
4

PHP Kafka producer / consumer library with PHP Avro support, based on php-simple-kafka-client

7
1

Kafka eagle for docker

54
36

PHP Kafka resources / projects

0
2

🚀 Coroutine-based concurrency library for PHP

17595
3150

The Apache Kafka C/C++ library

C
6238
2747

Events

Created at 12 hours ago
Created at 12 hours ago
nick-zh delete branch improve-fix
Created at 2 days ago
improve fix

I would suggest adjusting the previous fix to this, reason being, that the previous logic did:

  • make sure Avro was valid according to the Avro specification
  • make sure we were able to register the schema

The new logic:

  • makes sure we can register the schema It also relies that any schema registry variant (official schema registry, karapace, redpanda) adhere to the same avro specs without bugs. This is less save and the additional check should be kept imho
Created at 3 days ago
nick-zh create branch improve-fix
Created at 3 days ago

feat(MPM-668): Remove additional parsing of the schema (#41)

  • Docker and composer changes

  • Avoid additional parsing of the schema

Created at 3 days ago
error /usr/bin/env: ‘bash\r’: No such file or directory

i think this is also cause if there is no \n on the last line, because dos2unix did not give a change. new images are being pushed, hope this resolves it

Created at 1 week ago
can provide docker settings

Hello Yes you can use this file as reference to see which env variables you can pass: https://github.com/nick-zh/docker-kafka-eagle/blob/main/system-config.properties I hope this helps :v:

Created at 1 week ago

Update README.md

Created at 2 weeks ago

Update README.md

Created at 3 weeks ago
EFS: Add backup option

i still think we need at least the logic of point 2, as it should be possible to enable / disable backup for an EFS if a backup strategy is explicitly set, from what i can see, this can be achieved with put_backup_policy

Created at 3 weeks ago
Question: How to support maintainers

Then all I can say is: Thank you very much for all the effort that all of you are putting in. I highly appreciate it 💪 Many thanks and have a great day!

Created at 3 weeks ago
Question: How to support maintainers

Summary

Is there a way to support the work of the current maintainers? For example is a Github Sponsorship planned? As my time is very limited atm and i cannot help out, i would still like to show my appreciation for this project with a sponsorship or something similar :heart:

Sry is not a feature request, but there was no matching category :sweat_smile:

Issue Type

Feature Idea

Component Name

none

Additional Information


Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct
Created at 3 weeks ago
Question: How to support maintainers

@tremble @marknet15 if setting this up for the ansible collections org is not wanted or in spirit, consider setting it up on your personal profile (and encourage other contributors to do the same), i am sure there are some people out there that would like to show their appreciation with a small gesture for the support they are getting in this project :heart:

Happy day :v:

Created at 4 weeks ago
能不能做个3.0+版本的镜像
Created at 4 weeks ago
能不能做个3.0+版本的镜像

latest has been updated and tag 3.0.1 is now also available :v:

Created at 4 weeks ago
nick-zh create branch 3.0.1
Created at 4 weeks ago

update to latest version

Created at 4 weeks ago
closed issue
Missing 3.0.0 tag

@smartloli thx for all your hard work. I see 3.0.0 was released on the homepage, but the tag here in github is missing :cry:

Created at 4 weeks ago
Update README.md

Thank you 👍

Created at 1 month ago

Update README.md (#15)

Created at 1 month ago
pull request closed
Update README.md

add default test user/pwd

Created at 1 month ago
多节点部署问题

多节点(swarm)我是这么部署的,如果要加入eagle,需要怎么配置

docker stack deploy -c docker-compose.yml swarm --resolve-image=never --with-registry-auth #部署命令

version: '3.4'

services:
  zk-1: &zk
    image: confluentinc/cp-zookeeper:latest
    env_file:
      - zk-common.env
    environment:
      ZOOKEEPER_SERVER_ID: 1
      ZOOKEEPER_SERVERS: 0.0.0.0:2888:3888;zk-2:2888:3888;zk-3:2888:3888
    volumes:
      - zk-1:/var/lib/zookeeper/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-01]
  zk-2:
    <<: *zk
    environment:
      ZOOKEEPER_SERVER_ID: 2
      ZOOKEEPER_SERVERS: zk-1:2888:3888;0.0.0.0:2888:3888;zk-3:2888:3888
    volumes:
      - zk-2:/var/lib/zookeeper/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-02]
  zk-3:
    <<: *zk
    environment:
      ZOOKEEPER_SERVER_ID: 3
      ZOOKEEPER_SERVERS: zk-1:2888:3888;zk-2:2888:3888;0.0.0.0:2888:3888
    volumes:
      - zk-3:/var/lib/zookeeper/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-03]
  kafka-1: &kafka
    image: confluentinc/cp-kafka:latest
    env_file:
      - kafka-common.env
    environment:
      KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka-1:9192,EXTERNAL://localhost:9092
      KAFKA_JMX_HOSTNAME: kafka-1
    ports:
      - 9092:9092
    volumes:
      - kafka-1:/var/lib/kafka/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-01]
  kafka-2:
    <<: *kafka
    environment:
      KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka-2:9192,EXTERNAL://localhost:9093
      KAFKA_JMX_HOSTNAME: kafka-2
    ports:
      - 9093:9092
    volumes:
      - kafka-2:/var/lib/kafka/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-02]
  kafka-3:
    <<: *kafka
    environment:
      KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka-3:9192,EXTERNAL://localhost:9094
      KAFKA_JMX_HOSTNAME: kafka-3
    ports:
      - 9094:9092
    volumes:
      - kafka-3:/var/lib/kafka/data
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-03]
  kafka-manager:
    image: sheepkiller/kafka-manager
    environment:
      ZK_HOSTS: zk-1:2181,zk-2:2181,zk-3:2181
      JMX_PORT: 9181
      APPLICATION_SECRET: letmein
    ports:
      - 9000:9000
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-01]

  visualizer:
    image: dockersamples/visualizer:latest
    ports:
      - "8080:8080"
    stop_grace_period: 1m30s
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
    deploy:
      placement:
        constraints: [node.role == manager]
        constraints: [node.hostname == kafka-01-01]

volumes:
  zk-1:
  zk-2:
  zk-3:
  kafka-1:
  kafka-2:
  kafka-3:
#   name: kafka #可自定义存储名

Created at 1 month ago
多节点部署问题

closing this for now, feel free to re-open if you are still having problems

Created at 1 month ago
opened issue
Missing 3.0.0 tag

@smartloli thx for all your hard work. I see 3.0.0 was released on the homepage, but the tag here in github is missing :cry:

Created at 1 month ago

allow php8 (#51)

  • allow php8
  • add nightly (8rc)
  • adjust ci

[FT] Drop PHP 7.2 and add PHP 7.4 and 8.0 (#53)

  • Increase default versions for PHP and XDebug in Dockerfile
  • Use PHP 7.4 in PHP shell wrapper
  • Install XDebug from source in Dockerfile
  • Use composer v2 in Makefile
  • Remove now useless --no-suggest option
  • Migrate to new PHPUnit config format
  • Add wait-for-it scripts
  • Add GitHub actions CI scripts
  • Remove travis
  • Update Makefile
  • Remove custom XDebug options in Dockerfile
  • Remove phpstan from composer.json
  • Add composer binary to docker image in Dockerfile
  • PHPUnit v 9.4 is required for PHP8 compat
  • Add phpstan.phar to .gitignore
  • Fix badges in README.md
  • Fix copypasta from avro serde repository
  • Require guzzle promises ^1.4.0 for PHP 8.0 support
  • Add required env vars for integration test

[FT] Allow passing schema references (#54)

See https://docs.confluent.io/5.5.0/schema-registry/serdes-develop/index.html#referenced-schemas for more details.

Replace outdated download link for cs fixer

[CI] Only publish code coverage on master push

Update SimpleCacheAdapter.php (#60)

When using SimpleCacheAdapter with the Laravel Redis cache adapter, the method getIdWithHash tries to return the string representation of the value in the store directly. Giving the following exception Symfony\Component\Debug\Exception\FatalThrowableError with message 'Return value of FlixTech\SchemaRegistryApi\Registry\Cache\SimpleCacheAdapter::getIdWithHash() must be of the type int or null, string returned'

Co-authored-by: Thomas Ploch profiploch@gmail.com

support non-root paths in base_uri (#62)

  • support non-root paths in base_uri

resolves #61

Given a Guzzle client with a base uri like http://example.com/myregistryliveshere/.

Requests where created with a relative path with a leading /. Guzzle interprets this as a path from the root and replaces /myregistryliveshere/ with the given path.

To make Guzzle combine the path correctly with the given base_uri, the relative path must not start with a /. Then it is appended at the end of the base_uri, preserving the path in the base_uri.

  • fixed unit tests for Functions.php

After removing the leading "/" from the requests the unit tests failed, because they still expected the leading "/". So removed this from the tests as well to match the code in Functions again.

Co-authored-by: Mario Eberhard mario.eberhard@bertschi.com Co-authored-by: Thomas Ploch profiploch@gmail.com

Add support for guzzle 7 (#64)

Once the UriTemplate class was heavily used and it had been removed from Guzzle 7 it was not possible to add support for the next guzzle major version.

Replace usages of UriTemplate with sprintf calls and update composer.json with support for guzzle 7.

Fixes #57 Fixes #55

[CI] Upgrade CI dependencies (#65)

  • Remove Guzzle 6.x
  • Allow PHP 8.1
  • Remove PHPUnit 8.x
  • Upgrade PHP-CS-Fixer, PHPStan and composer versions
  • Update xdebug version
  • Update & optimize GH actions
  • Fix docker-compose.yml for new CP versions
  • Increase timeout for schema registry startup

Allow guzzlehttp/psr7 ^1.7|^2.1 (#66)

Update flix-tech/avro (#67)

  • Update flix-tech/avro
  • Bump avro version to 4.3

Use proper 8.1 php target in GitHub action checks (#70)

Fixed error message for connection exceptions (#68)

  • Fixed message for connection exceptions
  • Unnecessary class import deleted
  • Fixed PHP 8.1 version

Update codeclimate action to version 3.0.0

Enable XDebug coverage mode in phpunit action

Fix XDebug setting again

Created at 1 month ago

fix nested array record item (#3)

Chore/check ci (#4)

  • Bump stuff

  • Bump stuff

  • Bump stuff

  • Bump stuff

feat(MPM-601):setCodeowners (#5)

Created at 1 month ago