我正在尝试在Pig grunt shell(Pig 0.13.0)中注册一个UDF jar。由于我认为路径中的空间,下面的寄存器语句错误:
register '/home/hadoop/Eclipse Projects/pigudfs/target/pigudfs-0.0.1-SNAPSHOT.jar';
生成以下错误:
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Encountered " <QUOTEDSTRING> "\'/home/hadoop/Eclipse Projects/pigudfs/target/pigudfs-0.0.1-SNAPSHOT.jar\' "" at line 7, column 10
我尝试了一系列选项,试图逃避空间而没有任何运气......
答案 0 :(得分:0)
试试这个, 给出没有单引号的路径名
喜欢
register home/hadoop/Eclipse Projects/pigudfs/target/pigudfs-0.0.1-SNAPSHOT.jar;