Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Jesperrekuh
Specialist
Specialist

Upload a local file using PUT method using tRESTClient or tREST

Anybody knows how to upload a local file using PUT method using tRESTClient. 


https://hadoop.apache.org/docs/r2.7.5/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#Create_and_Write_...

curl -i -X PUT -T <LOCAL_FILE> "http://<DATANODE>:<PORT>/webhdfs/v1/<PATH>?op=CREATE..."

 

(step 1 succeeds 307 - HTTP 307 Temporary Redirect , step 2 doesn't)
And which HEADERS to set.

 

 

Labels (5)
1 Reply
Anonymous
Not applicable

Hello,

What's your local file?

The tRESTClient component expects a document type. You need to send your input to the "string" input and not the "body" of the tRestClient.

 Have you tried to upload a file using tFileFetch component?

Best regards

Sabrina