Client.java:6: package org.apache.hadoop.conf does not exist
import org.apache.hadoop.conf.Configured;
^
Client.java:7: cannot find symbol
symbol : class Tool
location: package org.apache.hadoop.util
import org.apache.hadoop.util.Tool;
^
Client.java:8: cannot find symbol
symbol : class ToolRunner
location: package org.apache.hadoop.util
import org.apache.hadoop.util.ToolRunner;
^
Client.java:12: cannot find symbol
symbol: class Configured
public abstract class Client extends Configured implements Tool {
^
Client.java:12: cannot find symbol
symbol: class Tool
public abstract class Client extends Configured implements Tool {
^
[checking Client]
[total 685ms]
5 errors
我需要如何设置类路径。
我这样设置:
CLASSPATH=$CLASSPATH:$HADOOP_HOME::$HADOOP_HOME/modules:$HADOOP_HOME/lib
即使我在命令行中直接提到指向 jar 的类路径,我也无法运行。