Skip to Content
author's profile photo Former Member
Former Member

File/Hadoop Csv Input Adapter Cannot Read File

Here is the problem:

I want to use to file/hadoop csv input adapter to load a test.csv file into the attached window. The following is the snap screen.

And the corresponding csv file is like this:

1,a

2,b

3,c

But, when I started the project, I found nothing in the window, and then I checked the adapter run-time information, and I found this:

It seems that the adapter read nothing.

I am sure that the dir path and file path is correct, and there is no errors printed on the console.

So, what should I do?

1.PNG (20.4 kB)
2.PNG (48.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 15, 2014 at 02:19 PM

    Hi Kevin,

    There are two choices you have for solving this.

    Choice 1: Set the adapter property of Stream name, opcode expected to FALSE, since it defaults to TRUE.

    or

    Choice 2: Change the format of your csv file's records to include the stream name and opcode, so that your csv file records look like this:

    InputWindow1,i,1,a

    InputWindow1,i,2,b

    InputWindow1,i,3,c

    You will find more information about the adapter run-time in the frameworkadapter.log file for the project. Since you are running the project in Studio's local cluster, the log file will be here:

    <user's-home-dir>/SybaseESP/5.1/workspace/default.ftpcvstest.0/logs/frameworkadapter.log

    Thanks,

    Alice

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.