此文章是vip文章,如何查看?  

1,点击链接获取密钥 http://nicethemes.cn/product/view29882.html

2,在下方输入文章查看密钥即可立即查看当前vip文章


Pig常见错误分析

  • 时间:
  • 浏览:
  • 来源:互联网

1、      ERROR 1200

错误日志

2014-08-28 15:20:51,477 [main] ERRORorg.apache.pig.PigServer - exception during parsing: Error during parsing.<file a.pig, line 142, column 81> Unexpected character '.'

Failed to parse: <file a.pig, line 142,column 81>  Unexpected character '.'

       atorg.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:243)

       atorg.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:179)

       at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1712)

       at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1420)

       at org.apache.pig.PigServer.parseAndBuild(PigServer.java:364)

       at org.apache.pig.PigServer.executeBatch(PigServer.java:389)

       at org.apache.pig.PigServer.executeBatch(PigServer.java:375)

       atorg.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:170)

       atorg.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:232)

       at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:203)

       at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81)

       at org.apache.pig.Main.run(Main.java:479)

       at org.apache.pig.Main.main(Main.java:156)

       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

       atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

       atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

       at java.lang.reflect.Method.invoke(Method.java:606)

       at org.apache.hadoop.util.RunJar.main(RunJar.java:212)

2014-08-28 15:20:51,486 [main] ERRORorg.apache.pig.tools.grunt.Grunt - ERROR 1200: <file a.pig, line 142, column81>  Unexpected character '.'

错误原因:

写正则表达式的时候有问题,比如下面的正则表达式'2\.2\.[0-9]+'是错误的,正确的应该是'2\\.2\\.[0-9]+'

 

 

本文链接http://element-ui.cn/news/show-576975.aspx