US and Worldwide: +1 (866) 660-7555
Results 1 to 4 of 4

Thread: Kettle 2.5.0 and CIFS/Window Shares

  1. #1

    Default Kettle 2.5.0 and CIFS/Window Shares

    Hey all,
    I had a previous transformation that used the Text File Input step. The file was passed as a variable. This is on a Windows machine.

    In 2.4.0, the original/working version, the variable was like this:
    //server1/share/subdir/file1.csv

    In 2.5.0, what should this be?

    I've tried file://server1, smb://server1, etc and none work. I get errors like:

    =========
    "Couldn't open file #0 : C:\containers\kettle\Kettle-2.5.0\smb:\server1\share\subdir\file1.csv --> org.apache.commons.vfs.FileSystemException: Could not read from "file:///C:/containers/kettle/Kettle-2.5.0/smb:/server1/share/subdir/file1.csv" because it is a not a file."
    =========

    I noticed there is no jcifs jar, so added that to /libext, but that does not seem to have an impact (and I did close and re-open Spoon). This is all tested within Spoon.

  2. #2
    Join Date
    Mar 2003
    Posts
    7,592

    Default

    To enable the SMB support, you have to recompile the commons-vfs. The stable 1.0.0 version does not contain the classes for the SMB-stuff, as this part was never stable enough. So the Apache guys moved that into the experimental package before they made their release.

    But then again, you if you map your windows share to a drive-letter (or if running on linux, mount the share using smbmount) you can access these files like any other file in your local filesystem.

    Have fun,
    said Thomas
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

  3. #3

    Default

    That's exactly what I needed to hear, and I appreciate the workaround (mapping a drive), that seems to work perfectly. Just adding it as a note to some of my jobs/transformations so hopefully the next person that tries exactly what I did will read the note and not run into the problem ;-).

  4. #4
    Join Date
    Nov 1999
    Posts
    9,543

    Default

    We also fixed the "reading" part of the SMB/CIFS problem in Kettle.
    To try it and watch the patch in full glory, download and replace kettle.jar: http://www.kettle.be/dloads/kettle.jar

    HTH,

    Matt
    Matt Casters, Chief Data Integration
    Pentaho, Open Source Business Intelligence
    http://www.pentaho.org -- mcasters@pentaho.org

    Author of the book Pentaho Kettle Solutions by Wiley. Also available as e-Book and on the Kindle reading applications (iPhone, iPad, Android, Kindle devices, ...)

    Join us on IRC server Freenode.net, channel ##pentaho

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •