我正在尝试在Pig grunt shell (Pig 0.13.0)中注册UDF jar。由于我认为路径中的空格,下面的register语句出错:

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

我尝试了一系列选项来尝试逃脱空间而没有运气...

最佳答案

试试这个,
给出没有单引号的路径名,

喜欢

register home/hadoop/Eclipse Projects/pigudfs/target/pigudfs-0.0.1-SNAPSHOT.jar;

09-11 12:29