我需要什么hadoopjar来获得weightadjuster接口

eanckbw9  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(317)
org.apache.hadoop.mapred.WeightAdjuster

org.apache.hadoop.mapred.NewJobWeightBooster

我几乎把在maven上能找到的jar都加进去了。这是我当前的版本。gradle:

dependencies {
    compile group: 'org.apache.hadoop', name: 'hadoop-core', version: '1.2.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-yarn-common', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-yarn-server-common', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-core', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-common', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-jobclient', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-app', version: '2.5.1'
    compile group: 'org.apache.hadoop', name: 'hadoop-tools', version: '1.2.1'
}

我该拿哪个jar?此链接提供了部分说明。

a1o7rhls

a1o7rhls1#

在maven上添加每个hadoop jar之后,我发现:

compile group: 'org.apache.hadoop', name: 'hadoop-yarn-server-resourcemanager', version: '2.5.1'

相关问题