아래와 같은 에러 발생 시
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | $ /usr/local/pig/tutorial/ant Buildfile: /usr/local/pig-0.16.0/tutorial/build.xml init: compile: [echo] *** Compiling Tutorial files *** [javac] /usr/local/pig-0.16.0/tutorial/build.xml:66: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 7 source files to /usr/local/pig-0.16.0/tutorial/build/classes [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5 [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. [javac] /usr/local/pig-0.16.0/tutorial/src/org/apache/pig/tutorial/ExtractHour.java:37: error: cannot access WritableComparable [javac] if (input == null || input.size() == 0) [javac] ^ [javac] class file for org.apache.hadoop.io.WritableComparable not found [javac] 1 error [javac] 4 warnings BUILD FAILED /usr/local/pig-0.16.0/tutorial/build.xml:66: Compile failed; see the compiler error output for details. Total time: 1 second | cs |
빌드 시 WritableComparable 클래스 파일에 접근할 수 없다는 메시지로
관련 hadoop-common-*.jar 파일을 컴파일하여 생성된 클래스 파일을 해당 클래스 패스에 복사하거나
상위 디렉터리인 pig 홈 디렉터리에서 ant 빌드를 진행한 후 다시 시도를 합니다.
'Big Data Platform > Pig' 카테고리의 다른 글
[에러] /usr/local/pig-0.16.0/build/ivy/lib/Pig does not exist. (0) | 2018.01.31 |
---|