我正在使用来自 Java 类的 knox 客户端 dsl,如下所示:
package org.apache.camel;
...
import org.apache.hadoop.gateway.shell.Hadoop;
import org.apache.hadoop.gateway.shell.hdfs.Hdfs;
public class KnoxProducer extends DefaultProducer {
public KnoxProducer(KnoxEndpoint endpoint) {
super(endpoint);
this.endpoint = endpoint;
}
public void process(Exchange exchange) throws Exception {
...
Hadoop session = Hadoop.login( gateway, username, password );
Hdfs.put(session).text(body).to(path).now();
// ^ Eclipse Error: The type Put.Request is not visible
session.shutdown();
}
}
但是,Eclipse 显示错误:
The type Put.Request is not visible
任何指针?