我试图解析apache日志:
159.142.136.231 - - [08/Aug/1995:21:56:04 -0400] "GET /shuttle/countdown/ HTTP/1.0" 200 4673
Code:
log = load "/myhdfs/project/TestLog.txt" USING org.apache.pig.piggybank.storage.apachelog.ApacheCommonLogLoader AS (address, logname, user, time,method, uri, proto,status, bytes);
Error :
<line 1, column 9> Unexpected character '"'
2015-12-12 00:49:10,187 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: <line 1, column 9> Unexpected character '"'.
我不知道为什么会发生这种错误?
1条答案
按热度按时间e3bfsja21#
在给出hdfs路径时,请尝试使用单引号而不是双引号