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

Connection refused with the right host #17

Closed
biablopes opened this issue Jul 19, 2022 · 4 comments
Closed

Connection refused with the right host #17

biablopes opened this issue Jul 19, 2022 · 4 comments

Comments

@biablopes
Copy link

Hi folks!
I'm trying to use the pentaho library and using CarteTransOperator. My problem is that I created the Airflow connection with all the params, but my connection is always refused with the message:
HTTPConnectionPool(host='localhost', port=8081): Max retries exceeded with url: /kettle/executeTrans/?user=&pass=&rep=repo&trans=test&level=Basic (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f13c76d0c50>: Failed to establish a new connection: [Errno 111] Connection refused',).
Am I doing something wrong? I'm follow the documentation.

@piffall
Copy link
Member

piffall commented Jul 19, 2022

Hi @biablopes

This error usually indicates that Carte Server may not be running at http://localhost:8081

Here it is how your Connection should looks like.
image

@biablopes
Copy link
Author

Hi @piffall tks for your reply.

I was using the http in the host position, but after change to the schema, I continuos with the same error.
My carte instace is running em localhost:8081 as well, if I try to run the process in the http directly it's run as well.

This is my configuration:
image

This is my carte instance:
image

Maybe my DAG configuration can be wrong, this is what I'm using:
trans1 = CarteTransOperator(
pdi_conn_id='pdi_default',
task_id="test",
trans="test",
dag=dag)

Tks for your help!

@piffall
Copy link
Member

piffall commented Jul 19, 2022

Hi again @biablopes

That should work. Please, check if the error is the same. If it is, you have some network communication issue. Maybe you are using Docker for airflow?

Thanks.

@biablopes
Copy link
Author

Hi @piffall,

Yes, I was trying on Docker, after your comment, I installed the Airflow locally and the error is the same. But ok, I will be continuos trying. Now that I know that my configurations is ok, maybe I find another way. Tks for your help!

@piffall piffall closed this as completed Jul 21, 2022
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

2 participants