AnsweredAssumed Answered

How can I use the 'curl' command to get the right response of carte server of PDI?

Question asked by Ze He on Jun 5, 2019
Latest reply on Jun 8, 2019 by Ze He

When I startup a carte server like this : ./ pwd/carte-config-master-8080.xml

then I can only get response with the following link

curl -u cluster:cluster http://localhost:8080


<HEAD><TITLE>Kettle slave server</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<H2>Slave server menu</H2>
<a href="/kettle/status">Show status</a><br>


but when I visit another api like:

curl -u cluster:cluster http://localhost:8080/kettle/status

curl -u cluster:cluster http://localhost:8080/kettle/executeJob?rep=repo&user=user&pass=pass&job=job.kjb

curl -u cluster:cluster http://localhost:8080/kettle/jobStatus?name=demojob&xml=Y

nothing is returned,no errors, no outputs, so confused!

I have tried all community distributions of kettle ,but get the same result, I got mad !


I tried the method in the following page

rest - Run PDI Jobs using Web Services - Stack Overflow 

the following command does not seem to work properly, "Error 401 UNAUTHORIZED" was returned.

curl -L "http://cluster:cluster@localhost:8080/kettle/status


so where is the problem?