none
Problem Uploading data into a Data Lake Store account, using curl tool.

    General discussion

  • Never I can upload a file to data lake folder, because later of execute the following instructions, always create a Temporary Redirect but no upload the file.

    Instructions:

    curl -i -X PUT -T ./word.txt -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImEzUU4wQlpTN3M0bk4tQmRyamJGMFlfTGRNTSIsImtpZCI6ImEzUU4wQlpTN3M0bk4tQmRyamJGMFlfTGRNTSJ9.eyJhd

    WQiOiJodHRwczovL21hbmFnZW1lbnQuY29yZS53aW5kb3dzLm5ldC8iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC84Y2E1ZTVhNC1hODM4LTRkYzgtYmQ4OS1kY2Z

    mMTMxZDMxNmIvIiwiaWF0IjoxNDkxOTQzNjk1LCJuYmYiOjE0OTE5NDM2OTUsImV4cCI6MTQ5MTk0NzU5NSwiYWlvIjoiWTJaZ1lQaCsvZDFXdHY2b2s5cjFjWS9zOXkyNkNRQ

    T0iLCJhcHBpZCI6ImFlMzkyNzg2LTZmMzAtNDllZC05NmZjLTdlOTkzYjZjYzRmZiIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzhjYTVlNWE0

    LWE4MzgtNGRjOC1iZDg5LWRjZmYxMzFkMzE2Yi8iLCJvaWQiOiJhYTNiNWRjYS0yZGFjLTQ3MTEtOGEwMS1jNDM0OTM0N2FkYTkiLCJzdWIiOiJhYTNiNWRjYS0yZGFjLTQ3MTEt

    OGEwMS1jNDM0OTM0N2FkYTkiLCJ0aWQiOiI4Y2E1ZTVhNC1hODM4LTRkYzgtYmQ4OS1kY2ZmMTMxZDMxNmIiLCJ2ZXIiOiIxLjAifQ.hEh6gMAfe1opjJ5xJCYgoULLPYlIqdzyZc

    1C4IGOPdfRrDMUc0u3YRyOygZaop8S2sJFLngAx2eyecPs8AlVczMtsCBjULsLIuWrhvJWVpUitJFMmkk8vkpwHnYtLmKl9rL6FBA0RtNL9vGkJN756fdFfwtoLMKduDOJ56yUuNj_S

    LsvNop8tep0eLSrdYS-4hMEUFCj5vOViubWmmJhBVEyWDrecz8edfOJ67m6AIGqx-vMfjxQmCzqmPhlUt36kZDtmrAiHQJ7VTpsWKY5FhWU4pZ5p-J67HsYL9LQkn5yAPRr-ojmUb2Ljc6E1-zh23 18AylaaOvBsYw" -d "" https://demo.azuredatalakestore.net/webhdfs/v1/DataFolder/?op=CREATE&write=true

    Output: 

     HTTP/1.1 100 Continue

    HTTP/1.1 307 Temporary Redirect
    Cache-Control: no-cache, no-cache, no-store, max-age=0
    Pragma: no-cache
    Expires: -1
    Location: https://demo.azuredatalakestore.net/webhdfs/v1/DataFolder/?op=CREATE&write=true
    x-ms-request-id: 321f1458-e6ec-4aaf-a59c-382d6d19230b
    ContentLength: 0
    x-ms-webhdfs-version: 16.12.19.00
    Status: 0x0
    X-Content-Type-Options: nosniff
    Strict-Transport-Security: max-age=15724800; includeSubDomains
    Date: Tue, 11 Apr 2017 21:02:37 GMT
    Content-Length: 0

    Done 

    Reference Info: https://docs.microsoft.com/en-us/azure/data-lake-store/data-lake-store-get-started-rest-api#how-do-i-authenticate-using-azure-active-directory

    Tuesday, April 11, 2017 9:16 PM

All replies

  • When using curl the url has to be sent in single quotes when the url has request parameters. 

    Tuesday, April 25, 2017 11:47 PM