Dec 18, 2017

Problems with Azure Data Factory Samba File System sink

I recently had some trouble using a Linux system as a sink in Azure Data Factory.  The Samba destination was on a Linux server in a different domain than the Windows server.

I had tricked the Copy Wizard into using a simple username without domain by adding a local user with the same username as the Samba user.  But although the Copy Wizard could browse the destination folders, when the pipeline started copying an error was thrown "A specified logon session does not exist. It may already have been terminated".

The fix was to create the LinkedService via the JSON file with the Samba server IP as the username domain:

    "name": "Destination-File-SambaFileSystem",
    "properties": {
        "hubName": "mydatafactory_hub",
        "type": "OnPremisesFileServer",
        "typeProperties": {
            "host": "\\\\\\datadir",
            "gatewayName": "IntegrationRuntime-SambaGateway",
            "userId": "\\sambauser",
            "password": "aPlaintextPassword"

No comments:

Post a Comment