Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faust Error: Address In Used #777

Open
johnnyb1509 opened this issue Mar 14, 2023 · 0 comments
Open

Faust Error: Address In Used #777

johnnyb1509 opened this issue Mar 14, 2023 · 0 comments

Comments

@johnnyb1509
Copy link

Hi all,

I'm new user of Faust and don't know how to fix the problem when I ran 3 faust apps in the same time. Specifically:

  • I have 3 python file, In each, I run 1 service for listening from kafka server. Each file contains code as below, the different in each file is just the TOPIC_INPUT name.
app = faust.App(
    'UserInfoReceive',
    broker= 'kafka://' + SERVER_INPUT + f':{DVWAP_KAFKA_PORT}',
    value_serializer='raw',
)

kafka_topic = app.topic(TOPIC_INPUT)

@app.agent(kafka_topic)
async def userSettingInput(streamInput):
    async for msg in streamInput:
        userResgister(msg)

Expected behavior

Expect 3 python files can run normally and listen to the comming kafka event

Actual behavior

it generates OSError as this img

image

Versions

  • Python version: 3.9
  • Faust version 1.10.4
  • Operating system WSL Linux Subsystem on Windows
  • Kafka version kafka-python==1.4.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant