Skip to content
Discussion options

You must be logged in to vote

@sasabrkic please try adding -H"Content-Type: application/octet-stream" to the "upload the actual file" curl command

bash-5.1$ curl -i -X PUT -T ~/export.txt "http://httpfs:14000/webhdfs/v1/exports/text/export.txt?op=CREATE&data=true&user.name=hadoop"
HTTP/1.1 400 Bad Request
Pragma: no-cache
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Set-Cookie: hadoop.auth="u=hadoop&p=hadoop&t=simple-dt&e=1748970950712&s=sYBi468BlYTnfaZxqCMAiHbz+mJlMMGfKxXl90i34zo="; Path=/; HttpOnly
Connection: close

bash-5.1$ curl -i -X PUT -T ~/export.txt "http://httpfs:14000/webhdfs/v1/exports/text/export.txt?op=CREATE&data=true&user.name=hadoop" -H"Content-Type: application/octet-stream"
HTTP/…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sasabrkic
Comment options

You must be logged in to vote
2 replies
@peterxcli
Comment options

@adoroszlai
Comment options

Comment options

You must be logged in to vote
1 reply
@adoroszlai
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQ
Labels
None yet
4 participants