我试图用Elasticsearch 5.4设置Nutch 2.3。问题出在Nutch,因为我无法注入我的网址。 hadoop日志显示以下警告:
控制台:
aurora apache-nutch-2.3.1 # cat runtime/local/logs/hadoop.log
2017-06-14 17:08:28,339 INFO crawl.InjectorJob - InjectorJob: starting at 2017-06-14 17:08:28
2017-06-14 17:08:28,340 INFO crawl.InjectorJob - InjectorJob: Injecting urlDir: urls/seed.txt
2017-06-14 17:08:28,992 WARN util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
**它挂在这里**
和
Hadoop日志:
import { Injectable } from '@angular/core';
import { Http, Response } from "@angular/http";
import { Observable } from "rxjs/Rx";
import 'rxjs/add/operator/map';
@Injectable()
export class HttpAPIService {
metrics: Object;
constructor(private http: Http) {
// https://thinkster.io/tutorials/angular-2-http
this.getMetrics('https://jsonplaceholder.typicode.com/posts/1/comments').subscribe(data => this.metrics = data);
}
getMetrics(url: string) {
return Observable.interval(5000)
.switchMap(() => this.http.get(url))
.map((res: Response) => res.json());
}
}
我已尝试在此线程(Hadoop "Unable to load native-hadoop library for your platform" warning)之后设置我的Hadoop环境变量,但我仍然遇到同样的错误。
有什么想法吗?
答案 0 :(得分:0)