Created on 03-15-2020 08:30 AM - last edited on 03-15-2020 12:37 PM by ask_bill_brooks
I am facing the following error on the cmd:
command:
grunt> A = LOAD 'C:\data\myfile.txt';
or
grunt> a = load 'c:\data\myfile.txt' using PigStorage(' ') as (f1:int,f2:int, f3:int);
error:
<line 1, column 14> Unexpected character 'D'
2020-03-15 20:56:50,153 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 1, column 14> Unexpected character 'D'
Details at logfile: C:\deploy\logs\pig_1584281243336.log
the error trace is as follows-
Created 04-13-2022 01:10 AM
You should represent your data in this case: 'C:\\data\\myfile.txt'.
I had the same problem.
Created 03-15-2020 01:19 PM
Hi @somi,
Just looking at the error message alone, it seems to me like the problem is with your data file. Can you post the first few lines of the input data file myfile.txt
in this thread?
Created 03-15-2020 11:32 PM
sir myfile.txt contains simply the following trial data-
1 2 3
4 5 6
Created 04-13-2022 01:10 AM
You should represent your data in this case: 'C:\\data\\myfile.txt'.
I had the same problem.