diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml index 4de624017b4..289061f8add 100644 --- a/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml +++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-yarn-dist.xml @@ -186,37 +186,10 @@ **/* - - - hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/target/lib - share/hadoop/${hadoop.component}/timelineservice/lib - - - - org.apache.hadoop:hadoop-yarn-server-timelineservice - org.apache.hadoop:hadoop-yarn-server-timelineservice-hbase - - - share/hadoop/${hadoop.component}/timelineservice - false - false - - - - - org.apache.hadoop:hadoop-yarn-server-timelineservice-hbase-tests - - - share/hadoop/${hadoop.component}/timelineservice/test - false - false - - - org.apache.hadoop:hadoop-yarn-server-timelineservice* org.apache.hadoop:hadoop-yarn-ui diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn b/hadoop-yarn-project/hadoop-yarn/bin/yarn index cc5a5e55364..0f19989efc7 100755 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn @@ -111,8 +111,6 @@ function yarncmd_case ;; nodemanager) HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/*" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/lib/*" HADOOP_CLASSNAME='org.apache.hadoop.yarn.server.nodemanager.NodeManager' # Backwards compatibility if [[ -n "${YARN_NODEMANAGER_HEAPSIZE}" ]]; then @@ -132,8 +130,6 @@ function yarncmd_case ;; resourcemanager) HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/*" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/lib/*" HADOOP_CLASSNAME='org.apache.hadoop.yarn.server.resourcemanager.ResourceManager' # Backwards compatibility if [[ -n "${YARN_RESOURCEMANAGER_HEAPSIZE}" ]]; then @@ -159,8 +155,6 @@ function yarncmd_case ;; timelinereader) HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/*" - hadoop_add_classpath "$HADOOP_YARN_HOME/$YARN_DIR/timelineservice/lib/*" HADOOP_CLASSNAME='org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderServer' ;; timelineserver) diff --git a/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd b/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd index e1ac11287fe..fed3d90a7c3 100644 --- a/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd +++ b/hadoop-yarn-project/hadoop-yarn/bin/yarn.cmd @@ -219,8 +219,6 @@ goto :eof :resourcemanager set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\rm-config\log4j.properties - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\* - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\lib\* set CLASS=org.apache.hadoop.yarn.server.resourcemanager.ResourceManager set YARN_OPTS=%YARN_OPTS% %YARN_RESOURCEMANAGER_OPTS% if defined YARN_RESOURCEMANAGER_HEAPSIZE ( @@ -250,8 +248,6 @@ goto :eof :timelinereader set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\timelineserver-config\log4j.properties - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\* - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\lib\* set CLASS=org.apache.hadoop.yarn.server.timelineservice.reader.TimelineReaderServer set YARN_OPTS=%YARN_OPTS% %YARN_TIMELINEREADER_OPTS% goto :eof @@ -264,8 +260,6 @@ goto :eof :nodemanager set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%\nm-config\log4j.properties - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\* - set CLASSPATH=%CLASSPATH%;%HADOOP_YARN_HOME%\%YARN_DIR%\timelineservice\lib\* set CLASS=org.apache.hadoop.yarn.server.nodemanager.NodeManager set YARN_OPTS=%YARN_OPTS% -server %HADOOP_NODEMANAGER_OPTS% if defined YARN_NODEMANAGER_HEAPSIZE ( diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml index f16ccdb5547..f3682dacb65 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/pom.xml @@ -191,7 +191,6 @@ org.apache.hadoop hadoop-yarn-server-timelineservice - provided org.apache.hadoop diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/pom.xml index 7c35baf76b4..b38f44c29ee 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/pom.xml @@ -57,13 +57,11 @@ org.apache.hadoop hadoop-annotations - provided org.apache.hadoop hadoop-common - provided @@ -77,19 +75,16 @@ org.apache.hadoop hadoop-yarn-api - provided org.apache.hadoop hadoop-yarn-common - provided org.apache.hadoop hadoop-yarn-server-applicationhistoryservice - provided @@ -126,7 +121,6 @@ org.apache.hbase hbase-server - provided org.apache.hadoop @@ -192,23 +186,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - package - - copy-dependencies - - - runtime - org.slf4j,org.apache.hadoop,com.github.stephenc.findbugs - ${project.build.directory}/lib - - - - diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/pom.xml b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/pom.xml index 331886ed0ff..34dd1b0dc8d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/pom.xml +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/pom.xml @@ -38,7 +38,6 @@ org.apache.hadoop hadoop-common - provided diff --git a/hadoop-yarn-project/pom.xml b/hadoop-yarn-project/pom.xml index 95c935241c0..6e1ff52a77d 100644 --- a/hadoop-yarn-project/pom.xml +++ b/hadoop-yarn-project/pom.xml @@ -74,6 +74,10 @@ org.apache.hadoop hadoop-yarn-server-web-proxy + + org.apache.hadoop + hadoop-yarn-server-timelineservice-hbase + org.apache.hadoop hadoop-yarn-server-router @@ -159,44 +163,12 @@ - - - org.apache.maven.plugins - maven-antrun-plugin - - - dist - prepare-package - - run - - - - - yarnjardir="${project.build.directory}/${project.artifactId}-${project.version}/share/hadoop/yarn" - yarnlibdir="${yarnjardir}/lib/" - cd "${yarnjardir}/timelineservice/lib" - for jar in `ls` - do - if [ -f "${yarnlibdir}""${jar}" ];then - rm -rf ${jar} - echo "Removing duplicate jar $jar from share/hadoop/yarn/timelineservice/lib folder" - fi - done - - - - - - - - - +