diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..921fe32be5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+*.iml
+*.ipr
+*.iws
+.idea
+.svn
+.classpath
+target
diff --git a/common/build.xml b/common/build.xml
deleted file mode 100644
index e0beb7a95d..0000000000
--- a/common/build.xml
+++ /dev/null
@@ -1,1927 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Can't run this target without -Dtestcase setting!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tests failed!
-
-
-
-
-
-
-
-
- Tests failed!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Signing @{input.file} Sig File: @{output.file}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Clover not found. Code coverage reports disabled.
-
-
-
-
-
- ##################################################################
- Clover not found.
- Please specify -Dclover.home=<base of clover installation>
- on the command line.
- ##################################################################
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You need Apache Ivy 2.0 or later from http://ant.apache.org/
- It could not be loaded from ${ivy_repo_url}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Reports generated:${build.ivy.report.dir}
-
-
-
-
diff --git a/common/conf/configuration.xsl b/common/conf/configuration.xsl
deleted file mode 100644
index 377cdbeb93..0000000000
--- a/common/conf/configuration.xsl
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
-
-
-
-
- name |
- value |
- description |
-
-
-
- |
- |
- |
-
-
-
-
-
-
-
diff --git a/common/conf/core-site.xml.template b/common/conf/core-site.xml.template
deleted file mode 100644
index 970c8fe0e8..0000000000
--- a/common/conf/core-site.xml.template
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/common/conf/hadoop-env.sh.template b/common/conf/hadoop-env.sh.template
deleted file mode 100644
index 6776bff463..0000000000
--- a/common/conf/hadoop-env.sh.template
+++ /dev/null
@@ -1,66 +0,0 @@
-# Set Hadoop-specific environment variables here.
-
-# The only required environment variable is JAVA_HOME. All others are
-# optional. When running a distributed configuration it is best to
-# set JAVA_HOME in this file, so that it is correctly defined on
-# remote nodes.
-
-# The java implementation to use. Required.
-export JAVA_HOME=${JAVA_HOME}
-
-# Hadoop Installation Prefix
-HADOOP_PREFIX=${HADOOP_PREFIX}
-
-# Hadoop Configuration Directory
-HADOOP_CONF_DIR=${HADOOP_CONF_DIR}
-export HADOOP_CONF_DIR=${HADOOP_CONF_DIR:-$HADOOP_PREFIX/conf}
-
-# Extra Java CLASSPATH elements. Optional.
-# export HADOOP_CLASSPATH=":$HADOOP_CLASSPATH"
-
-# The maximum amount of heap to use, in MB. Default is 1000.
-# export HADOOP_HEAPSIZE=2000
-
-# Extra Java runtime options. Empty by default.
-# if [ "$HADOOP_OPTS" == "" ]; then export HADOOP_OPTS=-server; else HADOOP_OPTS+=" -server"; fi
-
-# Command specific options appended to HADOOP_OPTS when specified
-export HADOOP_NAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_NAMENODE_OPTS"
-export HADOOP_SECONDARYNAMENODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_SECONDARYNAMENODE_OPTS"
-export HADOOP_DATANODE_OPTS="-Dcom.sun.management.jmxremote $HADOOP_DATANODE_OPTS"
-export HADOOP_BALANCER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_BALANCER_OPTS"
-export HADOOP_JOBTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_JOBTRACKER_OPTS"
-export HADOOP_TASKTRACKER_OPTS="-Dcom.sun.management.jmxremote $HADOOP_TASKTRACKER_OPTS"
-# The following applies to multiple commands (fs, dfs, fsck, distcp etc)
-# export HADOOP_CLIENT_OPTS
-
-# Extra ssh options. Empty by default.
-# export HADOOP_SSH_OPTS="-o ConnectTimeout=1 -o SendEnv=HADOOP_CONF_DIR"
-
-# File naming remote slave hosts. $HADOOP_PREFIX/conf/slaves by default.
-export HADOOP_SLAVES=${HADOOP_CONF_DIR}/slaves
-
-# host:path where hadoop code should be rsync'd from. Unset by default.
-# export HADOOP_MASTER=master:/home/$USER/src/hadoop
-
-# Seconds to sleep between slave commands. Unset by default. This
-# can be useful in large clusters, where, e.g., slave rsyncs can
-# otherwise arrive faster than the master can service them.
-# export HADOOP_SLAVE_SLEEP=0.1
-
-# The directory where pid files are stored. /tmp by default.
-HADOOP_PID_DIR=${HADOOP_PID_DIR}
-export HADOOP_PID_DIR=${HADOOP_PID_DIR:-$HADOOP_PREFIX/var/run}
-
-# A string representing this instance of hadoop. $USER by default.
-export HADOOP_IDENT_STRING=`whoami`
-
-# The scheduling priority for daemon processes. See 'man nice'.
-# export HADOOP_NICENESS=10
-
-# Allow Hadoop to run with sysctl net.ipv6.bindv6only = 1
-# export HADOOP_ALLOW_IPV6=yes
-
-# Where log files are stored. $HADOOP_PREFIX/logs by default.
-HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$HADOOP_IDENT_STRING
-export HADOOP_LOG_DIR=${HADOOP_LOG_DIR:-$HADOOP_PREFIX/var/log}
diff --git a/common/conf/hadoop-policy.xml.template b/common/conf/hadoop-policy.xml.template
deleted file mode 100644
index 5727b13313..0000000000
--- a/common/conf/hadoop-policy.xml.template
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
-
-
-
- security.client.protocol.acl
- *
- ACL for ClientProtocol, which is used by user code
- via the DistributedFileSystem.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.client.datanode.protocol.acl
- *
- ACL for ClientDatanodeProtocol, the client-to-datanode protocol
- for block recovery.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.datanode.protocol.acl
- *
- ACL for DatanodeProtocol, which is used by datanodes to
- communicate with the namenode.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.inter.datanode.protocol.acl
- *
- ACL for InterDatanodeProtocol, the inter-datanode protocol
- for updating generation timestamp.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.namenode.protocol.acl
- *
- ACL for NamenodeProtocol, the protocol used by the secondary
- namenode to communicate with the namenode.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.inter.tracker.protocol.acl
- *
- ACL for InterTrackerProtocol, used by the tasktrackers to
- communicate with the jobtracker.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.job.submission.protocol.acl
- *
- ACL for JobSubmissionProtocol, used by job clients to
- communciate with the jobtracker for job submission, querying job status etc.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.task.umbilical.protocol.acl
- *
- ACL for TaskUmbilicalProtocol, used by the map and reduce
- tasks to communicate with the parent tasktracker.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.refresh.policy.protocol.acl
- *
- ACL for RefreshAuthorizationPolicyProtocol, used by the
- dfsadmin and mradmin commands to refresh the security policy in-effect.
- The ACL is a comma-separated list of user and group names. The user and
- group list is separated by a blank. For e.g. "alice,bob users,wheel".
- A special value of "*" means all users are allowed.
-
-
-
- security.admin.operations.protocol.acl
- *
- ACL for AdminOperationsProtocol, used by the mradmins commands
- to refresh queues and nodes at JobTracker. The ACL is a comma-separated list of
- user and group names. The user and group list is separated by a blank.
- For e.g. "alice,bob users,wheel". A special value of "*" means all users are
- allowed.
-
-
diff --git a/common/conf/masters.template b/common/conf/masters.template
deleted file mode 100644
index 2fbb50c4a8..0000000000
--- a/common/conf/masters.template
+++ /dev/null
@@ -1 +0,0 @@
-localhost
diff --git a/common/conf/slaves.template b/common/conf/slaves.template
deleted file mode 100644
index 23067fa3b8..0000000000
--- a/common/conf/slaves.template
+++ /dev/null
@@ -1,2 +0,0 @@
-# Specify multiple slaves, one per each line.
-localhost
diff --git a/common/ivy.xml b/common/ivy.xml
deleted file mode 100644
index c7d369943c..0000000000
--- a/common/ivy.xml
+++ /dev/null
@@ -1,331 +0,0 @@
-
-
-
-
-
-
-
- Hadoop Common
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/common/ivy/hadoop-common-instrumented-template.xml b/common/ivy/hadoop-common-instrumented-template.xml
deleted file mode 100644
index e681000757..0000000000
--- a/common/ivy/hadoop-common-instrumented-template.xml
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
- 4.0.0
- org.apache.hadoop
- hadoop-common-instrumented
- jar
- @version
-
-
- commons-cli
- commons-cli
- 1.2
-
-
- xmlenc
- xmlenc
- 0.52
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- commons-codec
- commons-codec
- 1.4
-
-
- commons-net
- commons-net
- 1.4.1
-
-
- org.mortbay.jetty
- jetty
- 6.1.14
-
-
- org.mortbay.jetty
- jetty-util
- 6.1.14
-
-
- tomcat
- jasper-runtime
- 5.5.12
-
-
- tomcat
- jasper-compiler
- 5.5.12
-
-
- org.mortbay.jetty
- jsp-api-2.1
- 6.1.14
-
-
- org.mortbay.jetty
- jsp-2.1
- 6.1.14
-
-
- commons-el
- commons-el
- 1.0
-
-
- net.java.dev.jets3t
- jets3t
- 0.7.1
-
-
- commons-net
- commons-net
- 1.4.1
-
-
- org.mortbay.jetty
- servlet-api-2.5
- 6.1.14
-
-
- net.sf.kosmosfs
- kfs
- 0.3
-
-
- junit
- junit
- 4.8.1
-
-
- hsqldb
- hsqldb
- 1.8.0.10
-
-
- oro
- oro
- 2.0.8
-
-
- org.apache.hadoop
- avro
- 1.3.2
-
-
-
- org.mortbay.jetty
- jetty
-
-
-
- org.apache.ant
- ant
-
-
-
-
-
diff --git a/common/ivy/hadoop-common-template.xml b/common/ivy/hadoop-common-template.xml
deleted file mode 100644
index fcb31ff0f1..0000000000
--- a/common/ivy/hadoop-common-template.xml
+++ /dev/null
@@ -1,159 +0,0 @@
-
-
-
- 4.0.0
- org.apache.hadoop
- hadoop-common
- jar
- @version
-
-
- commons-cli
- commons-cli
- 1.2
-
-
- xmlenc
- xmlenc
- 0.52
-
-
- commons-httpclient
- commons-httpclient
- 3.1
-
-
- commons-codec
- commons-codec
- 1.4
-
-
- commons-net
- commons-net
- 1.4.1
-
-
- org.mortbay.jetty
- jetty
- 6.1.14
-
-
- org.mortbay.jetty
- jetty-util
- 6.1.14
-
-
- tomcat
- jasper-runtime
- 5.5.12
-
-
- tomcat
- jasper-compiler
- 5.5.12
-
-
- org.mortbay.jetty
- jsp-api-2.1
- 6.1.14
-
-
- org.mortbay.jetty
- jsp-2.1
- 6.1.14
-
-
- commons-el
- commons-el
- 1.0
-
-
- net.java.dev.jets3t
- jets3t
- 0.7.1
-
-
- commons-net
- commons-net
- 1.4.1
-
-
- org.mortbay.jetty
- servlet-api-2.5
- 6.1.14
-
-
- net.sf.kosmosfs
- kfs
- 0.3
-
-
- junit
- junit
- 4.8.1
-
-
- hsqldb
- hsqldb
- 1.8.0.10
-
-
- oro
- oro
- 2.0.8
-
-
- org.apache.hadoop
- avro
- 1.3.2
-
-
-
- org.mortbay.jetty
- jetty
-
-
-
- org.apache.ant
- ant
-
-
-
-
- commons-configuration
- commons-configuration
- 1.6
-
-
- org.apache.commons
- commons-math
- 2.1
-
-
- com.google.guava
- guava
- r09
-
-
- com.google.protobuf
- protobuf-java
- 2.4.0a
-
-
-
diff --git a/common/ivy/hadoop-common-test-template.xml b/common/ivy/hadoop-common-test-template.xml
deleted file mode 100644
index 4780f880cb..0000000000
--- a/common/ivy/hadoop-common-test-template.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- 4.0.0
- org.apache.hadoop
- hadoop-common-test
- jar
- @version
-
-
- org.apache.hadoop
- hadoop-common
- @version
-
-
- org.apache.ftpserver
- ftplet-api
- 1.0.0
-
-
- org.apache.mina
- mina-core
- 2.0.0-M5
-
-
- org.apache.ftpserver
- ftpserver-core
- 1.0.0
-
-
- org.apache.ftpserver
- ftpserver-deprecated
- 1.0.0-M2
-
-
- org.mockito
- mockito-all
- 1.8.5
-
-
-
diff --git a/common/ivy/ivysettings.xml b/common/ivy/ivysettings.xml
deleted file mode 100644
index 79cf836cf7..0000000000
--- a/common/ivy/ivysettings.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/common/ivy/libraries.properties b/common/ivy/libraries.properties
deleted file mode 100644
index 0b312635b8..0000000000
--- a/common/ivy/libraries.properties
+++ /dev/null
@@ -1,90 +0,0 @@
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-#This properties file lists the versions of the various artifacts used by hadoop and components.
-#It drives ivy and the generation of a maven POM
-
-#These are the versions of our dependencies (in alphabetical order)
-ant-task.version=2.0.10
-
-avro.version=1.3.2
-
-checkstyle.version=4.2
-
-commons-cli.version=1.2
-commons-cli2.version=2.0-mahout
-commons-codec.version=1.4
-commons-collections.version=3.1
-commons-configuration.version=1.6
-commons-httpclient.version=3.1
-commons-lang.version=2.5
-commons-logging.version=1.1.1
-commons-logging-api.version=1.1
-commons-el.version=1.0
-commons-fileupload.version=1.2
-commons-io.version=1.4
-commons-math.version=2.1
-commons-net.version=1.4.1
-core.version=3.1.1
-coreplugin.version=1.3.2
-
-ftplet-api.version=1.0.0
-ftpserver-core.version=1.0.0
-ftpserver-deprecated.version=1.0.0-M2
-
-guava.version=r09
-
-hsqldb.version=1.8.0.10
-
-ivy.version=2.1.0
-
-jasper.version=5.5.12
-jdeb.version=0.8
-jsp.version=2.1
-jsp-api.version=5.5.12
-jets3t.version=0.7.1
-jetty.version=6.1.14
-jetty-util.version=6.1.14
-junit.version=4.8.1
-jdiff.version=1.0.9
-json.version=1.0
-
-kfs.version=0.3
-
-log4j.version=1.2.15
-lucene-core.version=2.3.1
-
-mina-core.version=2.0.0-M5
-
-oro.version=2.0.8
-
-protobuf.version=2.4.0a
-
-rats-lib.version=0.6
-
-servlet.version=4.0.6
-servlet-api-2.5.version=6.1.14
-servlet-api.version=2.5
-slf4j-api.version=1.5.11
-slf4j-log4j12.version=1.5.11
-
-wagon-http.version=1.0-beta-2
-
-xmlenc.version=0.52
-xerces.version=1.4.4
-
-aspectj.version=1.6.5
-
-mockito-all.version=1.8.5
-
-jsch.version=0.1.42
-
diff --git a/common/src/fixFontsPath.sh b/common/src/fixFontsPath.sh
deleted file mode 100644
index 194d03e7ac..0000000000
--- a/common/src/fixFontsPath.sh
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# This file is used to fix the paths in CNDOCS_SRC/uming.conf, CNDOCS_SRC/src/documentation/sitemap.xmap
-
-CNDOCS_SRC=$1
-
-cat < src/docs/cn/uming.conf
-
-
-
-
-
-
-
-
-
-
-
-EOF
-
-cat < src/docs/cn/src/documentation/sitemap.xmap
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-EOF
diff --git a/common/src/native/packageNativeHadoop.sh b/common/src/native/packageNativeHadoop.sh
deleted file mode 100755
index 9ede8fd077..0000000000
--- a/common/src/native/packageNativeHadoop.sh
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-
-# packageNativeHadoop.sh - A simple script to help package native-hadoop libraries
-
-#
-# Note:
-# This script relies on the following environment variables to function correctly:
-# * BASE_NATIVE_LIB_DIR
-# * BUILD_NATIVE_DIR
-# * DIST_LIB_DIR
-# All these are setup by build.xml.
-#
-
-TAR='tar cf -'
-UNTAR='tar xfBp -'
-
-# Copy the pre-built libraries in $BASE_NATIVE_LIB_DIR
-if [ -d $BASE_NATIVE_LIB_DIR ]
-then
- for platform in `ls $BASE_NATIVE_LIB_DIR`
- do
- if [ ! -d $DIST_LIB_DIR ]
- then
- mkdir -p $DIST_LIB_DIR
- echo "Created $DIST_LIB_DIR"
- fi
- echo "Copying libraries in $BASE_NATIVE_LIB_DIR/$platform to $DIST_LIB_DIR/"
- cd $BASE_NATIVE_LIB_DIR/
- $TAR . | (cd $DIST_LIB_DIR/; $UNTAR)
- done
-fi
-
-# Copy the custom-built libraries in $BUILD_DIR
-if [ -d $BUILD_NATIVE_DIR ]
-then
- for platform in `ls $BUILD_NATIVE_DIR`
- do
- if [ ! -d $DIST_LIB_DIR ]
- then
- mkdir -p $DIST_LIB_DIR
- echo "Created $DIST_LIB_DIR"
- fi
- echo "Copying libraries in $BUILD_NATIVE_DIR/$platform/lib to $DIST_LIB_DIR/"
- cd $BUILD_NATIVE_DIR/$platform/lib
- $TAR . | (cd $DIST_LIB_DIR/; $UNTAR)
- done
-fi
-
-if [ "${BUNDLE_SNAPPY_LIB}" = "true" ]
-then
- if [ -d ${SNAPPY_LIB_DIR} ]
- then
- echo "Copying Snappy library in ${SNAPPY_LIB_DIR} to $DIST_LIB_DIR/"
- cd ${SNAPPY_LIB_DIR}
- $TAR . | (cd $DIST_LIB_DIR/; $UNTAR)
- else
- echo "Snappy lib directory ${SNAPPY_LIB_DIR} does not exist"
- exit 1
- fi
-fi
-
-#vim: ts=2: sw=2: et
diff --git a/common/src/packages/templates/conf/core-site.xml b/common/src/packages/templates/conf/core-site.xml
deleted file mode 100644
index c4797503e5..0000000000
--- a/common/src/packages/templates/conf/core-site.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
- fs.default.name
- ${HADOOP_NN_HOST}
-
-
diff --git a/common/src/test/bin/smart-apply-patch.sh b/dev-support/smart-apply-patch.sh
similarity index 100%
rename from common/src/test/bin/smart-apply-patch.sh
rename to dev-support/smart-apply-patch.sh
diff --git a/common/.gitignore b/dev-support/test-patch.properties
similarity index 59%
rename from common/.gitignore
rename to dev-support/test-patch.properties
index b177fe8ae9..e459e3c9e1 100644
--- a/common/.gitignore
+++ b/dev-support/test-patch.properties
@@ -13,36 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-*~
-.classpath
-.project
-.settings
-*.iml
-*.ipr
-*.iws
-.idea
-.svn
-build/
-build-fi/
-build.properties
-conf/masters
-conf/slaves
-conf/hadoop-env.sh
-conf/hadoop-site.xml
-conf/core-site.xml
-conf/mapred-site.xml
-conf/hdfs-site.xml
-conf/hadoop-policy.xml
-conf/capacity-scheduler.xml
-conf/mapred-queue-acls.xml
-docs/api/
-ivy/hadoop-core.xml
-ivy/hadoop-core-test.xml
-ivy/ivy-*.jar
-ivy/maven-ant-tasks-*.jar
-logs/
-src/contrib/ec2/bin/hadoop-ec2-env.sh
-src/docs/build
-src/docs/cn/build
-src/docs/cn/src/documentation/sitemap.xmap
-src/docs/cn/uming.conf
+OK_RELEASEAUDIT_WARNINGS=0
+OK_FINDBUGS_WARNINGS=0
+OK_JAVADOC_WARNINGS=0
diff --git a/common/src/test/bin/test-patch.sh b/dev-support/test-patch.sh
similarity index 84%
rename from common/src/test/bin/test-patch.sh
rename to dev-support/test-patch.sh
index 7e87c86641..2e22020050 100755
--- a/common/src/test/bin/test-patch.sh
+++ b/dev-support/test-patch.sh
@@ -19,7 +19,7 @@ ulimit -n 1024
### SVN_REVISION and BUILD_URL are set by Hudson if it is run by patch process
### Read variables from properties file
bindir=$(dirname $0)
-. $bindir/../test-patch.properties
+. $bindir/test-patch.properties
###############################################################################
parseArgs() {
@@ -118,6 +118,7 @@ checkout () {
echo "$status"
cleanupAndExit 1
fi
+ echo
else
cd $BASEDIR
$SVN revert -R .
@@ -178,8 +179,9 @@ setup () {
echo "======================================================================"
echo ""
echo ""
- echo "$ANT_HOME/bin/ant -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME}PatchProcess= clean tar > $PATCH_DIR/trunkJavacWarnings.txt 2>&1"
- $ANT_HOME/bin/ant -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME}PatchProcess= clean tar > $PATCH_DIR/trunkJavacWarnings.txt 2>&1
+# echo "$ANT_HOME/bin/ant -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME}PatchProcess= clean tar > $PATCH_DIR/trunkJavacWarnings.txt 2>&1"
+# $ANT_HOME/bin/ant -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -D${PROJECT_NAME}PatchProcess= clean tar > $PATCH_DIR/trunkJavacWarnings.txt 2>&1
+ $MAVEN_HOME/bin/mvn clean compile -DskipTests -D${PROJECT_NAME}PatchProcess -Ptest-patch > $PATCH_DIR/trunkJavacWarnings.txt 2>&1
if [[ $? != 0 ]] ; then
echo "Trunk compilation is broken?"
cleanupAndExit 1
@@ -296,8 +298,11 @@ checkJavadocWarnings () {
echo ""
echo ""
echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= clean javadoc | tee $PATCH_DIR/patchJavadocWarnings.txt"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= clean javadoc | tee $PATCH_DIR/patchJavadocWarnings.txt
- javadocWarnings=`$GREP -o '\[javadoc\] [0-9]* warning' $PATCH_DIR/patchJavadocWarnings.txt | awk '{total += $2} END {print total}'`
+ (cd root; mvn install)
+ (cd doclet; mvn install)
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= clean javadoc | tee $PATCH_DIR/patchJavadocWarnings.txt
+ $MAVEN_HOME/bin/mvn clean compile javadoc:javadoc -DskipTests -Pdocs -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/patchJavadocWarnings.txt 2>&1
+ javadocWarnings=`$GREP '\[WARNING\]' $PATCH_DIR/patchJavadocWarnings.txt | awk '/Javadoc Warnings/,EOF' | $GREP -v 'Javadoc Warnings' | awk 'BEGIN {total = 0} {total += 1} END {print total}'`
echo ""
echo ""
echo "There appear to be $javadocWarnings javadoc warnings generated by the patched build."
@@ -327,8 +332,9 @@ checkJavacWarnings () {
echo "======================================================================"
echo ""
echo ""
- echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR/patchJavacWarnings.txt 2>&1"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR/patchJavacWarnings.txt 2>&1
+ #echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR/patchJavacWarnings.txt 2>&1"
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -Djavac.args="-Xlint -Xmaxwarns 1000" $ECLIPSE_PROPERTY -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= clean tar > $PATCH_DIR/patchJavacWarnings.txt 2>&1
+ $MAVEN_HOME/bin/mvn clean compile -DskipTests -D${PROJECT_NAME}PatchProcess -Ptest-patch > $PATCH_DIR/patchJavacWarnings.txt 2>&1
if [[ $? != 0 ]] ; then
JIRA_COMMENT="$JIRA_COMMENT
@@ -337,8 +343,8 @@ checkJavacWarnings () {
fi
### Compare trunk and patch javac warning numbers
if [[ -f $PATCH_DIR/patchJavacWarnings.txt ]] ; then
- trunkJavacWarnings=`$GREP -o '\[javac\] [0-9]* warning' $PATCH_DIR/trunkJavacWarnings.txt | awk '{total += $2} END {print total}'`
- patchJavacWarnings=`$GREP -o '\[javac\] [0-9]* warning' $PATCH_DIR/patchJavacWarnings.txt | awk '{total += $2} END {print total}'`
+ trunkJavacWarnings=`$GREP '\[WARNING\]' $PATCH_DIR/trunkJavacWarnings.txt | awk 'BEGIN {total = 0} {total += 1} END {print total}'`
+ patchJavacWarnings=`$GREP '\[WARNING\]' $PATCH_DIR/patchJavacWarnings.txt | awk 'BEGIN {total = 0} {total += 1} END {print total}'`
echo "There appear to be $trunkJavacWarnings javac compiler warnings before the patch and $patchJavacWarnings javac compiler warnings after applying the patch."
if [[ $patchJavacWarnings != "" && $trunkJavacWarnings != "" ]] ; then
if [[ $patchJavacWarnings -gt $trunkJavacWarnings ]] ; then
@@ -367,8 +373,10 @@ checkReleaseAuditWarnings () {
echo "======================================================================"
echo ""
echo ""
- echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR/patchReleaseAuditWarnings.txt 2>&1"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR/patchReleaseAuditWarnings.txt 2>&1
+ #echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR/patchReleaseAuditWarnings.txt 2>&1"
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= releaseaudit > $PATCH_DIR/patchReleaseAuditWarnings.txt 2>&1
+ $MAVEN_HOME/bin/mvn apache-rat:check -D${PROJECT_NAME}PatchProcess 2>&1
+ find . -name rat.txt | xargs cat > $PATCH_DIR/patchReleaseAuditWarnings.txt
### Compare trunk and patch release audit warning numbers
if [[ -f $PATCH_DIR/patchReleaseAuditWarnings.txt ]] ; then
@@ -410,8 +418,10 @@ checkStyle () {
echo "THIS IS NOT IMPLEMENTED YET"
echo ""
echo ""
- echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle
+ #echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle"
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= checkstyle
+ $MAVEN_HOME/bin/mvn compile checkstyle:checkstyle -D${PROJECT_NAME}PatchProcess
+
JIRA_COMMENT_FOOTER="Checkstyle results: $BUILD_URL/artifact/trunk/build/test/checkstyle-errors.html
$JIRA_COMMENT_FOOTER"
### TODO: calculate actual patchStyleErrors
@@ -441,27 +451,28 @@ checkFindbugsWarnings () {
echo "======================================================================"
echo ""
echo ""
- echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dfindbugs.home=$FINDBUGS_HOME -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -Dfindbugs.home=${FINDBUGS_HOME} -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs
+ #echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dfindbugs.home=$FINDBUGS_HOME -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs"
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -Dfindbugs.home=${FINDBUGS_HOME} -Dforrest.home=${FORREST_HOME} -DHadoopPatchProcess= findbugs
+ $MAVEN_HOME/bin/mvn clean compile findbugs:findbugs -D${PROJECT_NAME}PatchProcess -X
+
if [ $? != 0 ] ; then
JIRA_COMMENT="$JIRA_COMMENT
-1 findbugs. The patch appears to cause Findbugs (version ${findbugs_version}) to fail."
return 1
fi
-JIRA_COMMENT_FOOTER="Findbugs warnings: $BUILD_URL/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
+JIRA_COMMENT_FOOTER="Findbugs warnings: $BUILD_URL/artifact/trunk/target/newPatchFindbugsWarnings.html
$JIRA_COMMENT_FOOTER"
- cp $BASEDIR/build/test/findbugs/*.xml $PATCH_DIR/patchFindbugsWarnings.xml
+
+ cp $BASEDIR/hadoop-common/target/findbugsXml.xml $PATCH_DIR/patchFindbugsWarnings.xml
$FINDBUGS_HOME/bin/setBugDatabaseInfo -timestamp "01/01/2000" \
$PATCH_DIR/patchFindbugsWarnings.xml \
$PATCH_DIR/patchFindbugsWarnings.xml
findbugsWarnings=`$FINDBUGS_HOME/bin/filterBugs -first "01/01/2000" $PATCH_DIR/patchFindbugsWarnings.xml \
- $BASEDIR/build/test/findbugs/newPatchFindbugsWarnings.xml | /usr/bin/awk '{print $1}'`
+ $PATCH_DIR/newPatchFindbugsWarnings.xml | /usr/bin/awk '{print $1}'`
$FINDBUGS_HOME/bin/convertXmlToText -html \
- $BASEDIR/build/test/findbugs/newPatchFindbugsWarnings.xml \
- $BASEDIR/build/test/findbugs/newPatchFindbugsWarnings.html
- cp $BASEDIR/build/test/findbugs/newPatchFindbugsWarnings.html $PATCH_DIR/newPatchFindbugsWarnings.html
- cp $BASEDIR/build/test/findbugs/newPatchFindbugsWarnings.xml $PATCH_DIR/newPatchFindbugsWarnings.xml
+ $PATCH_DIR/newPatchFindbugsWarnings.xml \
+ $PATCH_DIR/newPatchFindbugsWarnings.html
### if current warnings greater than OK_FINDBUGS_WARNINGS
if [[ $findbugsWarnings > $OK_FINDBUGS_WARNINGS ]] ; then
@@ -496,11 +507,12 @@ runCoreTests () {
PreTestTarget="create-c++-configure"
fi
- echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core"
- $ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core
+ #echo "$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core"
+ #$ANT_HOME/bin/ant -Dversion="${VERSION}" -DHadoopPatchProcess= -Dtest.junit.output.format=xml -Dtest.output=no -Dcompile.c++=yes -Dforrest.home=$FORREST_HOME $PreTestTarget test-core
+ $MAVEN_HOME/bin/mvn clean test -Pnative -DHadoopPatchProcess
if [[ $? != 0 ]] ; then
### Find and format names of failed tests
- failed_tests=`grep -l -E "
+
+
+ 4.0.0
+
+ org.apache.hadoop
+ hadoop-project
+ 0.23.0-SNAPSHOT
+ ../hadoop-project
+
+ org.apache.hadoop
+ hadoop-annotations
+ 0.23.0-SNAPSHOT
+ Apache Hadoop Annotations
+ Apache Hadoop Annotations
+ jar
+
+
+
+ jdiff
+ jdiff
+ compile
+
+
+
+
diff --git a/common/src/java/org/apache/hadoop/classification/InterfaceAudience.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/InterfaceAudience.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceAudience.java
diff --git a/common/src/java/org/apache/hadoop/classification/InterfaceStability.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceStability.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/InterfaceStability.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/InterfaceStability.java
diff --git a/common/src/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsJDiffDoclet.java
diff --git a/common/src/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/ExcludePrivateAnnotationsStandardDoclet.java
diff --git a/common/src/java/org/apache/hadoop/classification/tools/RootDocProcessor.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/RootDocProcessor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/tools/RootDocProcessor.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/RootDocProcessor.java
diff --git a/common/src/java/org/apache/hadoop/classification/tools/StabilityOptions.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/StabilityOptions.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/tools/StabilityOptions.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/StabilityOptions.java
diff --git a/common/src/java/org/apache/hadoop/classification/tools/package-info.java b/hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/classification/tools/package-info.java
rename to hadoop-annotations/src/main/java/org/apache/hadoop/classification/tools/package-info.java
diff --git a/hadoop-assemblies/pom.xml b/hadoop-assemblies/pom.xml
new file mode 100644
index 0000000000..cb80d15035
--- /dev/null
+++ b/hadoop-assemblies/pom.xml
@@ -0,0 +1,99 @@
+
+
+
+ 4.0.0
+ org.apache.hadoop
+ hadoop-assemblies
+ 0.23.0-SNAPSHOT
+ Apache Hadoop Assemblies
+ Apache Hadoop Assemblies
+
+
+ false
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.2-beta-3
+
+
+ org.apache.rat
+ apache-rat-plugin
+ 0.7
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ false
+
+
+
+ [3.0.0,)
+
+
+ 1.6
+
+
+ unix
+
+
+
+
+
+ clean
+
+ enforce
+
+ pre-clean
+
+
+ default
+
+ enforce
+
+ validate
+
+
+ site
+
+ enforce
+
+ pre-site
+
+
+
+
+ org.apache.rat
+ apache-rat-plugin
+
+
+
+
diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml
new file mode 100644
index 0000000000..4e1f46378a
--- /dev/null
+++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-bintar.xml
@@ -0,0 +1,113 @@
+
+
+ hadoop-bintar
+
+ dir
+
+ false
+
+
+ ${basedir}/src/main/bin
+ /bin
+
+ hadoop
+
+ 0755
+
+
+ ${basedir}/src/main/conf
+ /etc/hadoop
+
+
+ ${basedir}/src/main/bin
+ /libexec
+
+ hadoop-config.sh
+
+ 0755
+
+
+ ${basedir}/src/main/bin
+ /sbin
+
+ *.sh
+
+
+ hadoop-config.sh
+
+ 0755
+
+
+ ${basedir}/src/main/packages
+ /sbin
+
+ *.sh
+
+ 0755
+
+
+ ${basedir}
+ /share/doc/hadoop/${hadoop.component}
+
+ *.txt
+
+
+
+ ${basedir}/src/main/webapps
+ /share/hadoop/${hadoop.component}/webapps
+
+
+ ${basedir}/src/main/conf
+ /share/hadoop/${hadoop.component}/templates
+
+ *-site.xml
+
+
+
+ ${project.build.directory}
+ /share/hadoop/${hadoop.component}
+
+ ${project.artifactId}-${project.version}.jar
+ ${project.artifactId}-${project.version}-tests.jar
+ ${project.artifactId}-${project.version}-sources.jar
+ ${project.artifactId}-${project.version}-test-sources.jar
+
+
+
+ ${basedir}/dev-support/jdiff
+ /share/hadoop/${hadoop.component}/jdiff
+
+
+ ${project.build.directory}/site/jdiff/xml
+ /share/hadoop/${hadoop.component}/jdiff
+
+
+
+
+ /share/hadoop/${hadoop.component}/lib
+ false
+ compile
+ false
+
+ org.apache.ant:*:jar
+ org.apache.hadoop:hadoop-*:jar
+ jdiff:jdiff:jar
+
+
+
+
diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml
new file mode 100644
index 0000000000..1829f22ea4
--- /dev/null
+++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml
@@ -0,0 +1,37 @@
+
+
+ hadoop-src
+
+ dir
+
+ false
+
+
+ ${project.basedir}
+ src/
+ true
+
+ **/*.log
+ **/build/**
+ **/target/**
+
+
+
+
diff --git a/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml b/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml
new file mode 100644
index 0000000000..32984f7778
--- /dev/null
+++ b/hadoop-assemblies/src/main/resources/assemblies/hadoop-tar.xml
@@ -0,0 +1,85 @@
+
+
+ hadoop-tar
+
+ dir
+
+ false
+
+
+ ${basedir}
+ /
+
+ *.txt
+
+
+
+ ${basedir}/src/main/bin
+ /bin
+
+ *
+
+ 0755
+
+
+ ${basedir}/src/main/bin
+ /libexec
+
+ hadoop-config.sh
+
+ 0755
+
+
+ ${basedir}/src/main/conf
+ /conf
+
+
+ ${basedir}/src/main/webapps
+ /webapps
+
+
+ ${project.build.directory}/site
+ /docs
+
+
+ ${project.build.directory}
+ /
+
+ ${project.artifactId}-${project.version}.jar
+ ${project.artifactId}-${project.version}-tests.jar
+
+
+
+ ${project.build.directory}/src
+ /src
+
+
+
+
+ /lib
+ false
+ compile
+ false
+
+ org.apache.ant:*:jar
+ org.apache.hadoop:hadoop-*:jar
+ jdiff:jdiff:jar
+
+
+
+
diff --git a/hadoop-common/BUILDING.txt b/hadoop-common/BUILDING.txt
new file mode 100644
index 0000000000..2f122ddf76
--- /dev/null
+++ b/hadoop-common/BUILDING.txt
@@ -0,0 +1,61 @@
+----------------------------------------------------------------------------------
+Requirements:
+
+* Unix System
+* JDK 1.6
+* Maven 3.0
+* Forrest 0.8 (if generating docs)
+* Findbugs 1.3.9 (if running findbugs)
+* Autotools (if compiling native code)
+* Internet connection for first build (to fetch all Maven and Hadoop dependencies)
+
+----------------------------------------------------------------------------------
+Maven modules:
+
+ hadoop (Main Hadoop project)
+ - hadoop-project (Parent POM for all Hadoop Maven modules. )
+ (All plugins & dependencies versions are defined here.)
+ - hadoop-annotations (Generates the Hadoop doclet used to generated the Javadocs)
+ - hadoop-common (Hadoop common)
+
+----------------------------------------------------------------------------------
+Where to run Maven from?
+
+ It can be run from any module. The only catch is that if not run from utrunk
+ all modules that are not part of the build run must be installed in the local
+ Maven cache or available in a Maven repository.
+
+----------------------------------------------------------------------------------
+Maven build goals:
+
+ * Clean : mvn clean
+ * Compile : mvn compile [-Pnative]
+ * Run tests : mvn test [-Pnative]
+ * Create JAR : mvn package
+ * Run findbugs : mvn compile findbugs:findbugs
+ * Run checkstyle : mvn compile checkstyle:checkstyle
+ * Install JAR in M2 cache : mvn install
+ * Deploy JAR to Maven repo : mvn deploy
+ * Run clover : mvn test -Pclover [-DcloverLicenseLocation=${user.name}/.clover.license]
+ * Run Rat : mvn apache-rat:check
+ * Build javadocs : mvn javadoc:javadoc
+ * Build TAR : mvn package [-Ptar][-Pbintar][-Pdocs][-Psrc][-Pnative]
+
+ Build options:
+
+ * Use -Pnative to compile/bundle native code
+ * Use -Dsnappy.prefix=(/usr/local) & -Dbundle.snappy=(false) to compile
+ Snappy JNI bindings and to bundle Snappy SO files
+ * Use -Pdocs to generate & bundle the documentation in the TAR (using -Ptar)
+ * Use -Psrc to bundle the source in the TAR (using -Ptar)
+
+ Tests options:
+
+ * Use -DskipTests to skip tests when running the following Maven goals:
+ 'package', 'install', 'deploy' or 'verify'
+ * -Dtest=,....
+ * -Dtest.exclude=
+ * -Dtest.exclude.pattern=**/.java,**/.java
+
+
+----------------------------------------------------------------------------------
diff --git a/common/CHANGES.txt b/hadoop-common/CHANGES.txt
similarity index 99%
rename from common/CHANGES.txt
rename to hadoop-common/CHANGES.txt
index c30a638a67..be4b83120d 100644
--- a/common/CHANGES.txt
+++ b/hadoop-common/CHANGES.txt
@@ -300,6 +300,9 @@ Trunk (unreleased changes)
HADOOP-7178. Add a parameter, useRawLocalFileSystem, to copyToLocalFile(..)
in FileSystem. (Uma Maheswara Rao G via szetszwo)
+ HADOOP-6671. Use maven for hadoop common builds. (Alejandro Abdelnur
+ via tomwhite)
+
OPTIMIZATIONS
HADOOP-7333. Performance improvement in PureJavaCrc32. (Eric Caspole
diff --git a/common/LICENSE.txt b/hadoop-common/LICENSE.txt
similarity index 100%
rename from common/LICENSE.txt
rename to hadoop-common/LICENSE.txt
diff --git a/common/NOTICE.txt b/hadoop-common/NOTICE.txt
similarity index 100%
rename from common/NOTICE.txt
rename to hadoop-common/NOTICE.txt
diff --git a/common/README.txt b/hadoop-common/README.txt
similarity index 100%
rename from common/README.txt
rename to hadoop-common/README.txt
diff --git a/common/src/test/checkstyle.xml b/hadoop-common/dev-support/checkstyle.xml
similarity index 98%
rename from common/src/test/checkstyle.xml
rename to hadoop-common/dev-support/checkstyle.xml
index 24e2aa25bf..ad70bee176 100644
--- a/common/src/test/checkstyle.xml
+++ b/hadoop-common/dev-support/checkstyle.xml
@@ -51,7 +51,7 @@
-
+
@@ -61,6 +61,8 @@
+
+
@@ -112,7 +114,6 @@
-
@@ -126,7 +127,6 @@
-
diff --git a/common/src/test/findbugsExcludeFile.xml b/hadoop-common/dev-support/findbugsExcludeFile.xml
similarity index 100%
rename from common/src/test/findbugsExcludeFile.xml
rename to hadoop-common/dev-support/findbugsExcludeFile.xml
diff --git a/common/lib/jdiff/hadoop-core_0.20.0.xml b/hadoop-common/dev-support/jdiff/hadoop-core_0.20.0.xml
similarity index 100%
rename from common/lib/jdiff/hadoop-core_0.20.0.xml
rename to hadoop-common/dev-support/jdiff/hadoop-core_0.20.0.xml
diff --git a/common/lib/jdiff/hadoop-core_0.21.0.xml b/hadoop-common/dev-support/jdiff/hadoop-core_0.21.0.xml
similarity index 100%
rename from common/lib/jdiff/hadoop-core_0.21.0.xml
rename to hadoop-common/dev-support/jdiff/hadoop-core_0.21.0.xml
diff --git a/common/lib/jdiff/hadoop_0.17.0.xml b/hadoop-common/dev-support/jdiff/hadoop_0.17.0.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.17.0.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.17.0.xml
diff --git a/common/lib/jdiff/hadoop_0.18.1.xml b/hadoop-common/dev-support/jdiff/hadoop_0.18.1.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.18.1.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.18.1.xml
diff --git a/common/lib/jdiff/hadoop_0.18.2.xml b/hadoop-common/dev-support/jdiff/hadoop_0.18.2.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.18.2.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.18.2.xml
diff --git a/common/lib/jdiff/hadoop_0.18.3.xml b/hadoop-common/dev-support/jdiff/hadoop_0.18.3.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.18.3.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.18.3.xml
diff --git a/common/lib/jdiff/hadoop_0.19.0.xml b/hadoop-common/dev-support/jdiff/hadoop_0.19.0.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.19.0.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.19.0.xml
diff --git a/common/lib/jdiff/hadoop_0.19.1.xml b/hadoop-common/dev-support/jdiff/hadoop_0.19.1.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.19.1.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.19.1.xml
diff --git a/common/lib/jdiff/hadoop_0.19.2.xml b/hadoop-common/dev-support/jdiff/hadoop_0.19.2.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.19.2.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.19.2.xml
diff --git a/common/lib/jdiff/hadoop_0.20.0.xml b/hadoop-common/dev-support/jdiff/hadoop_0.20.0.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.20.0.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.20.0.xml
diff --git a/common/lib/jdiff/hadoop_0.20.1.xml b/hadoop-common/dev-support/jdiff/hadoop_0.20.1.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.20.1.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.20.1.xml
diff --git a/common/lib/jdiff/hadoop_0.20.2.xml b/hadoop-common/dev-support/jdiff/hadoop_0.20.2.xml
similarity index 100%
rename from common/lib/jdiff/hadoop_0.20.2.xml
rename to hadoop-common/dev-support/jdiff/hadoop_0.20.2.xml
diff --git a/common/src/saveVersion.sh b/hadoop-common/dev-support/saveVersion.sh
similarity index 88%
rename from common/src/saveVersion.sh
rename to hadoop-common/dev-support/saveVersion.sh
index 93ce7ecdb6..d11a4cf75c 100755
--- a/common/src/saveVersion.sh
+++ b/hadoop-common/dev-support/saveVersion.sh
@@ -43,14 +43,20 @@ else
branch="Unknown"
url="file://$cwd"
fi
-srcChecksum=`find src -name '*.java' | LC_ALL=C sort | xargs md5sum | md5sum | cut -d ' ' -f 1`
-mkdir -p $build_dir/src/org/apache/hadoop
+which md5sum > /dev/null
+if [ "$?" = "0" ] ; then
+ srcChecksum=`find src/main/java -name '*.java' | LC_ALL=C sort | xargs md5sum | md5sum | cut -d ' ' -f 1`
+else
+ srcChecksum="Not Available"
+fi
+
+mkdir -p $build_dir/org/apache/hadoop
cat << EOF | \
sed -e "s/VERSION/$version/" -e "s/USER/$user/" -e "s/DATE/$date/" \
-e "s|URL|$url|" -e "s/REV/$revision/" \
-e "s|BRANCH|$branch|" -e "s/SRCCHECKSUM/$srcChecksum/" \
- > $build_dir/src/org/apache/hadoop/package-info.java
+ > $build_dir/org/apache/hadoop/package-info.java
/*
* Generated by src/saveVersion.sh
*/
diff --git a/hadoop-common/pom.xml b/hadoop-common/pom.xml
new file mode 100644
index 0000000000..f7b02e7dcd
--- /dev/null
+++ b/hadoop-common/pom.xml
@@ -0,0 +1,1019 @@
+
+
+
+ 4.0.0
+
+ org.apache.hadoop
+ hadoop-project
+ 0.23.0-SNAPSHOT
+ ../hadoop-project
+
+ org.apache.hadoop
+ hadoop-common
+ 0.23.0-SNAPSHOT
+ Apache Hadoop Common
+ Apache Hadoop Common
+ jar
+
+
+ ${project.build.directory}/test/data
+ ${project.build.directory}/log
+ ${project.build.directory}/test-classes/webapps
+ ${project.build.directory}/test-classes
+ ${project.build.directory}/test-classes
+
+ ${os.name}-${os.arch}-${sun.arch.data.model}
+ /usr/local
+ ${snappy.prefix}/lib
+ false
+
+ common
+
+
+
+
+ org.apache.hadoop
+ hadoop-annotations
+ provided
+
+
+ com.google.guava
+ guava
+ compile
+
+
+ commons-cli
+ commons-cli
+ compile
+
+
+ org.apache.commons
+ commons-math
+ compile
+
+
+ xmlenc
+ xmlenc
+ compile
+
+
+ commons-httpclient
+ commons-httpclient
+ compile
+
+
+ commons-codec
+ commons-codec
+ compile
+
+
+ commons-net
+ commons-net
+ compile
+
+
+ javax.servlet
+ servlet-api
+ compile
+
+
+ org.mortbay.jetty
+ jetty
+ compile
+
+
+ org.mortbay.jetty
+ jetty-util
+ compile
+
+
+ tomcat
+ jasper-compiler
+ compile
+
+
+ tomcat
+ jasper-runtime
+ compile
+
+
+ javax.servlet.jsp
+ jsp-api
+ compile
+
+
+ commons-el
+ commons-el
+ compile
+
+
+ commons-logging
+ commons-logging
+ compile
+
+
+ commons-logging
+ commons-logging-api
+ compile
+
+
+ log4j
+ log4j
+ compile
+
+
+ net.java.dev.jets3t
+ jets3t
+ compile
+
+
+ org.apache.mina
+ mina-core
+ test
+
+
+ org.apache.ftpserver
+ ftplet-api
+ test
+
+
+ org.apache.ftpserver
+ ftpserver-core
+ test
+
+
+ org.apache.ftpserver
+ ftpserver-deprecated
+ test
+
+
+ junit
+ junit
+ test
+
+
+ commons-lang
+ commons-lang
+ compile
+
+
+ commons-collections
+ commons-collections
+ compile
+
+
+ commons-configuration
+ commons-configuration
+ compile
+
+
+ hsqldb
+ hsqldb
+ compile
+
+
+ org.slf4j
+ slf4j-api
+ compile
+
+
+ org.slf4j
+ slf4j-log4j12
+ compile
+
+
+ org.eclipse.jdt
+ core
+ compile
+
+
+ oro
+ oro
+ compile
+
+
+ org.codehaus.jackson
+ jackson-mapper-asl
+ compile
+
+
+ org.aspectj
+ aspectjrt
+ compile
+
+
+ org.mockito
+ mockito-all
+ test
+
+
+ org.apache.hadoop
+ avro
+ compile
+
+
+ net.sf.kosmosfs
+ kfs
+ compile
+
+
+ org.apache.ant
+ ant
+ provided
+
+
+ com.google.protobuf
+ protobuf-java
+ compile
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+ always
+ 600
+ -Xmx1024m
+
+ ${env.LD_LIBRARY_PATH}:${project.build.directory}/native/lib
+
+
+
+
+ ${test.build.data}
+ ${test.build.webapps}
+ ${test.cache.data}
+ ${hadoop.log.dir}
+ ${test.build.classes}
+
+ true
+ ${basedir}/src/test/resources/krb5.conf
+
+
+ **/Test*.java
+
+
+ **/${test.exclude}.java
+ ${test.exclude.pattern}
+ **/Test*$*.java
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+ prepare-package
+
+ jar
+ test-jar
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ prepare-package
+
+ jar
+ test-jar
+
+
+
+
+ true
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+
+ ${basedir}/dev-support/findbugsExcludeFile.xml
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ save-version
+ generate-sources
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+ generate-test-sources
+ generate-test-sources
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ create-log-dir
+ process-test-resources
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ add-source
+ generate-sources
+
+ add-source
+
+
+
+
+
+
+
+
+ add-test-source
+ generate-test-sources
+
+ add-test-source
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+
+ file://${basedir}/dev-support/checkstyle.xml
+ false
+ xml
+ html
+ ${project.build.directory}/test/checkstyle-errors.xml
+
+
+
+ org.apache.rat
+ apache-rat-plugin
+
+
+ CHANGES.txt
+ .idea/**
+ src/main/conf/*
+ src/main/docs/**
+ dev-support/jdiff/**
+ src/main/native/*
+ src/main/native/config/*
+ src/main/resources/META-INF/services/org.apache.hadoop.security.SecurityInfo
+ src/main/native/m4/*
+ src/test/empty-file
+ src/test/all-tests
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+ true
+ true
+ false
+
+ ${maven.compile.encoding}
+ ${project.build.directory}/site
+ api
+
+
+ ${project.name} API
+ org.apache.hadoop*
+
+
+ org.apache.hadoop.classification.tools.ExcludePrivateAnnotationsStandardDoclet
+
+
+ org.apache.hadoop
+ hadoop-annotations
+ ${project.version}
+
+
+ true
+
+
+ true
+
+
+
+ org.apache.hadoop:hadoop-annotations
+
+
+
+
+
+
+
+
+
+ native
+
+ false
+
+
+ /usr/local
+ ${snappy.prefix}/lib
+ ${snappy.prefix}/include
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ compile
+ compile
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.codehaus.mojo
+ native-maven-plugin
+
+
+ compile
+
+ javah
+
+
+ ${env.JAVA_HOME}/bin/javah
+
+ org.apache.hadoop.io.compress.zlib.ZlibCompressor
+ org.apache.hadoop.io.compress.zlib.ZlibDecompressor
+ org.apache.hadoop.security.JniBasedUnixGroupsMapping
+ org.apache.hadoop.io.nativeio.NativeIO
+ org.apache.hadoop.security.JniBasedUnixGroupsNetgroupMapping
+ org.apache.hadoop.io.compress.snappy.SnappyCompressor
+ org.apache.hadoop.io.compress.snappy.SnappyDecompressor
+
+ ${project.build.directory}/native/javah
+
+
+
+
+
+ org.codehaus.mojo
+ make-maven-plugin
+
+
+ compile
+ compile
+
+ autoreconf
+ configure
+ make-install
+
+
+
+
+
+ ${project.build.directory}/native
+
+ -i
+ -f
+
+
+
+
+
+ OS_NAME
+ ${os.name}
+
+
+ OS_ARCH
+ ${os.arch}
+
+
+ JVM_DATA_MODEL
+ ${sun.arch.data.model}
+
+
+
+ CPPFLAGS=-I${snappy.include}
+ LDFLAGS=-L${snappy.lib}
+
+ ${project.build.directory}/native
+ /usr/local
+
+
+
+
+ OS_NAME
+ ${os.name}
+
+
+ OS_ARCH
+ ${os.arch}
+
+
+ JVM_DATA_MODEL
+ ${sun.arch.data.model}
+
+
+ HADOOP_NATIVE_SRCDIR
+ ${project.build.directory}/native
+
+
+
+
+ ${project.build.directory}/native/target
+
+
+
+
+
+
+
+
+ docs
+
+ false
+
+
+ 0.20.2
+ -unstable
+
+ 512m
+
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+
+ javadoc
+
+ prepare-package
+
+
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+
+
+
+ findbugs
+
+ prepare-package
+
+
+
+ ${basedir}/dev-support/findbugsExcludeFile.xml
+
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+
+ site
+ prepare-package
+
+ copy
+
+
+
+
+ jdiff
+ jdiff
+ ${jdiff.version}
+ false
+ ${project.build.directory}
+ jdiff.jar
+
+
+ org.apache.hadoop
+ hadoop-annotations
+ ${hadoop.annotations.version}
+ false
+ ${project.build.directory}
+ hadoop-annotations.jar
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ site
+ prepare-package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ src
+
+ false
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ org.apache.hadoop
+ hadoop-assemblies
+ ${hadoop.assemblies.version}
+
+
+
+
+ pre-tar-src
+ prepare-package
+
+ single
+
+
+ false
+ false
+ ${project.artifactId}-${project.version}
+
+ hadoop-src
+
+
+
+
+
+
+
+
+
+
+ tar
+
+ false
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ pre-tar
+ prepare-package
+
+ run
+
+
+
+
+
+
+ TAR='tar cf -'
+ UNTAR='tar xfBp -'
+ LIB_DIR="${project.build.directory}/native/target/usr/local/lib"
+ if [ -d $${LIB_DIR} ] ; then
+ TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}/lib/native/${build.platform}"
+ mkdir -p $${TARGET_DIR}
+ cd $${LIB_DIR}
+ $$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
+ if [ "${bundle.snappy}" = "true" ] ; then
+ cd ${snappy.lib}
+ $$TAR *snappy* | (cd $${TARGET_DIR}/; $$UNTAR)
+ fi
+ fi
+
+
+
+
+
+
+
+
+ tar
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ org.apache.hadoop
+ hadoop-assemblies
+ ${hadoop.assemblies.version}
+
+
+
+
+ pre-tar
+ prepare-package
+
+ single
+
+
+ false
+ false
+ ${project.artifactId}-${project.version}
+
+ hadoop-tar
+
+
+
+
+
+
+
+
+
+
+ bintar
+
+ false
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+
+
+ pre-bintar
+ prepare-package
+
+ run
+
+
+
+
+
+
+ TAR='tar cf -'
+ UNTAR='tar xfBp -'
+ LIB_DIR="${project.build.directory}/native/target/usr/local/lib"
+ if [ -d $${LIB_DIR} ] ; then
+ TARGET_DIR="${project.build.directory}/${project.artifactId}-${project.version}-bin/lib"
+ mkdir -p $${TARGET_DIR}
+ cd $${LIB_DIR}
+ $$TAR *hadoop* | (cd $${TARGET_DIR}/; $$UNTAR)
+ if [ "${bundle.snappy}" = "true" ] ; then
+ cd ${snappy.lib}
+ $$TAR *snappy* | (cd $${TARGET_DIR}/; $$UNTAR)
+ fi
+ fi
+
+
+
+
+
+
+
+
+ bintar
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+
+
+ org.apache.hadoop
+ hadoop-assemblies
+ ${hadoop.assemblies.version}
+
+
+
+
+ pre-bintar
+ prepare-package
+
+ single
+
+
+ false
+ false
+ ${project.artifactId}-${project.version}-bin
+
+ hadoop-bintar
+
+
+
+
+
+
+
+
+
+
diff --git a/common/src/contrib/bash-tab-completion/README b/hadoop-common/src/contrib/bash-tab-completion/README
similarity index 100%
rename from common/src/contrib/bash-tab-completion/README
rename to hadoop-common/src/contrib/bash-tab-completion/README
diff --git a/common/src/contrib/bash-tab-completion/hadoop.sh b/hadoop-common/src/contrib/bash-tab-completion/hadoop.sh
similarity index 100%
rename from common/src/contrib/bash-tab-completion/hadoop.sh
rename to hadoop-common/src/contrib/bash-tab-completion/hadoop.sh
diff --git a/common/bin/hadoop b/hadoop-common/src/main/bin/hadoop
similarity index 100%
rename from common/bin/hadoop
rename to hadoop-common/src/main/bin/hadoop
diff --git a/common/bin/hadoop-config.sh b/hadoop-common/src/main/bin/hadoop-config.sh
similarity index 100%
rename from common/bin/hadoop-config.sh
rename to hadoop-common/src/main/bin/hadoop-config.sh
diff --git a/common/bin/hadoop-daemon.sh b/hadoop-common/src/main/bin/hadoop-daemon.sh
similarity index 100%
rename from common/bin/hadoop-daemon.sh
rename to hadoop-common/src/main/bin/hadoop-daemon.sh
diff --git a/common/bin/hadoop-daemons.sh b/hadoop-common/src/main/bin/hadoop-daemons.sh
similarity index 100%
rename from common/bin/hadoop-daemons.sh
rename to hadoop-common/src/main/bin/hadoop-daemons.sh
diff --git a/common/bin/rcc b/hadoop-common/src/main/bin/rcc
similarity index 100%
rename from common/bin/rcc
rename to hadoop-common/src/main/bin/rcc
diff --git a/common/bin/slaves.sh b/hadoop-common/src/main/bin/slaves.sh
similarity index 100%
rename from common/bin/slaves.sh
rename to hadoop-common/src/main/bin/slaves.sh
diff --git a/common/bin/start-all.sh b/hadoop-common/src/main/bin/start-all.sh
similarity index 100%
rename from common/bin/start-all.sh
rename to hadoop-common/src/main/bin/start-all.sh
diff --git a/common/bin/stop-all.sh b/hadoop-common/src/main/bin/stop-all.sh
similarity index 100%
rename from common/bin/stop-all.sh
rename to hadoop-common/src/main/bin/stop-all.sh
diff --git a/common/conf/hadoop-metrics.properties b/hadoop-common/src/main/conf/hadoop-metrics.properties
similarity index 100%
rename from common/conf/hadoop-metrics.properties
rename to hadoop-common/src/main/conf/hadoop-metrics.properties
diff --git a/common/conf/hadoop-metrics2.properties b/hadoop-common/src/main/conf/hadoop-metrics2.properties
similarity index 100%
rename from common/conf/hadoop-metrics2.properties
rename to hadoop-common/src/main/conf/hadoop-metrics2.properties
diff --git a/common/conf/log4j.properties b/hadoop-common/src/main/conf/log4j.properties
similarity index 100%
rename from common/conf/log4j.properties
rename to hadoop-common/src/main/conf/log4j.properties
diff --git a/common/conf/ssl-client.xml.example b/hadoop-common/src/main/conf/ssl-client.xml.example
similarity index 100%
rename from common/conf/ssl-client.xml.example
rename to hadoop-common/src/main/conf/ssl-client.xml.example
diff --git a/common/conf/ssl-server.xml.example b/hadoop-common/src/main/conf/ssl-server.xml.example
similarity index 100%
rename from common/conf/ssl-server.xml.example
rename to hadoop-common/src/main/conf/ssl-server.xml.example
diff --git a/common/src/docs/changes/ChangesFancyStyle.css b/hadoop-common/src/main/docs/changes/ChangesFancyStyle.css
similarity index 100%
rename from common/src/docs/changes/ChangesFancyStyle.css
rename to hadoop-common/src/main/docs/changes/ChangesFancyStyle.css
diff --git a/common/src/docs/changes/ChangesSimpleStyle.css b/hadoop-common/src/main/docs/changes/ChangesSimpleStyle.css
similarity index 100%
rename from common/src/docs/changes/ChangesSimpleStyle.css
rename to hadoop-common/src/main/docs/changes/ChangesSimpleStyle.css
diff --git a/common/src/docs/changes/changes2html.pl b/hadoop-common/src/main/docs/changes/changes2html.pl
similarity index 100%
rename from common/src/docs/changes/changes2html.pl
rename to hadoop-common/src/main/docs/changes/changes2html.pl
diff --git a/common/src/docs/forrest.properties b/hadoop-common/src/main/docs/forrest.properties
similarity index 100%
rename from common/src/docs/forrest.properties
rename to hadoop-common/src/main/docs/forrest.properties
diff --git a/common/src/docs/releasenotes.html b/hadoop-common/src/main/docs/releasenotes.html
similarity index 100%
rename from common/src/docs/releasenotes.html
rename to hadoop-common/src/main/docs/releasenotes.html
diff --git a/common/src/docs/src/documentation/README.txt b/hadoop-common/src/main/docs/src/documentation/README.txt
similarity index 100%
rename from common/src/docs/src/documentation/README.txt
rename to hadoop-common/src/main/docs/src/documentation/README.txt
diff --git a/common/src/docs/src/documentation/classes/CatalogManager.properties b/hadoop-common/src/main/docs/src/documentation/classes/CatalogManager.properties
similarity index 100%
rename from common/src/docs/src/documentation/classes/CatalogManager.properties
rename to hadoop-common/src/main/docs/src/documentation/classes/CatalogManager.properties
diff --git a/common/src/docs/src/documentation/conf/cli.xconf b/hadoop-common/src/main/docs/src/documentation/conf/cli.xconf
similarity index 100%
rename from common/src/docs/src/documentation/conf/cli.xconf
rename to hadoop-common/src/main/docs/src/documentation/conf/cli.xconf
diff --git a/common/src/docs/src/documentation/content/xdocs/Superusers.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/Superusers.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/Superusers.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/Superusers.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/cluster_setup.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/cluster_setup.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/cluster_setup.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/cluster_setup.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/commands_manual.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/commands_manual.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/commands_manual.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/deployment_layout.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/deployment_layout.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/deployment_layout.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/deployment_layout.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/file_system_shell.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/file_system_shell.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/file_system_shell.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/file_system_shell.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/index.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/index.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/index.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/index.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/native_libraries.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/native_libraries.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/native_libraries.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/native_libraries.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/service_level_auth.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/service_level_auth.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/service_level_auth.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/service_level_auth.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/single_node_setup.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/single_node_setup.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/single_node_setup.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/single_node_setup.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/site.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/site.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/site.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/site.xml
diff --git a/common/src/docs/src/documentation/content/xdocs/tabs.xml b/hadoop-common/src/main/docs/src/documentation/content/xdocs/tabs.xml
similarity index 100%
rename from common/src/docs/src/documentation/content/xdocs/tabs.xml
rename to hadoop-common/src/main/docs/src/documentation/content/xdocs/tabs.xml
diff --git a/common/src/docs/src/documentation/resources/images/architecture.gif b/hadoop-common/src/main/docs/src/documentation/resources/images/architecture.gif
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/architecture.gif
rename to hadoop-common/src/main/docs/src/documentation/resources/images/architecture.gif
diff --git a/common/src/docs/src/documentation/resources/images/common-logo.jpg b/hadoop-common/src/main/docs/src/documentation/resources/images/common-logo.jpg
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/common-logo.jpg
rename to hadoop-common/src/main/docs/src/documentation/resources/images/common-logo.jpg
diff --git a/common/src/docs/src/documentation/resources/images/core-logo.gif b/hadoop-common/src/main/docs/src/documentation/resources/images/core-logo.gif
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/core-logo.gif
rename to hadoop-common/src/main/docs/src/documentation/resources/images/core-logo.gif
diff --git a/common/src/docs/src/documentation/resources/images/favicon.ico b/hadoop-common/src/main/docs/src/documentation/resources/images/favicon.ico
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/favicon.ico
rename to hadoop-common/src/main/docs/src/documentation/resources/images/favicon.ico
diff --git a/common/src/docs/src/documentation/resources/images/hadoop-logo-big.jpg b/hadoop-common/src/main/docs/src/documentation/resources/images/hadoop-logo-big.jpg
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hadoop-logo-big.jpg
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hadoop-logo-big.jpg
diff --git a/common/src/docs/src/documentation/resources/images/hadoop-logo.jpg b/hadoop-common/src/main/docs/src/documentation/resources/images/hadoop-logo.jpg
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hadoop-logo.jpg
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hadoop-logo.jpg
diff --git a/common/src/docs/src/documentation/resources/images/hdfsarchitecture.gif b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.gif
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsarchitecture.gif
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.gif
diff --git a/common/src/docs/src/documentation/resources/images/hdfsarchitecture.odg b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.odg
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsarchitecture.odg
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.odg
diff --git a/common/src/docs/src/documentation/resources/images/hdfsarchitecture.png b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.png
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsarchitecture.png
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsarchitecture.png
diff --git a/common/src/docs/src/documentation/resources/images/hdfsdatanodes.gif b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.gif
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsdatanodes.gif
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.gif
diff --git a/common/src/docs/src/documentation/resources/images/hdfsdatanodes.odg b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.odg
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsdatanodes.odg
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.odg
diff --git a/common/src/docs/src/documentation/resources/images/hdfsdatanodes.png b/hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.png
similarity index 100%
rename from common/src/docs/src/documentation/resources/images/hdfsdatanodes.png
rename to hadoop-common/src/main/docs/src/documentation/resources/images/hdfsdatanodes.png
diff --git a/common/src/docs/src/documentation/skinconf.xml b/hadoop-common/src/main/docs/src/documentation/skinconf.xml
similarity index 100%
rename from common/src/docs/src/documentation/skinconf.xml
rename to hadoop-common/src/main/docs/src/documentation/skinconf.xml
diff --git a/common/src/docs/status.xml b/hadoop-common/src/main/docs/status.xml
similarity index 100%
rename from common/src/docs/status.xml
rename to hadoop-common/src/main/docs/status.xml
diff --git a/common/src/java/org/apache/hadoop/HadoopIllegalArgumentException.java b/hadoop-common/src/main/java/org/apache/hadoop/HadoopIllegalArgumentException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/HadoopIllegalArgumentException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/HadoopIllegalArgumentException.java
diff --git a/common/src/java/org/apache/hadoop/HadoopVersionAnnotation.java b/hadoop-common/src/main/java/org/apache/hadoop/HadoopVersionAnnotation.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/HadoopVersionAnnotation.java
rename to hadoop-common/src/main/java/org/apache/hadoop/HadoopVersionAnnotation.java
diff --git a/common/src/java/org/apache/hadoop/conf/ConfServlet.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/ConfServlet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/ConfServlet.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/ConfServlet.java
diff --git a/common/src/java/org/apache/hadoop/conf/Configurable.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/Configurable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/Configurable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/Configurable.java
diff --git a/common/src/java/org/apache/hadoop/conf/Configuration.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/Configuration.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java
diff --git a/common/src/java/org/apache/hadoop/conf/Configured.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/Configured.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/Configured.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/Configured.java
diff --git a/common/src/java/org/apache/hadoop/conf/Reconfigurable.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/Reconfigurable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/Reconfigurable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/Reconfigurable.java
diff --git a/common/src/java/org/apache/hadoop/conf/ReconfigurableBase.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurableBase.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/ReconfigurableBase.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurableBase.java
diff --git a/common/src/java/org/apache/hadoop/conf/ReconfigurationException.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/ReconfigurationException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationException.java
diff --git a/common/src/java/org/apache/hadoop/conf/ReconfigurationServlet.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationServlet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/ReconfigurationServlet.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationServlet.java
diff --git a/common/src/java/org/apache/hadoop/conf/ReconfigurationUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/ReconfigurationUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/ReconfigurationUtil.java
diff --git a/common/src/java/org/apache/hadoop/conf/package.html b/hadoop-common/src/main/java/org/apache/hadoop/conf/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/conf/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/conf/package.html
diff --git a/common/src/java/org/apache/hadoop/fs/AbstractFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
similarity index 99%
rename from common/src/java/org/apache/hadoop/fs/AbstractFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
index de72eee301..f4632f30ae 100644
--- a/common/src/java/org/apache/hadoop/fs/AbstractFileSystem.java
+++ b/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java
@@ -91,7 +91,7 @@ private static boolean isValidName(String src) {
StringTokenizer tokens = new StringTokenizer(src, Path.SEPARATOR);
while(tokens.hasMoreTokens()) {
String element = tokens.nextToken();
- if (element.equals("..") ||
+ if (element.equals("target/generated-sources") ||
element.equals(".") ||
(element.indexOf(":") >= 0)) {
return false;
diff --git a/common/src/java/org/apache/hadoop/fs/AvroFSInput.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/AvroFSInput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/AvroFSInput.java
diff --git a/common/src/java/org/apache/hadoop/fs/BlockLocation.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/BlockLocation.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
diff --git a/common/src/java/org/apache/hadoop/fs/BufferedFSInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/BufferedFSInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/BufferedFSInputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/ChecksumException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ChecksumException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumException.java
diff --git a/common/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ChecksumFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/ChecksumFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ChecksumFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ChecksumFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/CommonConfigurationKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/CommonConfigurationKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/CommonConfigurationKeysPublic.java
diff --git a/common/src/java/org/apache/hadoop/fs/ContentSummary.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ContentSummary.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ContentSummary.java
diff --git a/common/src/java/org/apache/hadoop/fs/CreateFlag.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/CreateFlag.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/CreateFlag.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/CreateFlag.java
diff --git a/common/src/java/org/apache/hadoop/fs/DF.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/DF.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/DF.java
diff --git a/common/src/java/org/apache/hadoop/fs/DU.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/DU.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/DU.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/DU.java
diff --git a/common/src/java/org/apache/hadoop/fs/DelegateToFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/DelegateToFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/DelegateToFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/DelegateToFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSDataInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSDataInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataInputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSDataOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSDataOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSDataOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSError.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSError.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSError.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSError.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSInputChecker.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSInputChecker.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputChecker.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSInputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/FSOutputSummer.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FSOutputSummer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FSOutputSummer.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileAlreadyExistsException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileAlreadyExistsException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileAlreadyExistsException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileAlreadyExistsException.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileChecksum.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileChecksum.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileChecksum.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileChecksum.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileContext.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileStatus.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileStatus.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileStatus.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/FileUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FileUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FileUtil.java
diff --git a/common/src/java/org/apache/hadoop/fs/FilterFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FilterFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FilterFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FilterFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/FilterFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FilterFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FilterFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FilterFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsConfig.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsConfig.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsConfig.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsConfig.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsConstants.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsConstants.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsConstants.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsConstants.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsServerDefaults.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsServerDefaults.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsServerDefaults.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsShell.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsShell.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsShell.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsShell.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsShellPermissions.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsShellPermissions.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsShellPermissions.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsShellPermissions.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsStatus.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsStatus.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsStatus.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsStatus.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsUrlConnection.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlConnection.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsUrlConnection.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlConnection.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsUrlStreamHandler.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlStreamHandler.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsUrlStreamHandler.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlStreamHandler.java
diff --git a/common/src/java/org/apache/hadoop/fs/FsUrlStreamHandlerFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlStreamHandlerFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/FsUrlStreamHandlerFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/FsUrlStreamHandlerFactory.java
diff --git a/common/src/java/org/apache/hadoop/fs/GlobExpander.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/GlobExpander.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/GlobExpander.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/GlobExpander.java
diff --git a/common/src/java/org/apache/hadoop/fs/GlobFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/GlobFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/GlobFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/GlobFilter.java
diff --git a/common/src/java/org/apache/hadoop/fs/GlobPattern.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/GlobPattern.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/GlobPattern.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/GlobPattern.java
diff --git a/common/src/java/org/apache/hadoop/fs/HardLink.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/HardLink.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/HardLink.java
diff --git a/common/src/java/org/apache/hadoop/fs/InvalidPathException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/InvalidPathException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/InvalidPathException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/InvalidPathException.java
diff --git a/common/src/java/org/apache/hadoop/fs/LocalDirAllocator.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/LocalDirAllocator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/LocalDirAllocator.java
diff --git a/common/src/java/org/apache/hadoop/fs/LocalFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/LocalFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/LocalFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/LocalFileSystemConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/LocalFileSystemConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/LocalFileSystemConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/LocalFileSystemConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/LocatedFileStatus.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/LocatedFileStatus.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/LocatedFileStatus.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/LocatedFileStatus.java
diff --git a/common/src/java/org/apache/hadoop/fs/MD5MD5CRC32FileChecksum.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/MD5MD5CRC32FileChecksum.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/MD5MD5CRC32FileChecksum.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/MD5MD5CRC32FileChecksum.java
diff --git a/common/src/java/org/apache/hadoop/fs/Options.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/Options.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/Options.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/Options.java
diff --git a/common/src/java/org/apache/hadoop/fs/ParentNotDirectoryException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ParentNotDirectoryException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ParentNotDirectoryException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ParentNotDirectoryException.java
diff --git a/common/src/java/org/apache/hadoop/fs/Path.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/Path.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/Path.java
diff --git a/common/src/java/org/apache/hadoop/fs/PathFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/PathFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/PathFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/PathFilter.java
diff --git a/common/src/java/org/apache/hadoop/fs/PositionedReadable.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/PositionedReadable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/PositionedReadable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/PositionedReadable.java
diff --git a/common/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/RemoteIterator.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/RemoteIterator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/RemoteIterator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/RemoteIterator.java
diff --git a/common/src/java/org/apache/hadoop/fs/Seekable.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/Seekable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/Seekable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/Seekable.java
diff --git a/common/src/java/org/apache/hadoop/fs/Syncable.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/Syncable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/Syncable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/Syncable.java
diff --git a/common/src/java/org/apache/hadoop/fs/Trash.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/Trash.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/Trash.java
diff --git a/common/src/java/org/apache/hadoop/fs/TrashPolicy.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicy.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/TrashPolicy.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicy.java
diff --git a/common/src/java/org/apache/hadoop/fs/TrashPolicyDefault.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicyDefault.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/TrashPolicyDefault.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/TrashPolicyDefault.java
diff --git a/common/src/java/org/apache/hadoop/fs/UnresolvedLinkException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/UnresolvedLinkException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/UnresolvedLinkException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/UnresolvedLinkException.java
diff --git a/common/src/java/org/apache/hadoop/fs/UnsupportedFileSystemException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/UnsupportedFileSystemException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/UnsupportedFileSystemException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/UnsupportedFileSystemException.java
diff --git a/common/src/java/org/apache/hadoop/fs/ftp/FTPException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ftp/FTPException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPException.java
diff --git a/common/src/java/org/apache/hadoop/fs/ftp/FTPFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ftp/FTPFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/ftp/FTPInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ftp/FTPInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FTPInputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/ftp/FtpConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FtpConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ftp/FtpConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FtpConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/ftp/FtpFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FtpFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/ftp/FtpFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/ftp/FtpFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/IFSImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/IFSImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/IFSImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/IFSImpl.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/KFSConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/KFSConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/KFSImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSImpl.java
similarity index 97%
rename from common/src/java/org/apache/hadoop/fs/kfs/KFSImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSImpl.java
index e04f64f15a..88b28ed434 100644
--- a/common/src/java/org/apache/hadoop/fs/kfs/KFSImpl.java
+++ b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSImpl.java
@@ -73,14 +73,14 @@ public FileStatus[] readdirplus(Path path) throws IOException {
return null;
int numEntries = 0;
for (int i = 0; i < fattr.length; i++) {
- if ((fattr[i].filename.compareTo(".") == 0) || (fattr[i].filename.compareTo("..") == 0))
+ if ((fattr[i].filename.compareTo(".") == 0) || (fattr[i].filename.compareTo("target/generated-sources") == 0))
continue;
numEntries++;
}
FileStatus[] fstatus = new FileStatus[numEntries];
int j = 0;
for (int i = 0; i < fattr.length; i++) {
- if ((fattr[i].filename.compareTo(".") == 0) || (fattr[i].filename.compareTo("..") == 0))
+ if ((fattr[i].filename.compareTo(".") == 0) || (fattr[i].filename.compareTo("target/generated-sources") == 0))
continue;
Path fn = new Path(path, fattr[i].filename);
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/KFSInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/KFSInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSInputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/KFSOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/KFSOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KFSOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/KosmosFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/KosmosFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/kfs/package.html b/hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/kfs/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/kfs/package.html
diff --git a/common/src/java/org/apache/hadoop/fs/local/LocalConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/local/LocalConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/local/LocalConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/local/LocalConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/local/LocalFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/local/LocalFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/local/LocalFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/local/LocalFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/local/RawLocalFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/local/RawLocalFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/local/RawLocalFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/local/RawLocalFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/local/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/local/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/local/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/local/package-info.java
diff --git a/common/src/java/org/apache/hadoop/fs/package.html b/hadoop-common/src/main/java/org/apache/hadoop/fs/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/package.html
diff --git a/common/src/java/org/apache/hadoop/fs/permission/AccessControlException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/AccessControlException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/AccessControlException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/AccessControlException.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/ChmodParser.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/ChmodParser.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/ChmodParser.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/ChmodParser.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/FsAction.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsAction.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/FsAction.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsAction.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/FsPermission.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/FsPermission.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/FsPermission.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/PermissionParser.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/PermissionParser.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/PermissionParser.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/PermissionParser.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/PermissionStatus.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/PermissionStatus.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/PermissionStatus.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/PermissionStatus.java
diff --git a/common/src/java/org/apache/hadoop/fs/permission/UmaskParser.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/permission/UmaskParser.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/permission/UmaskParser.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/permission/UmaskParser.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/Block.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/Block.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/Block.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/Block.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/FileSystemStore.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/FileSystemStore.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/FileSystemStore.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/FileSystemStore.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/INode.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/INode.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/INode.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/INode.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/Jets3tFileSystemStore.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/Jets3tFileSystemStore.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/Jets3tFileSystemStore.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/Jets3tFileSystemStore.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/MigrationTool.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/MigrationTool.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/MigrationTool.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/MigrationTool.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3Credentials.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3Credentials.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3Credentials.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3Credentials.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3Exception.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3Exception.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3Exception.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3Exception.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3FileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3FileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3FileSystemConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystemConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3FileSystemConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystemConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3FileSystemException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystemException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3FileSystemException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3FileSystemException.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3InputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3InputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3InputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3InputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/S3OutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3OutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/S3OutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/S3OutputStream.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/VersionMismatchException.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/VersionMismatchException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/VersionMismatchException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/VersionMismatchException.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3/package.html b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3/package.html
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/FileMetadata.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/FileMetadata.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/FileMetadata.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/FileMetadata.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/Jets3tNativeFileSystemStore.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/NativeFileSystemStore.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/NativeFileSystemStore.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/NativeFileSystemStore.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/NativeFileSystemStore.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/NativeS3FileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/NativeS3FileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/NativeS3FileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/NativeS3FileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/PartialListing.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/PartialListing.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/PartialListing.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/PartialListing.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/S3NativeFileSystemConfigKeys.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/S3NativeFileSystemConfigKeys.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/S3NativeFileSystemConfigKeys.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/S3NativeFileSystemConfigKeys.java
diff --git a/common/src/java/org/apache/hadoop/fs/s3native/package.html b/hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/s3native/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/s3native/package.html
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Command.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Command.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Command.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Command.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/CommandFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/CommandFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandFactory.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/CommandFormat.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandFormat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/CommandFormat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandFormat.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/CommandUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/CommandUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandUtils.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/CommandWithDestination.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/CommandWithDestination.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CommandWithDestination.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/CopyCommands.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CopyCommands.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/CopyCommands.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/CopyCommands.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Count.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Count.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Count.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Count.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Delete.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Delete.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Delete.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Display.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Display.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Display.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Display.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/FsCommand.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsCommand.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/FsCommand.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsCommand.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/FsUsage.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/FsUsage.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Ls.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Ls.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Ls.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Mkdir.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Mkdir.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Mkdir.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Mkdir.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/MoveCommands.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/MoveCommands.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/MoveCommands.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/PathData.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/PathData.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathData.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/PathExceptions.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathExceptions.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/PathExceptions.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/PathExceptions.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/SetReplication.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SetReplication.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/SetReplication.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/SetReplication.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Stat.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Stat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Stat.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Tail.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Tail.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Tail.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Tail.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Test.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Test.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Test.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/Touchz.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Touchz.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/Touchz.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Touchz.java
diff --git a/common/src/java/org/apache/hadoop/fs/shell/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/shell/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/shell/package-info.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ConfigUtil.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/Constants.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/Constants.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/Constants.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/InodeTree.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/InodeTree.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/InodeTree.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
similarity index 99%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
index eef54bb93e..a08aa3d58d 100644
--- a/common/src/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
+++ b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java
@@ -100,7 +100,7 @@ private static boolean isValidName(final String src) {
final StringTokenizer tokens = new StringTokenizer(src, Path.SEPARATOR);
while(tokens.hasMoreTokens()) {
String element = tokens.nextToken();
- if (element.equals("..") ||
+ if (element.equals("..") ||
element.equals(".") ||
(element.indexOf(":") >= 0)) {
return false;
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ViewFs.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ViewFs.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFs.java
diff --git a/common/src/java/org/apache/hadoop/fs/viewfs/ViewFsFileStatus.java b/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFsFileStatus.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/fs/viewfs/ViewFsFileStatus.java
rename to hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFsFileStatus.java
diff --git a/common/src/java/org/apache/hadoop/http/AdminAuthorizedServlet.java b/hadoop-common/src/main/java/org/apache/hadoop/http/AdminAuthorizedServlet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/AdminAuthorizedServlet.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/AdminAuthorizedServlet.java
diff --git a/common/src/java/org/apache/hadoop/http/FilterContainer.java b/hadoop-common/src/main/java/org/apache/hadoop/http/FilterContainer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/FilterContainer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/FilterContainer.java
diff --git a/common/src/java/org/apache/hadoop/http/FilterInitializer.java b/hadoop-common/src/main/java/org/apache/hadoop/http/FilterInitializer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/FilterInitializer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/FilterInitializer.java
diff --git a/common/src/java/org/apache/hadoop/http/HtmlQuoting.java b/hadoop-common/src/main/java/org/apache/hadoop/http/HtmlQuoting.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/HtmlQuoting.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/HtmlQuoting.java
diff --git a/common/src/java/org/apache/hadoop/http/HttpServer.java b/hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/HttpServer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/HttpServer.java
diff --git a/common/src/java/org/apache/hadoop/http/lib/StaticUserWebFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/http/lib/StaticUserWebFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/lib/StaticUserWebFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/lib/StaticUserWebFilter.java
diff --git a/common/src/java/org/apache/hadoop/http/lib/package.html b/hadoop-common/src/main/java/org/apache/hadoop/http/lib/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/lib/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/http/lib/package.html
diff --git a/common/src/java/org/apache/hadoop/http/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/http/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/http/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/http/package-info.java
diff --git a/common/src/java/org/apache/hadoop/io/AbstractMapWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/AbstractMapWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/AbstractMapWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/AbstractMapWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/ArrayFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/ArrayFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/ArrayFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/ArrayFile.java
diff --git a/common/src/java/org/apache/hadoop/io/ArrayPrimitiveWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/ArrayPrimitiveWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/ArrayPrimitiveWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/ArrayPrimitiveWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/ArrayWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/ArrayWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/ArrayWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/ArrayWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/BinaryComparable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/BinaryComparable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/BinaryComparable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/BinaryComparable.java
diff --git a/common/src/java/org/apache/hadoop/io/BloomMapFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/BloomMapFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/BloomMapFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/BloomMapFile.java
diff --git a/common/src/java/org/apache/hadoop/io/BooleanWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/BooleanWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/BooleanWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/BooleanWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/BoundedByteArrayOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/BoundedByteArrayOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/BoundedByteArrayOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/BoundedByteArrayOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/ByteWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/ByteWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/ByteWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/ByteWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/BytesWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/BytesWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/BytesWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/BytesWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/Closeable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/Closeable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/Closeable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/Closeable.java
diff --git a/common/src/java/org/apache/hadoop/io/CompressedWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/CompressedWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/CompressedWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/CompressedWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/DataInputBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DataInputBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DataInputBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/DataInputByteBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DataInputByteBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DataInputByteBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DataInputByteBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/DataOutputBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DataOutputBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/DataOutputByteBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputByteBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DataOutputByteBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputByteBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/DataOutputOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DataOutputOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DataOutputOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/DefaultStringifier.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DefaultStringifier.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DefaultStringifier.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DefaultStringifier.java
diff --git a/common/src/java/org/apache/hadoop/io/DoubleWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/DoubleWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/DoubleWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/DoubleWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/EnumSetWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/EnumSetWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/EnumSetWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/EnumSetWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/FloatWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/FloatWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/FloatWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/FloatWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/GenericWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/GenericWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/GenericWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/GenericWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/IOUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/IOUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/IOUtils.java
diff --git a/common/src/java/org/apache/hadoop/io/InputBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/InputBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/InputBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/InputBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/IntWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/IntWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/IntWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/IntWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/LongWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/LongWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/LongWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/LongWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/MD5Hash.java b/hadoop-common/src/main/java/org/apache/hadoop/io/MD5Hash.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/MD5Hash.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/MD5Hash.java
diff --git a/common/src/java/org/apache/hadoop/io/MapFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/MapFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/MapFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/MapFile.java
diff --git a/common/src/java/org/apache/hadoop/io/MapWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/MapWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/MapWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/MapWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/MultipleIOException.java b/hadoop-common/src/main/java/org/apache/hadoop/io/MultipleIOException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/MultipleIOException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/MultipleIOException.java
diff --git a/common/src/java/org/apache/hadoop/io/NullWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/NullWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/NullWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/NullWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/ObjectWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/ObjectWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/ObjectWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/ObjectWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/OutputBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/OutputBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/OutputBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/OutputBuffer.java
diff --git a/common/src/java/org/apache/hadoop/io/RawComparator.java b/hadoop-common/src/main/java/org/apache/hadoop/io/RawComparator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/RawComparator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/RawComparator.java
diff --git a/common/src/java/org/apache/hadoop/io/SecureIOUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/io/SecureIOUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/SecureIOUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/SecureIOUtils.java
diff --git a/common/src/java/org/apache/hadoop/io/SequenceFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/SequenceFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/SequenceFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/SequenceFile.java
diff --git a/common/src/java/org/apache/hadoop/io/SetFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/SetFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/SetFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/SetFile.java
diff --git a/common/src/java/org/apache/hadoop/io/SortedMapWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/SortedMapWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/SortedMapWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/SortedMapWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/Stringifier.java b/hadoop-common/src/main/java/org/apache/hadoop/io/Stringifier.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/Stringifier.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/Stringifier.java
diff --git a/common/src/java/org/apache/hadoop/io/Text.java b/hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/Text.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/Text.java
diff --git a/common/src/java/org/apache/hadoop/io/TwoDArrayWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/TwoDArrayWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/TwoDArrayWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/TwoDArrayWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/UTF8.java b/hadoop-common/src/main/java/org/apache/hadoop/io/UTF8.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/UTF8.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/UTF8.java
diff --git a/common/src/java/org/apache/hadoop/io/VIntWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/VIntWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/VIntWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/VIntWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/VLongWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/VLongWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/VLongWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/VLongWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/VersionMismatchException.java b/hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/VersionMismatchException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/VersionMismatchException.java
diff --git a/common/src/java/org/apache/hadoop/io/VersionedWritable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/VersionedWritable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/VersionedWritable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/VersionedWritable.java
diff --git a/common/src/java/org/apache/hadoop/io/Writable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/Writable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/Writable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/Writable.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableComparable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableComparable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparable.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableComparator.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableComparator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableFactories.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableFactories.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableFactories.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableFactories.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableFactory.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableName.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableName.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableName.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableName.java
diff --git a/common/src/java/org/apache/hadoop/io/WritableUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/WritableUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/WritableUtils.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/BZip2Codec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/BZip2Codec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/BZip2Codec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/BZip2Codec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/BlockCompressorStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/BlockCompressorStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/BlockCompressorStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/BlockCompressorStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/BlockDecompressorStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/BlockDecompressorStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/BlockDecompressorStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/BlockDecompressorStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CodecPool.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CodecPool.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CodecPool.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CodecPool.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CompressionCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CompressionCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CompressionInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CompressionInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionInputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CompressionOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CompressionOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/Compressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/Compressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/Compressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/Compressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/CompressorStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressorStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/CompressorStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressorStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/Decompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/Decompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/Decompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/Decompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/DecompressorStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/DecompressorStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/DecompressorStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/DecompressorStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/DefaultCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/DefaultCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/DefaultCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/DefaultCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/DeflateCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/DeflateCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/DeflateCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/DeflateCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/DoNotPool.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/DoNotPool.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/DoNotPool.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/DoNotPool.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/GzipCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/GzipCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/GzipCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/GzipCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/SnappyCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/SnappyCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/SnappyCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/SnappyCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/SplitCompressionInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/SplitCompressionInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/SplitCompressionInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/SplitCompressionInputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/SplittableCompressionCodec.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/SplittableCompressionCodec.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/SplittableCompressionCodec.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/SplittableCompressionCodec.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2Constants.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2Constants.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2Constants.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2Constants.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyCompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/BZip2DummyDecompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2InputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CBZip2OutputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/CRC.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CRC.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/CRC.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/CRC.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/bzip2/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/bzip2/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/bzip2/package-info.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/snappy/LoadSnappy.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/LoadSnappy.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/snappy/LoadSnappy.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/LoadSnappy.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/snappy/SnappyCompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/SnappyCompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/snappy/SnappyCompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/SnappyCompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInGzipDecompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInGzipDecompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInGzipDecompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInGzipDecompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibDeflater.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibDeflater.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibDeflater.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibDeflater.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibInflater.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibInflater.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibInflater.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/BuiltInZlibInflater.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/ZlibCompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibCompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/ZlibCompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibCompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/ZlibFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/ZlibFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/ZlibFactory.java
diff --git a/common/src/java/org/apache/hadoop/io/compress/zlib/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/compress/zlib/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/compress/zlib/package-info.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/BCFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/BCFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BCFile.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/BoundedRangeFileInputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/ByteArray.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/ByteArray.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/ByteArray.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/ByteArray.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/Chunk.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Chunk.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/Chunk.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Chunk.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/CompareUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/CompareUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/CompareUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/CompareUtils.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/Compression.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Compression.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/Compression.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Compression.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/MetaBlockAlreadyExists.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/MetaBlockAlreadyExists.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/MetaBlockAlreadyExists.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/MetaBlockAlreadyExists.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/MetaBlockDoesNotExist.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/MetaBlockDoesNotExist.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/MetaBlockDoesNotExist.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/MetaBlockDoesNotExist.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/RawComparable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/RawComparable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/RawComparable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/RawComparable.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/SimpleBufferedOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/SimpleBufferedOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/SimpleBufferedOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/SimpleBufferedOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/TFile.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/TFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/TFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/TFile.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/TFileDumper.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/TFileDumper.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/TFileDumper.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/TFileDumper.java
diff --git a/common/src/java/org/apache/hadoop/io/file/tfile/Utils.java b/hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Utils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/file/tfile/Utils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/file/tfile/Utils.java
diff --git a/common/src/java/org/apache/hadoop/io/nativeio/Errno.java b/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/Errno.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/nativeio/Errno.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/Errno.java
diff --git a/common/src/java/org/apache/hadoop/io/nativeio/NativeIO.java b/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/nativeio/NativeIO.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIO.java
diff --git a/common/src/java/org/apache/hadoop/io/nativeio/NativeIOException.java b/hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIOException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/nativeio/NativeIOException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/nativeio/NativeIOException.java
diff --git a/common/src/java/org/apache/hadoop/io/package.html b/hadoop-common/src/main/java/org/apache/hadoop/io/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/io/package.html
diff --git a/common/src/java/org/apache/hadoop/io/retry/DefaultFailoverProxyProvider.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/DefaultFailoverProxyProvider.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/DefaultFailoverProxyProvider.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/DefaultFailoverProxyProvider.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/FailoverProxyProvider.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/FailoverProxyProvider.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/FailoverProxyProvider.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/FailoverProxyProvider.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/Idempotent.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/Idempotent.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/Idempotent.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/Idempotent.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryInvocationHandler.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/RetryPolicies.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/RetryPolicies.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicies.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/RetryPolicy.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/RetryPolicy.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryPolicy.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/RetryProxy.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryProxy.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/RetryProxy.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/RetryProxy.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/package-info.java
diff --git a/common/src/java/org/apache/hadoop/io/retry/package.html b/hadoop-common/src/main/java/org/apache/hadoop/io/retry/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/retry/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/io/retry/package.html
diff --git a/common/src/java/org/apache/hadoop/io/serializer/Deserializer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Deserializer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/Deserializer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Deserializer.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/DeserializerComparator.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/DeserializerComparator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/DeserializerComparator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/DeserializerComparator.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/JavaSerialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/JavaSerialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/JavaSerialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/JavaSerialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/JavaSerializationComparator.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/JavaSerializationComparator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/JavaSerializationComparator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/JavaSerializationComparator.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/Serialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Serialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/Serialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Serialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/SerializationFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/SerializationFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/SerializationFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/SerializationFactory.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/Serializer.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Serializer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/Serializer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/Serializer.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/WritableSerialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/WritableSerialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/WritableSerialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/WritableSerialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerializable.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerializable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerializable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerializable.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroReflectSerialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/avro/AvroSerialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroSerialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/avro/AvroSerialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroSerialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/avro/AvroSpecificSerialization.java b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroSpecificSerialization.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/avro/AvroSpecificSerialization.java
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/AvroSpecificSerialization.java
diff --git a/common/src/java/org/apache/hadoop/io/serializer/avro/package.html b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/avro/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/avro/package.html
diff --git a/common/src/java/org/apache/hadoop/io/serializer/package.html b/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/io/serializer/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/io/serializer/package.html
diff --git a/common/src/java/org/apache/hadoop/ipc/AvroRpcEngine.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/AvroRpcEngine.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/AvroRpcEngine.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/AvroRpcEngine.java
diff --git a/common/src/java/org/apache/hadoop/ipc/AvroSpecificRpcEngine.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/AvroSpecificRpcEngine.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/AvroSpecificRpcEngine.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/AvroSpecificRpcEngine.java
diff --git a/common/src/java/org/apache/hadoop/ipc/Client.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/Client.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/Client.java
diff --git a/common/src/java/org/apache/hadoop/ipc/ClientCache.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/ClientCache.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/ClientCache.java
diff --git a/common/src/java/org/apache/hadoop/ipc/ConnectionHeader.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/ConnectionHeader.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/ConnectionHeader.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/ConnectionHeader.java
diff --git a/common/src/java/org/apache/hadoop/ipc/ProtocolProxy.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtocolProxy.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/ProtocolProxy.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtocolProxy.java
diff --git a/common/src/java/org/apache/hadoop/ipc/ProtocolSignature.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtocolSignature.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/ProtocolSignature.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/ProtocolSignature.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RPC.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RPC.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RPC.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RemoteException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RemoteException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RemoteException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RemoteException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RpcClientException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcClientException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RpcClientException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcClientException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RpcEngine.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcEngine.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RpcEngine.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcEngine.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RpcException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RpcException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/RpcServerException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcServerException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/RpcServerException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/RpcServerException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/Server.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/Server.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java
diff --git a/common/src/java/org/apache/hadoop/ipc/StandbyException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/StandbyException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/StandbyException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/StandbyException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/Status.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/Status.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/Status.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/Status.java
diff --git a/common/src/java/org/apache/hadoop/ipc/UnexpectedServerException.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/UnexpectedServerException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/UnexpectedServerException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/UnexpectedServerException.java
diff --git a/common/src/java/org/apache/hadoop/ipc/VersionedProtocol.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/VersionedProtocol.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/VersionedProtocol.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/VersionedProtocol.java
diff --git a/common/src/java/org/apache/hadoop/ipc/WritableRpcEngine.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/WritableRpcEngine.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/WritableRpcEngine.java
diff --git a/common/src/java/org/apache/hadoop/ipc/metrics/RpcDetailedMetrics.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RpcDetailedMetrics.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/metrics/RpcDetailedMetrics.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RpcDetailedMetrics.java
diff --git a/common/src/java/org/apache/hadoop/ipc/metrics/RpcMetrics.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RpcMetrics.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/metrics/RpcMetrics.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/RpcMetrics.java
diff --git a/common/src/java/org/apache/hadoop/ipc/metrics/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/metrics/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/metrics/package-info.java
diff --git a/common/src/java/org/apache/hadoop/ipc/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/ipc/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/package-info.java
diff --git a/common/src/java/org/apache/hadoop/ipc/package.html b/hadoop-common/src/main/java/org/apache/hadoop/ipc/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/ipc/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/ipc/package.html
diff --git a/common/src/java/org/apache/hadoop/jmx/JMXJsonServlet.java b/hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/jmx/JMXJsonServlet.java
rename to hadoop-common/src/main/java/org/apache/hadoop/jmx/JMXJsonServlet.java
diff --git a/common/src/java/org/apache/hadoop/jmx/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/jmx/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/jmx/package-info.java
diff --git a/common/src/java/org/apache/hadoop/log/EventCounter.java b/hadoop-common/src/main/java/org/apache/hadoop/log/EventCounter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/log/EventCounter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/log/EventCounter.java
diff --git a/common/src/java/org/apache/hadoop/log/LogLevel.java b/hadoop-common/src/main/java/org/apache/hadoop/log/LogLevel.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/log/LogLevel.java
rename to hadoop-common/src/main/java/org/apache/hadoop/log/LogLevel.java
diff --git a/common/src/java/org/apache/hadoop/log/metrics/EventCounter.java b/hadoop-common/src/main/java/org/apache/hadoop/log/metrics/EventCounter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/log/metrics/EventCounter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/log/metrics/EventCounter.java
diff --git a/common/src/java/org/apache/hadoop/metrics/ContextFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/ContextFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/ContextFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/ContextFactory.java
diff --git a/common/src/java/org/apache/hadoop/metrics/MetricsContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/MetricsContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/MetricsException.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/MetricsException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsException.java
diff --git a/common/src/java/org/apache/hadoop/metrics/MetricsRecord.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsRecord.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/MetricsRecord.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsRecord.java
diff --git a/common/src/java/org/apache/hadoop/metrics/MetricsServlet.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsServlet.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/MetricsServlet.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsServlet.java
diff --git a/common/src/java/org/apache/hadoop/metrics/MetricsUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/MetricsUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/MetricsUtil.java
diff --git a/common/src/java/org/apache/hadoop/metrics/Updater.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/Updater.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/Updater.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/Updater.java
diff --git a/common/src/java/org/apache/hadoop/metrics/file/FileContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/file/FileContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/file/FileContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/file/FileContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/file/package.html b/hadoop-common/src/main/java/org/apache/hadoop/metrics/file/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/file/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/file/package.html
diff --git a/common/src/java/org/apache/hadoop/metrics/ganglia/GangliaContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/GangliaContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/ganglia/GangliaContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/GangliaContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/ganglia/GangliaContext31.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/GangliaContext31.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/ganglia/GangliaContext31.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/GangliaContext31.java
diff --git a/common/src/java/org/apache/hadoop/metrics/ganglia/package.html b/hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/ganglia/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/ganglia/package.html
diff --git a/common/src/java/org/apache/hadoop/metrics/jvm/EventCounter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/EventCounter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/jvm/EventCounter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/EventCounter.java
diff --git a/common/src/java/org/apache/hadoop/metrics/jvm/JvmMetrics.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/JvmMetrics.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/jvm/JvmMetrics.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/JvmMetrics.java
diff --git a/common/src/java/org/apache/hadoop/metrics/jvm/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/jvm/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/jvm/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics/package.html b/hadoop-common/src/main/java/org/apache/hadoop/metrics/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/package.html
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/AbstractMetricsContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/AbstractMetricsContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/AbstractMetricsContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/AbstractMetricsContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/CompositeContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/CompositeContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/CompositeContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/CompositeContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/MetricValue.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/MetricValue.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/MetricValue.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/MetricValue.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/MetricsRecordImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/MetricsRecordImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/MetricsRecordImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/MetricsRecordImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/NoEmitMetricsContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NoEmitMetricsContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/NoEmitMetricsContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NoEmitMetricsContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/NullContext.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NullContext.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/NullContext.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NullContext.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/NullContextWithUpdateThread.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NullContextWithUpdateThread.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/NullContextWithUpdateThread.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/NullContextWithUpdateThread.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/OutputRecord.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/OutputRecord.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/OutputRecord.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/OutputRecord.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/Util.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/Util.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/Util.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/Util.java
diff --git a/common/src/java/org/apache/hadoop/metrics/spi/package.html b/hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/spi/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/spi/package.html
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MBeanUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MBeanUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MBeanUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MBeanUtil.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsBase.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsBase.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsBase.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsBase.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsDynamicMBeanBase.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsIntValue.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsIntValue.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsIntValue.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsIntValue.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsLongValue.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsLongValue.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsLongValue.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsLongValue.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsRegistry.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsRegistry.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsRegistry.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsRegistry.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingInt.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingInt.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingLong.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingLong.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/MetricsTimeVaryingRate.java
diff --git a/common/src/java/org/apache/hadoop/metrics/util/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics/util/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics/util/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics/util/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/AbstractMetric.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/AbstractMetric.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/AbstractMetric.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/AbstractMetric.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricType.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricType.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricType.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricType.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsCollector.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsCollector.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsCollector.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsCollector.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsException.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsException.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsFilter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsInfo.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsPlugin.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsPlugin.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsPlugin.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsPlugin.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsRecord.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsRecord.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsRecord.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsRecord.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsRecordBuilder.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsRecordBuilder.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsRecordBuilder.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsRecordBuilder.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsSink.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSink.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsSink.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSink.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsSource.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSource.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsSource.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSource.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSystem.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsSystemMXBean.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSystemMXBean.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsSystemMXBean.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsSystemMXBean.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsTag.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsTag.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsTag.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsTag.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/MetricsVisitor.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsVisitor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/MetricsVisitor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/MetricsVisitor.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/annotation/Metric.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/Metric.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/annotation/Metric.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/Metric.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/annotation/Metrics.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/Metrics.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/annotation/Metrics.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/Metrics.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/annotation/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/annotation/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/annotation/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/filter/AbstractPatternFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/AbstractPatternFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/filter/AbstractPatternFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/AbstractPatternFilter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/filter/GlobFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/GlobFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/filter/GlobFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/GlobFilter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/filter/RegexFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/RegexFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/filter/RegexFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/RegexFilter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/filter/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/filter/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/filter/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/AbstractMetricsRecord.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/AbstractMetricsRecord.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/AbstractMetricsRecord.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/AbstractMetricsRecord.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MBeanInfoBuilder.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MBeanInfoBuilder.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MBeanInfoBuilder.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MBeanInfoBuilder.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricCounterInt.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricCounterInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricCounterInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricCounterInt.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricCounterLong.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricCounterLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricCounterLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricCounterLong.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeDouble.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeDouble.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeDouble.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeDouble.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeFloat.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeFloat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeFloat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeFloat.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeInt.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeInt.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeLong.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricGaugeLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricGaugeLong.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsBuffer.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsBufferBuilder.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsBufferBuilder.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsBufferBuilder.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsBufferBuilder.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsCollectorImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsCollectorImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsCollectorImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsCollectorImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsConfig.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsConfig.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsConfig.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsConfig.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsConfigException.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsConfigException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsConfigException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsConfigException.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordBuilderImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordBuilderImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordBuilderImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordBuilderImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordFiltered.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordFiltered.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordFiltered.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordFiltered.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsRecordImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsRecordImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsSinkAdapter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSinkAdapter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsSinkAdapter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSinkAdapter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSourceAdapter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/MsInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MsInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/MsInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MsInfo.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/SinkQueue.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/SinkQueue.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/SinkQueue.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/SinkQueue.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/impl/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/impl/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/DefaultMetricsFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/DefaultMetricsFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/DefaultMetricsFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/DefaultMetricsFactory.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/DefaultMetricsSystem.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/DefaultMetricsSystem.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/DefaultMetricsSystem.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/DefaultMetricsSystem.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/Interns.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/Interns.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/Interns.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/Interns.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MethodMetric.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MethodMetric.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MethodMetric.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MethodMetric.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MetricsAnnotations.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsAnnotations.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MetricsAnnotations.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsAnnotations.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MetricsInfoImpl.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsInfoImpl.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MetricsInfoImpl.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsInfoImpl.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MetricsRegistry.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsRegistry.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MetricsRegistry.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsRegistry.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MetricsSourceBuilder.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsSourceBuilder.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MetricsSourceBuilder.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MetricsSourceBuilder.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableCounter.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableCounter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounter.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableCounterInt.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounterInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableCounterInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounterInt.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableCounterLong.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounterLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableCounterLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableCounterLong.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableGauge.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGauge.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableGauge.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGauge.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeInt.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableGaugeLong.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableMetric.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableMetric.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableMetric.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableMetric.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableMetricsFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableMetricsFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableMetricsFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableMetricsFactory.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableRate.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableRate.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableRate.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableRate.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableRates.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableRates.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableRates.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableRates.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/MutableStat.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableStat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/MutableStat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/MutableStat.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/UniqueNames.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/UniqueNames.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/UniqueNames.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/UniqueNames.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/lib/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/lib/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/lib/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/FileSink.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/FileSink.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/FileSink.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/FileSink.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/ganglia/AbstractGangliaSink.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/AbstractGangliaSink.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/ganglia/AbstractGangliaSink.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/AbstractGangliaSink.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaConf.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaConf.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaConf.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaConf.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricVisitor.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricVisitor.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricVisitor.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricVisitor.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink30.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink30.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink30.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink30.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink31.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink31.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink31.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaSink31.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/sink/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/sink/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/package-info.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/source/JvmMetrics.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/source/JvmMetrics.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetrics.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/source/JvmMetricsInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetricsInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/source/JvmMetricsInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/source/JvmMetricsInfo.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/Contracts.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/Contracts.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/Contracts.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/Contracts.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/MBeans.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/MBeans.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/MBeans.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/MBeans.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/MetricsCache.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/MetricsCache.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/MetricsCache.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/MetricsCache.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/SampleStat.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/SampleStat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/SampleStat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/SampleStat.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/Servers.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/Servers.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/Servers.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/Servers.java
diff --git a/common/src/java/org/apache/hadoop/metrics2/util/package-info.java b/hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/package-info.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/metrics2/util/package-info.java
rename to hadoop-common/src/main/java/org/apache/hadoop/metrics2/util/package-info.java
diff --git a/common/src/java/org/apache/hadoop/net/CachedDNSToSwitchMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/net/CachedDNSToSwitchMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/CachedDNSToSwitchMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/CachedDNSToSwitchMapping.java
diff --git a/common/src/java/org/apache/hadoop/net/DNS.java b/hadoop-common/src/main/java/org/apache/hadoop/net/DNS.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/DNS.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/DNS.java
diff --git a/common/src/java/org/apache/hadoop/net/DNSToSwitchMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/net/DNSToSwitchMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/DNSToSwitchMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/DNSToSwitchMapping.java
diff --git a/common/src/java/org/apache/hadoop/net/NetUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/NetUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/NetUtils.java
diff --git a/common/src/java/org/apache/hadoop/net/NetworkTopology.java b/hadoop-common/src/main/java/org/apache/hadoop/net/NetworkTopology.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/NetworkTopology.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/NetworkTopology.java
diff --git a/common/src/java/org/apache/hadoop/net/Node.java b/hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/Node.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/Node.java
diff --git a/common/src/java/org/apache/hadoop/net/NodeBase.java b/hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/NodeBase.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/NodeBase.java
diff --git a/common/src/java/org/apache/hadoop/net/ScriptBasedMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/net/ScriptBasedMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/ScriptBasedMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/ScriptBasedMapping.java
diff --git a/common/src/java/org/apache/hadoop/net/SocketIOWithTimeout.java b/hadoop-common/src/main/java/org/apache/hadoop/net/SocketIOWithTimeout.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/SocketIOWithTimeout.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/SocketIOWithTimeout.java
diff --git a/common/src/java/org/apache/hadoop/net/SocketInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/net/SocketInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/SocketInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/SocketInputStream.java
diff --git a/common/src/java/org/apache/hadoop/net/SocketOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/net/SocketOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/SocketOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/SocketOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/net/SocksSocketFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/net/SocksSocketFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/SocksSocketFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/SocksSocketFactory.java
diff --git a/common/src/java/org/apache/hadoop/net/StandardSocketFactory.java b/hadoop-common/src/main/java/org/apache/hadoop/net/StandardSocketFactory.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/StandardSocketFactory.java
rename to hadoop-common/src/main/java/org/apache/hadoop/net/StandardSocketFactory.java
diff --git a/common/src/java/org/apache/hadoop/net/package.html b/hadoop-common/src/main/java/org/apache/hadoop/net/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/net/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/net/package.html
diff --git a/common/src/java/org/apache/hadoop/record/BinaryRecordInput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/BinaryRecordInput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/BinaryRecordInput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/BinaryRecordInput.java
diff --git a/common/src/java/org/apache/hadoop/record/BinaryRecordOutput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/BinaryRecordOutput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/BinaryRecordOutput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/BinaryRecordOutput.java
diff --git a/common/src/java/org/apache/hadoop/record/Buffer.java b/hadoop-common/src/main/java/org/apache/hadoop/record/Buffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/Buffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/Buffer.java
diff --git a/common/src/java/org/apache/hadoop/record/CsvRecordInput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/CsvRecordInput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/CsvRecordInput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/CsvRecordInput.java
diff --git a/common/src/java/org/apache/hadoop/record/CsvRecordOutput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/CsvRecordOutput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/CsvRecordOutput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/CsvRecordOutput.java
diff --git a/common/src/java/org/apache/hadoop/record/Index.java b/hadoop-common/src/main/java/org/apache/hadoop/record/Index.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/Index.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/Index.java
diff --git a/common/src/java/org/apache/hadoop/record/Record.java b/hadoop-common/src/main/java/org/apache/hadoop/record/Record.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/Record.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/Record.java
diff --git a/common/src/java/org/apache/hadoop/record/RecordComparator.java b/hadoop-common/src/main/java/org/apache/hadoop/record/RecordComparator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/RecordComparator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/RecordComparator.java
diff --git a/common/src/java/org/apache/hadoop/record/RecordInput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/RecordInput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/RecordInput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/RecordInput.java
diff --git a/common/src/java/org/apache/hadoop/record/RecordOutput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/RecordOutput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/RecordOutput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/RecordOutput.java
diff --git a/common/src/java/org/apache/hadoop/record/Utils.java b/hadoop-common/src/main/java/org/apache/hadoop/record/Utils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/Utils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/Utils.java
diff --git a/common/src/java/org/apache/hadoop/record/XmlRecordInput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/XmlRecordInput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/XmlRecordInput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/XmlRecordInput.java
diff --git a/common/src/java/org/apache/hadoop/record/XmlRecordOutput.java b/hadoop-common/src/main/java/org/apache/hadoop/record/XmlRecordOutput.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/XmlRecordOutput.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/XmlRecordOutput.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/CGenerator.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CGenerator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/CGenerator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CGenerator.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/CodeBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CodeBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/CodeBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CodeBuffer.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/CodeGenerator.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CodeGenerator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/CodeGenerator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CodeGenerator.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/Consts.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/Consts.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/Consts.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/Consts.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/CppGenerator.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CppGenerator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/CppGenerator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/CppGenerator.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JBoolean.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JBoolean.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JBoolean.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JBoolean.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JBuffer.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JBuffer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JBuffer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JBuffer.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JByte.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JByte.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JByte.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JByte.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JCompType.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JCompType.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JCompType.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JCompType.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JDouble.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JDouble.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JDouble.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JDouble.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JField.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JField.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JField.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JField.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JFile.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JFile.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JFile.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JFile.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JFloat.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JFloat.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JFloat.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JFloat.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JInt.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JInt.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JInt.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JInt.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JLong.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JLong.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JLong.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JLong.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JMap.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JMap.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JMap.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JMap.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JRecord.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JRecord.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JRecord.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JRecord.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JString.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JString.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JString.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JString.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JType.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JType.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JType.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JType.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JVector.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JVector.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JVector.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JVector.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/JavaGenerator.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JavaGenerator.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/JavaGenerator.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/JavaGenerator.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/ant/RccTask.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/ant/RccTask.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/ant/RccTask.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/ant/RccTask.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/ParseException.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/ParseException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/ParseException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/ParseException.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/Rcc.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/Rcc.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/Rcc.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/Rcc.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/RccConstants.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/RccConstants.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/RccConstants.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/RccConstants.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/RccTokenManager.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/RccTokenManager.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/RccTokenManager.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/RccTokenManager.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/SimpleCharStream.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/SimpleCharStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/SimpleCharStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/SimpleCharStream.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/Token.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/Token.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/Token.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/Token.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/TokenMgrError.java b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/TokenMgrError.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/TokenMgrError.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/TokenMgrError.java
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/package.html b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/package.html
diff --git a/common/src/java/org/apache/hadoop/record/compiler/generated/rcc.jj b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/rcc.jj
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/generated/rcc.jj
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/generated/rcc.jj
diff --git a/common/src/java/org/apache/hadoop/record/compiler/package.html b/hadoop-common/src/main/java/org/apache/hadoop/record/compiler/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/compiler/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/record/compiler/package.html
diff --git a/common/src/java/org/apache/hadoop/record/meta/FieldTypeInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/FieldTypeInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/FieldTypeInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/FieldTypeInfo.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/MapTypeID.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/MapTypeID.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/MapTypeID.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/MapTypeID.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/RecordTypeInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/RecordTypeInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/RecordTypeInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/RecordTypeInfo.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/StructTypeID.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/StructTypeID.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/StructTypeID.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/StructTypeID.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/TypeID.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/TypeID.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/TypeID.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/TypeID.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/Utils.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/Utils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/Utils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/Utils.java
diff --git a/common/src/java/org/apache/hadoop/record/meta/VectorTypeID.java b/hadoop-common/src/main/java/org/apache/hadoop/record/meta/VectorTypeID.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/meta/VectorTypeID.java
rename to hadoop-common/src/main/java/org/apache/hadoop/record/meta/VectorTypeID.java
diff --git a/common/src/java/org/apache/hadoop/record/package.html b/hadoop-common/src/main/java/org/apache/hadoop/record/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/record/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/record/package.html
diff --git a/common/src/java/org/apache/hadoop/security/AccessControlException.java b/hadoop-common/src/main/java/org/apache/hadoop/security/AccessControlException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/AccessControlException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/AccessControlException.java
diff --git a/common/src/java/org/apache/hadoop/security/AnnotatedSecurityInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/security/AnnotatedSecurityInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/AnnotatedSecurityInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/AnnotatedSecurityInfo.java
diff --git a/common/src/java/org/apache/hadoop/security/Credentials.java b/hadoop-common/src/main/java/org/apache/hadoop/security/Credentials.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/Credentials.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/Credentials.java
diff --git a/common/src/java/org/apache/hadoop/security/GroupMappingServiceProvider.java b/hadoop-common/src/main/java/org/apache/hadoop/security/GroupMappingServiceProvider.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/GroupMappingServiceProvider.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/GroupMappingServiceProvider.java
diff --git a/common/src/java/org/apache/hadoop/security/Groups.java b/hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/Groups.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/Groups.java
diff --git a/common/src/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsMapping.java
diff --git a/common/src/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.java
diff --git a/common/src/java/org/apache/hadoop/security/KerberosInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/security/KerberosInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/KerberosInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/KerberosInfo.java
diff --git a/common/src/java/org/apache/hadoop/security/KerberosName.java b/hadoop-common/src/main/java/org/apache/hadoop/security/KerberosName.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/KerberosName.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/KerberosName.java
diff --git a/common/src/java/org/apache/hadoop/security/Krb5AndCertsSslSocketConnector.java b/hadoop-common/src/main/java/org/apache/hadoop/security/Krb5AndCertsSslSocketConnector.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/Krb5AndCertsSslSocketConnector.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/Krb5AndCertsSslSocketConnector.java
diff --git a/common/src/java/org/apache/hadoop/security/NetgroupCache.java b/hadoop-common/src/main/java/org/apache/hadoop/security/NetgroupCache.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/NetgroupCache.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/NetgroupCache.java
diff --git a/common/src/java/org/apache/hadoop/security/RefreshUserMappingsProtocol.java b/hadoop-common/src/main/java/org/apache/hadoop/security/RefreshUserMappingsProtocol.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/RefreshUserMappingsProtocol.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/RefreshUserMappingsProtocol.java
diff --git a/common/src/java/org/apache/hadoop/security/SaslInputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SaslInputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SaslInputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SaslInputStream.java
diff --git a/common/src/java/org/apache/hadoop/security/SaslOutputStream.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SaslOutputStream.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SaslOutputStream.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SaslOutputStream.java
diff --git a/common/src/java/org/apache/hadoop/security/SaslRpcClient.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SaslRpcClient.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SaslRpcClient.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SaslRpcClient.java
diff --git a/common/src/java/org/apache/hadoop/security/SaslRpcServer.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SaslRpcServer.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SaslRpcServer.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SaslRpcServer.java
diff --git a/common/src/java/org/apache/hadoop/security/SecurityInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SecurityInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SecurityInfo.java
diff --git a/common/src/java/org/apache/hadoop/security/SecurityUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/SecurityUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/SecurityUtil.java
diff --git a/common/src/java/org/apache/hadoop/security/ShellBasedUnixGroupsMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/security/ShellBasedUnixGroupsMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/ShellBasedUnixGroupsMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/ShellBasedUnixGroupsMapping.java
diff --git a/common/src/java/org/apache/hadoop/security/ShellBasedUnixGroupsNetgroupMapping.java b/hadoop-common/src/main/java/org/apache/hadoop/security/ShellBasedUnixGroupsNetgroupMapping.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/ShellBasedUnixGroupsNetgroupMapping.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/ShellBasedUnixGroupsNetgroupMapping.java
diff --git a/common/src/java/org/apache/hadoop/security/User.java b/hadoop-common/src/main/java/org/apache/hadoop/security/User.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/User.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/User.java
diff --git a/common/src/java/org/apache/hadoop/security/UserGroupInformation.java b/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/UserGroupInformation.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/AccessControlList.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/AccessControlList.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AccessControlList.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/AuthorizationException.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AuthorizationException.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/AuthorizationException.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/AuthorizationException.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/PolicyProvider.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/PolicyProvider.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/PolicyProvider.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/PolicyProvider.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/ProxyUsers.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/ProxyUsers.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/ProxyUsers.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/ProxyUsers.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/RefreshAuthorizationPolicyProtocol.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/RefreshAuthorizationPolicyProtocol.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/RefreshAuthorizationPolicyProtocol.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/RefreshAuthorizationPolicyProtocol.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/Service.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/Service.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/Service.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/Service.java
diff --git a/common/src/java/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java b/hadoop-common/src/main/java/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/authorize/ServiceAuthorizationManager.java
diff --git a/common/src/java/org/apache/hadoop/security/token/SecretManager.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/SecretManager.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java
diff --git a/common/src/java/org/apache/hadoop/security/token/Token.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/Token.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java
diff --git a/common/src/java/org/apache/hadoop/security/token/TokenIdentifier.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/TokenIdentifier.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenIdentifier.java
diff --git a/common/src/java/org/apache/hadoop/security/token/TokenInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/TokenInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenInfo.java
diff --git a/common/src/java/org/apache/hadoop/security/token/TokenSelector.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/TokenSelector.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/TokenSelector.java
diff --git a/common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java
diff --git a/common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java
diff --git a/common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSelector.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSelector.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSelector.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSelector.java
diff --git a/common/src/java/org/apache/hadoop/security/token/delegation/DelegationKey.java b/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/DelegationKey.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/security/token/delegation/DelegationKey.java
rename to hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/DelegationKey.java
diff --git a/common/src/java/org/apache/hadoop/tools/GetGroupsBase.java b/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/tools/GetGroupsBase.java
rename to hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java
diff --git a/common/src/java/org/apache/hadoop/tools/GetUserMappingsProtocol.java b/hadoop-common/src/main/java/org/apache/hadoop/tools/GetUserMappingsProtocol.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/tools/GetUserMappingsProtocol.java
rename to hadoop-common/src/main/java/org/apache/hadoop/tools/GetUserMappingsProtocol.java
diff --git a/common/src/java/org/apache/hadoop/util/AsyncDiskService.java b/hadoop-common/src/main/java/org/apache/hadoop/util/AsyncDiskService.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/AsyncDiskService.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/AsyncDiskService.java
diff --git a/common/src/java/org/apache/hadoop/util/CyclicIteration.java b/hadoop-common/src/main/java/org/apache/hadoop/util/CyclicIteration.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/CyclicIteration.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/CyclicIteration.java
diff --git a/common/src/java/org/apache/hadoop/util/Daemon.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Daemon.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Daemon.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Daemon.java
diff --git a/common/src/java/org/apache/hadoop/util/DataChecksum.java b/hadoop-common/src/main/java/org/apache/hadoop/util/DataChecksum.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/DataChecksum.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/DataChecksum.java
diff --git a/common/src/java/org/apache/hadoop/util/DiskChecker.java b/hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/DiskChecker.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/DiskChecker.java
diff --git a/common/src/java/org/apache/hadoop/util/GenericOptionsParser.java b/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/GenericOptionsParser.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java
diff --git a/common/src/java/org/apache/hadoop/util/GenericsUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/util/GenericsUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/GenericsUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/GenericsUtil.java
diff --git a/common/src/java/org/apache/hadoop/util/HeapSort.java b/hadoop-common/src/main/java/org/apache/hadoop/util/HeapSort.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/HeapSort.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/HeapSort.java
diff --git a/common/src/java/org/apache/hadoop/util/HostsFileReader.java b/hadoop-common/src/main/java/org/apache/hadoop/util/HostsFileReader.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/HostsFileReader.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/HostsFileReader.java
diff --git a/common/src/java/org/apache/hadoop/util/IndexedSortable.java b/hadoop-common/src/main/java/org/apache/hadoop/util/IndexedSortable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/IndexedSortable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/IndexedSortable.java
diff --git a/common/src/java/org/apache/hadoop/util/IndexedSorter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/IndexedSorter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/IndexedSorter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/IndexedSorter.java
diff --git a/common/src/java/org/apache/hadoop/util/LineReader.java b/hadoop-common/src/main/java/org/apache/hadoop/util/LineReader.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/LineReader.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/LineReader.java
diff --git a/common/src/java/org/apache/hadoop/util/MergeSort.java b/hadoop-common/src/main/java/org/apache/hadoop/util/MergeSort.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/MergeSort.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/MergeSort.java
diff --git a/common/src/java/org/apache/hadoop/util/NativeCodeLoader.java b/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/NativeCodeLoader.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/NativeCodeLoader.java
diff --git a/common/src/java/org/apache/hadoop/util/Options.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Options.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Options.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Options.java
diff --git a/common/src/java/org/apache/hadoop/util/PlatformName.java b/hadoop-common/src/main/java/org/apache/hadoop/util/PlatformName.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/PlatformName.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/PlatformName.java
diff --git a/common/src/java/org/apache/hadoop/util/PrintJarMainClass.java b/hadoop-common/src/main/java/org/apache/hadoop/util/PrintJarMainClass.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/PrintJarMainClass.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/PrintJarMainClass.java
diff --git a/common/src/java/org/apache/hadoop/util/PriorityQueue.java b/hadoop-common/src/main/java/org/apache/hadoop/util/PriorityQueue.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/PriorityQueue.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/PriorityQueue.java
diff --git a/common/src/java/org/apache/hadoop/util/ProgramDriver.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ProgramDriver.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ProgramDriver.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ProgramDriver.java
diff --git a/common/src/java/org/apache/hadoop/util/Progress.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Progress.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Progress.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Progress.java
diff --git a/common/src/java/org/apache/hadoop/util/Progressable.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Progressable.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Progressable.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Progressable.java
diff --git a/common/src/java/org/apache/hadoop/util/ProtoUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ProtoUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ProtoUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ProtoUtil.java
diff --git a/common/src/java/org/apache/hadoop/util/PureJavaCrc32.java b/hadoop-common/src/main/java/org/apache/hadoop/util/PureJavaCrc32.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/PureJavaCrc32.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/PureJavaCrc32.java
diff --git a/common/src/java/org/apache/hadoop/util/PureJavaCrc32C.java b/hadoop-common/src/main/java/org/apache/hadoop/util/PureJavaCrc32C.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/PureJavaCrc32C.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/PureJavaCrc32C.java
diff --git a/common/src/java/org/apache/hadoop/util/QuickSort.java b/hadoop-common/src/main/java/org/apache/hadoop/util/QuickSort.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/QuickSort.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/QuickSort.java
diff --git a/common/src/java/org/apache/hadoop/util/ReflectionUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ReflectionUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ReflectionUtils.java
diff --git a/common/src/java/org/apache/hadoop/util/RunJar.java b/hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/RunJar.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/RunJar.java
diff --git a/common/src/java/org/apache/hadoop/util/ServicePlugin.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ServicePlugin.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ServicePlugin.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ServicePlugin.java
diff --git a/common/src/java/org/apache/hadoop/util/ServletUtil.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ServletUtil.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ServletUtil.java
diff --git a/common/src/java/org/apache/hadoop/util/Shell.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Shell.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Shell.java
diff --git a/common/src/java/org/apache/hadoop/util/StringUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/StringUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java
diff --git a/common/src/java/org/apache/hadoop/util/Tool.java b/hadoop-common/src/main/java/org/apache/hadoop/util/Tool.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/Tool.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/Tool.java
diff --git a/common/src/java/org/apache/hadoop/util/ToolRunner.java b/hadoop-common/src/main/java/org/apache/hadoop/util/ToolRunner.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/ToolRunner.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/ToolRunner.java
diff --git a/common/src/java/org/apache/hadoop/util/UTF8ByteArrayUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/util/UTF8ByteArrayUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/UTF8ByteArrayUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/UTF8ByteArrayUtils.java
diff --git a/common/src/java/org/apache/hadoop/util/VersionInfo.java b/hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/VersionInfo.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/VersionInfo.java
diff --git a/common/src/java/org/apache/hadoop/util/XMLUtils.java b/hadoop-common/src/main/java/org/apache/hadoop/util/XMLUtils.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/XMLUtils.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/XMLUtils.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/BloomFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/BloomFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/BloomFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/BloomFilter.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/CountingBloomFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/CountingBloomFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/CountingBloomFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/CountingBloomFilter.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/DynamicBloomFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/DynamicBloomFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/DynamicBloomFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/DynamicBloomFilter.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/Filter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/Filter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/HashFunction.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/HashFunction.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/HashFunction.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/HashFunction.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/Key.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Key.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/Key.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Key.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/RemoveScheme.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/RemoveScheme.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/RemoveScheme.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/RemoveScheme.java
diff --git a/common/src/java/org/apache/hadoop/util/bloom/RetouchedBloomFilter.java b/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/RetouchedBloomFilter.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/bloom/RetouchedBloomFilter.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/bloom/RetouchedBloomFilter.java
diff --git a/common/src/java/org/apache/hadoop/util/hash/Hash.java b/hadoop-common/src/main/java/org/apache/hadoop/util/hash/Hash.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/hash/Hash.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/hash/Hash.java
diff --git a/common/src/java/org/apache/hadoop/util/hash/JenkinsHash.java b/hadoop-common/src/main/java/org/apache/hadoop/util/hash/JenkinsHash.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/hash/JenkinsHash.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/hash/JenkinsHash.java
diff --git a/common/src/java/org/apache/hadoop/util/hash/MurmurHash.java b/hadoop-common/src/main/java/org/apache/hadoop/util/hash/MurmurHash.java
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/hash/MurmurHash.java
rename to hadoop-common/src/main/java/org/apache/hadoop/util/hash/MurmurHash.java
diff --git a/common/src/java/org/apache/hadoop/util/package.html b/hadoop-common/src/main/java/org/apache/hadoop/util/package.html
similarity index 100%
rename from common/src/java/org/apache/hadoop/util/package.html
rename to hadoop-common/src/main/java/org/apache/hadoop/util/package.html
diff --git a/common/src/java/overview.html b/hadoop-common/src/main/java/overview.html
similarity index 100%
rename from common/src/java/overview.html
rename to hadoop-common/src/main/java/overview.html
diff --git a/common/src/native/.autom4te.cfg b/hadoop-common/src/main/native/.autom4te.cfg
similarity index 100%
rename from common/src/native/.autom4te.cfg
rename to hadoop-common/src/main/native/.autom4te.cfg
diff --git a/common/src/native/AUTHORS b/hadoop-common/src/main/native/AUTHORS
similarity index 100%
rename from common/src/native/AUTHORS
rename to hadoop-common/src/main/native/AUTHORS
diff --git a/common/src/native/COPYING b/hadoop-common/src/main/native/COPYING
similarity index 100%
rename from common/src/native/COPYING
rename to hadoop-common/src/main/native/COPYING
diff --git a/common/src/native/ChangeLog b/hadoop-common/src/main/native/ChangeLog
similarity index 100%
rename from common/src/native/ChangeLog
rename to hadoop-common/src/main/native/ChangeLog
diff --git a/common/src/native/Makefile.am b/hadoop-common/src/main/native/Makefile.am
similarity index 91%
rename from common/src/native/Makefile.am
rename to hadoop-common/src/main/native/Makefile.am
index 286be3159b..d981641730 100644
--- a/common/src/native/Makefile.am
+++ b/hadoop-common/src/main/native/Makefile.am
@@ -33,10 +33,7 @@ export PLATFORM = $(shell echo $$OS_NAME | tr [A-Z] [a-z])
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = @JNI_CPPFLAGS@ -I$(HADOOP_NATIVE_SRCDIR)/src \
- -Isrc/org/apache/hadoop/io/compress/zlib \
- -Isrc/org/apache/hadoop/io/compress/snappy \
- -Isrc/org/apache/hadoop/security \
- -Isrc/org/apache/hadoop/io/nativeio/
+ -I$(HADOOP_NATIVE_SRCDIR)/javah
AM_LDFLAGS = @JNI_LDFLAGS@
AM_CFLAGS = -g -Wall -fPIC -O2
if SPECIFY_DATA_MODEL
diff --git a/common/src/native/NEWS b/hadoop-common/src/main/native/NEWS
similarity index 100%
rename from common/src/native/NEWS
rename to hadoop-common/src/main/native/NEWS
diff --git a/common/src/native/README b/hadoop-common/src/main/native/README
similarity index 100%
rename from common/src/native/README
rename to hadoop-common/src/main/native/README
diff --git a/common/src/native/acinclude.m4 b/hadoop-common/src/main/native/acinclude.m4
similarity index 100%
rename from common/src/native/acinclude.m4
rename to hadoop-common/src/main/native/acinclude.m4
diff --git a/common/src/native/configure.ac b/hadoop-common/src/main/native/configure.ac
similarity index 100%
rename from common/src/native/configure.ac
rename to hadoop-common/src/main/native/configure.ac
diff --git a/common/src/native/lib/Makefile.am b/hadoop-common/src/main/native/lib/Makefile.am
similarity index 100%
rename from common/src/native/lib/Makefile.am
rename to hadoop-common/src/main/native/lib/Makefile.am
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyCompressor.c
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/SnappyDecompressor.c
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/snappy/org_apache_hadoop_io_compress_snappy.h b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/org_apache_hadoop_io_compress_snappy.h
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/snappy/org_apache_hadoop_io_compress_snappy.h
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/snappy/org_apache_hadoop_io_compress_snappy.h
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/zlib/Makefile.am b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/Makefile.am
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/zlib/Makefile.am
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/Makefile.am
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibCompressor.c
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/ZlibDecompressor.c
diff --git a/common/src/native/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib.h b/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib.h
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib.h
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zlib/org_apache_hadoop_io_compress_zlib.h
diff --git a/common/src/native/src/org/apache/hadoop/io/nativeio/NativeIO.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/NativeIO.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/nativeio/NativeIO.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/NativeIO.c
diff --git a/common/src/native/src/org/apache/hadoop/io/nativeio/errno_enum.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/errno_enum.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/nativeio/errno_enum.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/errno_enum.c
diff --git a/common/src/native/src/org/apache/hadoop/io/nativeio/errno_enum.h b/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/errno_enum.h
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/nativeio/errno_enum.h
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/errno_enum.h
diff --git a/common/src/native/src/org/apache/hadoop/io/nativeio/file_descriptor.c b/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/file_descriptor.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/nativeio/file_descriptor.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/file_descriptor.c
diff --git a/common/src/native/src/org/apache/hadoop/io/nativeio/file_descriptor.h b/hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/file_descriptor.h
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/io/nativeio/file_descriptor.h
rename to hadoop-common/src/main/native/src/org/apache/hadoop/io/nativeio/file_descriptor.h
diff --git a/common/src/native/src/org/apache/hadoop/security/JniBasedUnixGroupsMapping.c b/hadoop-common/src/main/native/src/org/apache/hadoop/security/JniBasedUnixGroupsMapping.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/security/JniBasedUnixGroupsMapping.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/security/JniBasedUnixGroupsMapping.c
diff --git a/common/src/native/src/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.c b/hadoop-common/src/main/native/src/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/security/JniBasedUnixGroupsNetgroupMapping.c
diff --git a/common/src/native/src/org/apache/hadoop/security/getGroup.c b/hadoop-common/src/main/native/src/org/apache/hadoop/security/getGroup.c
similarity index 100%
rename from common/src/native/src/org/apache/hadoop/security/getGroup.c
rename to hadoop-common/src/main/native/src/org/apache/hadoop/security/getGroup.c
diff --git a/common/src/native/src/org_apache_hadoop.h b/hadoop-common/src/main/native/src/org_apache_hadoop.h
similarity index 100%
rename from common/src/native/src/org_apache_hadoop.h
rename to hadoop-common/src/main/native/src/org_apache_hadoop.h
diff --git a/common/src/packages/deb/hadoop.control/conffile b/hadoop-common/src/main/packages/deb/hadoop.control/conffile
similarity index 100%
rename from common/src/packages/deb/hadoop.control/conffile
rename to hadoop-common/src/main/packages/deb/hadoop.control/conffile
diff --git a/common/src/packages/deb/hadoop.control/control b/hadoop-common/src/main/packages/deb/hadoop.control/control
similarity index 100%
rename from common/src/packages/deb/hadoop.control/control
rename to hadoop-common/src/main/packages/deb/hadoop.control/control
diff --git a/common/src/packages/deb/hadoop.control/postinst b/hadoop-common/src/main/packages/deb/hadoop.control/postinst
similarity index 100%
rename from common/src/packages/deb/hadoop.control/postinst
rename to hadoop-common/src/main/packages/deb/hadoop.control/postinst
diff --git a/common/src/packages/deb/hadoop.control/postrm b/hadoop-common/src/main/packages/deb/hadoop.control/postrm
similarity index 100%
rename from common/src/packages/deb/hadoop.control/postrm
rename to hadoop-common/src/main/packages/deb/hadoop.control/postrm
diff --git a/common/src/packages/deb/hadoop.control/preinst b/hadoop-common/src/main/packages/deb/hadoop.control/preinst
similarity index 100%
rename from common/src/packages/deb/hadoop.control/preinst
rename to hadoop-common/src/main/packages/deb/hadoop.control/preinst
diff --git a/common/src/packages/deb/hadoop.control/prerm b/hadoop-common/src/main/packages/deb/hadoop.control/prerm
similarity index 100%
rename from common/src/packages/deb/hadoop.control/prerm
rename to hadoop-common/src/main/packages/deb/hadoop.control/prerm
diff --git a/common/src/packages/deb/init.d/hadoop-datanode b/hadoop-common/src/main/packages/deb/init.d/hadoop-datanode
similarity index 100%
rename from common/src/packages/deb/init.d/hadoop-datanode
rename to hadoop-common/src/main/packages/deb/init.d/hadoop-datanode
diff --git a/common/src/packages/deb/init.d/hadoop-jobtracker b/hadoop-common/src/main/packages/deb/init.d/hadoop-jobtracker
similarity index 100%
rename from common/src/packages/deb/init.d/hadoop-jobtracker
rename to hadoop-common/src/main/packages/deb/init.d/hadoop-jobtracker
diff --git a/common/src/packages/deb/init.d/hadoop-namenode b/hadoop-common/src/main/packages/deb/init.d/hadoop-namenode
similarity index 100%
rename from common/src/packages/deb/init.d/hadoop-namenode
rename to hadoop-common/src/main/packages/deb/init.d/hadoop-namenode
diff --git a/common/src/packages/deb/init.d/hadoop-tasktracker b/hadoop-common/src/main/packages/deb/init.d/hadoop-tasktracker
similarity index 100%
rename from common/src/packages/deb/init.d/hadoop-tasktracker
rename to hadoop-common/src/main/packages/deb/init.d/hadoop-tasktracker
diff --git a/common/src/packages/hadoop-create-user.sh b/hadoop-common/src/main/packages/hadoop-create-user.sh
similarity index 100%
rename from common/src/packages/hadoop-create-user.sh
rename to hadoop-common/src/main/packages/hadoop-create-user.sh
diff --git a/common/src/packages/hadoop-setup-conf.sh b/hadoop-common/src/main/packages/hadoop-setup-conf.sh
similarity index 100%
rename from common/src/packages/hadoop-setup-conf.sh
rename to hadoop-common/src/main/packages/hadoop-setup-conf.sh
diff --git a/common/src/packages/hadoop-setup-hdfs.sh b/hadoop-common/src/main/packages/hadoop-setup-hdfs.sh
similarity index 100%
rename from common/src/packages/hadoop-setup-hdfs.sh
rename to hadoop-common/src/main/packages/hadoop-setup-hdfs.sh
diff --git a/common/src/packages/hadoop-setup-single-node.sh b/hadoop-common/src/main/packages/hadoop-setup-single-node.sh
similarity index 100%
rename from common/src/packages/hadoop-setup-single-node.sh
rename to hadoop-common/src/main/packages/hadoop-setup-single-node.sh
diff --git a/common/src/packages/rpm/init.d/hadoop-datanode b/hadoop-common/src/main/packages/rpm/init.d/hadoop-datanode
similarity index 100%
rename from common/src/packages/rpm/init.d/hadoop-datanode
rename to hadoop-common/src/main/packages/rpm/init.d/hadoop-datanode
diff --git a/common/src/packages/rpm/init.d/hadoop-jobtracker b/hadoop-common/src/main/packages/rpm/init.d/hadoop-jobtracker
similarity index 100%
rename from common/src/packages/rpm/init.d/hadoop-jobtracker
rename to hadoop-common/src/main/packages/rpm/init.d/hadoop-jobtracker
diff --git a/common/src/packages/rpm/init.d/hadoop-namenode b/hadoop-common/src/main/packages/rpm/init.d/hadoop-namenode
similarity index 100%
rename from common/src/packages/rpm/init.d/hadoop-namenode
rename to hadoop-common/src/main/packages/rpm/init.d/hadoop-namenode
diff --git a/common/src/packages/rpm/init.d/hadoop-tasktracker b/hadoop-common/src/main/packages/rpm/init.d/hadoop-tasktracker
similarity index 100%
rename from common/src/packages/rpm/init.d/hadoop-tasktracker
rename to hadoop-common/src/main/packages/rpm/init.d/hadoop-tasktracker
diff --git a/common/src/packages/rpm/spec/hadoop.spec b/hadoop-common/src/main/packages/rpm/spec/hadoop.spec
similarity index 100%
rename from common/src/packages/rpm/spec/hadoop.spec
rename to hadoop-common/src/main/packages/rpm/spec/hadoop.spec
diff --git a/hadoop-common/src/main/packages/templates/conf/core-site.xml b/hadoop-common/src/main/packages/templates/conf/core-site.xml
new file mode 100644
index 0000000000..c99b86cb70
--- /dev/null
+++ b/hadoop-common/src/main/packages/templates/conf/core-site.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+ fs.default.name
+ ${HADOOP_NN_HOST}
+
+
diff --git a/common/src/packages/update-hadoop-env.sh b/hadoop-common/src/main/packages/update-hadoop-env.sh
similarity index 100%
rename from common/src/packages/update-hadoop-env.sh
rename to hadoop-common/src/main/packages/update-hadoop-env.sh
diff --git a/hadoop-common/src/main/resources/META-INF/services/org.apache.hadoop.security.SecurityInfo b/hadoop-common/src/main/resources/META-INF/services/org.apache.hadoop.security.SecurityInfo
new file mode 100644
index 0000000000..5295f3be2f
--- /dev/null
+++ b/hadoop-common/src/main/resources/META-INF/services/org.apache.hadoop.security.SecurityInfo
@@ -0,0 +1 @@
+org.apache.hadoop.security.AnnotatedSecurityInfo
diff --git a/common/src/java/core-default.xml b/hadoop-common/src/main/resources/core-default.xml
similarity index 100%
rename from common/src/java/core-default.xml
rename to hadoop-common/src/main/resources/core-default.xml
diff --git a/common/src/webapps/static/hadoop.css b/hadoop-common/src/main/webapps/static/hadoop.css
similarity index 100%
rename from common/src/webapps/static/hadoop.css
rename to hadoop-common/src/main/webapps/static/hadoop.css
diff --git a/hadoop-common/src/main/xsl/configuration.xsl b/hadoop-common/src/main/xsl/configuration.xsl
new file mode 100644
index 0000000000..4ac2504644
--- /dev/null
+++ b/hadoop-common/src/main/xsl/configuration.xsl
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+ name |
+ value |
+ description |
+
+
+
+ |
+ |
+ |
+
+
+
+
+
+
+
diff --git a/common/src/test/all-tests b/hadoop-common/src/test/all-tests
similarity index 100%
rename from common/src/test/all-tests
rename to hadoop-common/src/test/all-tests
diff --git a/common/src/test/aop/build/aop.xml b/hadoop-common/src/test/aop/build/aop.xml
similarity index 100%
rename from common/src/test/aop/build/aop.xml
rename to hadoop-common/src/test/aop/build/aop.xml
diff --git a/common/src/test/aop/org/apache/hadoop/fi/FiConfig.java b/hadoop-common/src/test/aop/org/apache/hadoop/fi/FiConfig.java
similarity index 100%
rename from common/src/test/aop/org/apache/hadoop/fi/FiConfig.java
rename to hadoop-common/src/test/aop/org/apache/hadoop/fi/FiConfig.java
diff --git a/common/src/test/aop/org/apache/hadoop/fi/ProbabilityModel.java b/hadoop-common/src/test/aop/org/apache/hadoop/fi/ProbabilityModel.java
similarity index 100%
rename from common/src/test/aop/org/apache/hadoop/fi/ProbabilityModel.java
rename to hadoop-common/src/test/aop/org/apache/hadoop/fi/ProbabilityModel.java
diff --git a/common/src/test/checkstyle-noframes-sorted.xsl b/hadoop-common/src/test/checkstyle-noframes-sorted.xsl
similarity index 100%
rename from common/src/test/checkstyle-noframes-sorted.xsl
rename to hadoop-common/src/test/checkstyle-noframes-sorted.xsl
diff --git a/common/src/test/ddl/buffer.jr b/hadoop-common/src/test/ddl/buffer.jr
similarity index 100%
rename from common/src/test/ddl/buffer.jr
rename to hadoop-common/src/test/ddl/buffer.jr
diff --git a/common/src/test/ddl/int.jr b/hadoop-common/src/test/ddl/int.jr
similarity index 100%
rename from common/src/test/ddl/int.jr
rename to hadoop-common/src/test/ddl/int.jr
diff --git a/common/src/test/ddl/string.jr b/hadoop-common/src/test/ddl/string.jr
similarity index 100%
rename from common/src/test/ddl/string.jr
rename to hadoop-common/src/test/ddl/string.jr
diff --git a/common/src/test/ddl/test.jr b/hadoop-common/src/test/ddl/test.jr
similarity index 100%
rename from common/src/test/ddl/test.jr
rename to hadoop-common/src/test/ddl/test.jr
diff --git a/common/src/test/empty-file b/hadoop-common/src/test/empty-file
similarity index 100%
rename from common/src/test/empty-file
rename to hadoop-common/src/test/empty-file
diff --git a/common/src/test/core/org/apache/hadoop/cli/CLITestHelper.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/CLITestHelper.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/CLITestHelper.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/CLITestHelper.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/TestCLI.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/TestCLI.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/TestCLI.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/TestCLI.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/testConf.xsl b/hadoop-common/src/test/java/org/apache/hadoop/cli/testConf.xsl
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/testConf.xsl
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/testConf.xsl
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CLICommand.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommand.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CLICommand.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommand.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CLICommandFS.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommandFS.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CLICommandFS.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommandFS.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CLICommandTypes.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommandTypes.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CLICommandTypes.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLICommandTypes.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CLITestCmd.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLITestCmd.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CLITestCmd.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLITestCmd.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CLITestData.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLITestData.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CLITestData.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CLITestData.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/CommandExecutor.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/CommandExecutor.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/CommandExecutor.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/CommandExecutor.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/ComparatorBase.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/ComparatorBase.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/ComparatorBase.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/ComparatorBase.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/ComparatorData.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/ComparatorData.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/ComparatorData.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/ComparatorData.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/ExactComparator.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/ExactComparator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/ExactComparator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/ExactComparator.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/FSCmdExecutor.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/FSCmdExecutor.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/FSCmdExecutor.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/FSCmdExecutor.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/RegexpAcrossOutputComparator.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/RegexpAcrossOutputComparator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/RegexpAcrossOutputComparator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/RegexpAcrossOutputComparator.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/RegexpComparator.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/RegexpComparator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/RegexpComparator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/RegexpComparator.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/SubstringComparator.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/SubstringComparator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/SubstringComparator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/SubstringComparator.java
diff --git a/common/src/test/core/org/apache/hadoop/cli/util/TokenComparator.java b/hadoop-common/src/test/java/org/apache/hadoop/cli/util/TokenComparator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/util/TokenComparator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/cli/util/TokenComparator.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestConfServlet.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfServlet.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestConfServlet.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfServlet.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestConfiguration.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestConfiguration.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfiguration.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestConfigurationDeprecation.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationDeprecation.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestConfigurationDeprecation.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationDeprecation.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestConfigurationSubclass.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationSubclass.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestConfigurationSubclass.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigurationSubclass.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestDeprecatedKeys.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestDeprecatedKeys.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestDeprecatedKeys.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestDeprecatedKeys.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestGetInstances.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestGetInstances.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestGetInstances.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestGetInstances.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/TestReconfiguration.java b/hadoop-common/src/test/java/org/apache/hadoop/conf/TestReconfiguration.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/TestReconfiguration.java
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/TestReconfiguration.java
diff --git a/common/src/test/core/org/apache/hadoop/conf/empty-configuration.xml b/hadoop-common/src/test/java/org/apache/hadoop/conf/empty-configuration.xml
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/conf/empty-configuration.xml
rename to hadoop-common/src/test/java/org/apache/hadoop/conf/empty-configuration.xml
diff --git a/common/src/test/core/org/apache/hadoop/fs/FCStatisticsBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FCStatisticsBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FCStatisticsBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FCStatisticsBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FSMainOperationsBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FSMainOperationsBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FSMainOperationsBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FSMainOperationsBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextCreateMkdirBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextCreateMkdirBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextCreateMkdirBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextCreateMkdirBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextMainOperationsBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextMainOperationsBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextMainOperationsBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextMainOperationsBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextPermissionBase.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextPermissionBase.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextPermissionBase.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextPermissionBase.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextSymlinkBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextSymlinkBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextSymlinkBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextSymlinkBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextTestHelper.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextTestHelper.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextTestHelper.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextURIBase.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextURIBase.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextURIBase.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextURIBase.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileContextUtilBase.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextUtilBase.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileContextUtilBase.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileContextUtilBase.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileSystemContractBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemContractBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/FileSystemContractBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemContractBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/FileSystemTestHelper.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemTestHelper.java
similarity index 98%
rename from common/src/test/core/org/apache/hadoop/fs/FileSystemTestHelper.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemTestHelper.java
index 28deb624da..b827ca4378 100644
--- a/common/src/test/core/org/apache/hadoop/fs/FileSystemTestHelper.java
+++ b/hadoop-common/src/test/java/org/apache/hadoop/fs/FileSystemTestHelper.java
@@ -34,7 +34,7 @@
public final class FileSystemTestHelper {
// The test root is relative to the /build/test/data by default
public static final String TEST_ROOT_DIR =
- System.getProperty("test.build.data", "build/test/data") + "/test";
+ System.getProperty("test.build.data", "target/test/data") + "/test";
private static final int DEFAULT_BLOCK_SIZE = 1024;
private static final int DEFAULT_NUM_BLOCKS = 2;
private static String absTestRootDir = null;
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestAvroFSInput.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestAvroFSInput.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestAvroFSInput.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestAvroFSInput.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestBlockLocation.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestBlockLocation.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestBlockLocation.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestBlockLocation.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestChecksumFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestChecksumFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestChecksumFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestChecksumFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestCommandFormat.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestCommandFormat.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestCommandFormat.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestCommandFormat.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestDFVariations.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestDFVariations.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestDFVariations.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestDFVariations.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestDU.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestDU.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestDU.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestDU.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFSMainOperationsLocalFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFSMainOperationsLocalFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFSMainOperationsLocalFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFSMainOperationsLocalFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFcLocalFsPermission.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFcLocalFsPermission.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFcLocalFsPermission.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFcLocalFsPermission.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFcLocalFsUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFcLocalFsUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFcLocalFsUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFcLocalFsUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFileContextDeleteOnExit.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileContextDeleteOnExit.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFileContextDeleteOnExit.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileContextDeleteOnExit.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileContextResolveAfs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFileContextResolveAfs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileContextResolveAfs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFileStatus.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileStatus.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFileStatus.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileStatus.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFileSystemCaching.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileSystemCaching.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFileSystemCaching.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileSystemCaching.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFileUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFileUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFileUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFilterFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFilterFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFilterFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFilterFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestFsShellReturnCode.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestFsShellReturnCode.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestFsShellReturnCode.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestGetFileBlockLocations.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestGetFileBlockLocations.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestGetFileBlockLocations.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestGetFileBlockLocations.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestGlobExpander.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestGlobExpander.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestGlobExpander.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestGlobExpander.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestGlobPattern.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestGlobPattern.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestGlobPattern.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestGlobPattern.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestHardLink.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestHardLink.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestHardLink.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestHardLink.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestListFiles.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestListFiles.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestListFiles.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestListFiles.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalDirAllocator.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalDirAllocator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalDirAllocator.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextCreateMkdir.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextMainOperations.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextMainOperations.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextMainOperations.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextMainOperations.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextSymlink.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextSymlink.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFSFileContextSymlink.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFSFileContextSymlink.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFileSystemPermission.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFileSystemPermission.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFileSystemPermission.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFileSystemPermission.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocalFsFCStatistics.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFsFCStatistics.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocalFsFCStatistics.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocalFsFCStatistics.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestLocal_S3FileContextURI.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocal_S3FileContextURI.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestLocal_S3FileContextURI.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestLocal_S3FileContextURI.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestPath.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestPath.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestPath.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestS3_LocalFileContextURI.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestS3_LocalFileContextURI.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestS3_LocalFileContextURI.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestS3_LocalFileContextURI.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestTrash.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestTrash.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestTrash.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestTrash.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/TestTruncatedInputBug.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/TestTruncatedInputBug.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/TestTruncatedInputBug.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/TestTruncatedInputBug.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/kfs/KFSEmulationImpl.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/kfs/KFSEmulationImpl.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/kfs/KFSEmulationImpl.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/kfs/KFSEmulationImpl.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/kfs/TestKosmosFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/loadGenerator/DataGenerator.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/DataGenerator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/loadGenerator/DataGenerator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/DataGenerator.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/loadGenerator/LoadGenerator.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/LoadGenerator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/loadGenerator/LoadGenerator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/LoadGenerator.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/loadGenerator/StructureGenerator.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/StructureGenerator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/loadGenerator/StructureGenerator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/loadGenerator/StructureGenerator.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/permission/TestFsPermission.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/permission/TestFsPermission.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/InMemoryFileSystemStore.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/InMemoryFileSystemStore.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/InMemoryFileSystemStore.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/InMemoryFileSystemStore.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/Jets3tS3FileSystemContractTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/Jets3tS3FileSystemContractTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/Jets3tS3FileSystemContractTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/Jets3tS3FileSystemContractTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/S3FileSystemContractBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/S3FileSystemContractBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/S3FileSystemContractBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/S3FileSystemContractBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/TestINode.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestINode.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/TestINode.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestINode.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/TestInMemoryS3FileSystemContract.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestInMemoryS3FileSystemContract.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/TestInMemoryS3FileSystemContract.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestInMemoryS3FileSystemContract.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/TestS3Credentials.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestS3Credentials.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/TestS3Credentials.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestS3Credentials.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3/TestS3FileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestS3FileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3/TestS3FileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3/TestS3FileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3native/InMemoryNativeFileSystemStore.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/InMemoryNativeFileSystemStore.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3native/InMemoryNativeFileSystemStore.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/InMemoryNativeFileSystemStore.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3native/Jets3tNativeS3FileSystemContractTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/Jets3tNativeS3FileSystemContractTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3native/Jets3tNativeS3FileSystemContractTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/Jets3tNativeS3FileSystemContractTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3native/NativeS3FileSystemContractBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/NativeS3FileSystemContractBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3native/NativeS3FileSystemContractBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/NativeS3FileSystemContractBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/s3native/TestInMemoryNativeS3FileSystemContract.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/TestInMemoryNativeS3FileSystemContract.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/s3native/TestInMemoryNativeS3FileSystemContract.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/s3native/TestInMemoryNativeS3FileSystemContract.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/shell/TestCommandFactory.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCommandFactory.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/shell/TestCommandFactory.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestCommandFactory.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/shell/TestPathData.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestPathData.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/shell/TestPathData.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestPathData.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/shell/TestPathExceptions.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestPathExceptions.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/shell/TestPathExceptions.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/shell/TestPathExceptions.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestChRootedFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestChRootedFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestChRootedFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFSMainOperationsLocalFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcCreateMkdirLocalFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcCreateMkdirLocalFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcCreateMkdirLocalFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcCreateMkdirLocalFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcMainOperationsLocalFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcMainOperationsLocalFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcMainOperationsLocalFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcMainOperationsLocalFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcPermissionsLocalFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcPermissionsLocalFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestFcPermissionsLocalFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestFcPermissionsLocalFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFileSystemLocalFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemLocalFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFileSystemLocalFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemLocalFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithAuthorityLocalFileSystem.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithAuthorityLocalFileSystem.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithAuthorityLocalFileSystem.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFileSystemWithAuthorityLocalFileSystem.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsConfig.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsConfig.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsConfig.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsConfig.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsLocalFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsLocalFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsLocalFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsLocalFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsTrash.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsWithAuthorityLocalFs.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsWithAuthorityLocalFs.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewFsWithAuthorityLocalFs.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsWithAuthorityLocalFs.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewfsFileStatus.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewfsFileStatus.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/TestViewfsFileStatus.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/TestViewfsFileStatus.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFileSystemTestSetup.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsBaseTest.java
diff --git a/common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFsTestSetup.java b/hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsTestSetup.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/fs/viewfs/ViewFsTestSetup.java
rename to hadoop-common/src/test/java/org/apache/hadoop/fs/viewfs/ViewFsTestSetup.java
diff --git a/common/src/test/core/org/apache/hadoop/http/HttpServerFunctionalTest.java b/hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/HttpServerFunctionalTest.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/HttpServerFunctionalTest.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestGlobalFilter.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestGlobalFilter.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestGlobalFilter.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestGlobalFilter.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestHtmlQuoting.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestHtmlQuoting.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestHtmlQuoting.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestHtmlQuoting.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestHttpServer.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestHttpServer.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestHttpServerLifecycle.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServerLifecycle.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestHttpServerLifecycle.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServerLifecycle.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestHttpServerWebapps.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServerWebapps.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestHttpServerWebapps.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServerWebapps.java
diff --git a/common/src/test/core/org/apache/hadoop/http/TestServletFilter.java b/hadoop-common/src/test/java/org/apache/hadoop/http/TestServletFilter.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/TestServletFilter.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/TestServletFilter.java
diff --git a/common/src/test/core/org/apache/hadoop/http/lib/TestStaticUserWebFilter.java b/hadoop-common/src/test/java/org/apache/hadoop/http/lib/TestStaticUserWebFilter.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/http/lib/TestStaticUserWebFilter.java
rename to hadoop-common/src/test/java/org/apache/hadoop/http/lib/TestStaticUserWebFilter.java
diff --git a/common/src/test/core/org/apache/hadoop/io/AvroTestUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/io/AvroTestUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/AvroTestUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/AvroTestUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/io/RandomDatum.java b/hadoop-common/src/test/java/org/apache/hadoop/io/RandomDatum.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/RandomDatum.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/RandomDatum.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestArrayFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestArrayFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestArrayPrimitiveWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayPrimitiveWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestArrayPrimitiveWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayPrimitiveWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestArrayWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestArrayWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestArrayWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestBloomMapFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestBloomMapFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestBloomMapFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestBloomMapFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestBooleanWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestBooleanWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestBooleanWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestBooleanWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestBoundedByteArrayOutputStream.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestBoundedByteArrayOutputStream.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestBoundedByteArrayOutputStream.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestBoundedByteArrayOutputStream.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestBytesWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestBytesWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestBytesWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestBytesWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestDataByteBuffers.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestDataByteBuffers.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestDataByteBuffers.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestDataByteBuffers.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestDefaultStringifier.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestDefaultStringifier.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestDefaultStringifier.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestDefaultStringifier.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestEnumSetWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestEnumSetWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestEnumSetWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestEnumSetWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestGenericWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestGenericWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestGenericWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestGenericWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestIOUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestIOUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestIOUtils.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestMD5Hash.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestMD5Hash.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestMD5Hash.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestMD5Hash.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestMapFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestMapFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestMapFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestMapWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestMapWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestMapWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestObjectWritableProtos.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestObjectWritableProtos.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestObjectWritableProtos.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestObjectWritableProtos.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSecureIOUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSecureIOUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSecureIOUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSecureIOUtils.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSequenceFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSequenceFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSequenceFileSerialization.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFileSerialization.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSequenceFileSerialization.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFileSerialization.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSequenceFileSync.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFileSync.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSequenceFileSync.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSequenceFileSync.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSetFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSetFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSetFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSetFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestSortedMapWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestSortedMapWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestSortedMapWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestSortedMapWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestText.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestText.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestText.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestText.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestTextNonUTF8.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestTextNonUTF8.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestTextNonUTF8.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestTextNonUTF8.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestUTF8.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestUTF8.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestUTF8.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestUTF8.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestVersionedWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestVersionedWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestVersionedWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestVersionedWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestWritable.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestWritable.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestWritable.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestWritable.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestWritableName.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestWritableName.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestWritableName.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestWritableName.java
diff --git a/common/src/test/core/org/apache/hadoop/io/TestWritableUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/io/TestWritableUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/TestWritableUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/TestWritableUtils.java
diff --git a/common/src/test/core/org/apache/hadoop/io/compress/TestBlockDecompressorStream.java b/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestBlockDecompressorStream.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/compress/TestBlockDecompressorStream.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestBlockDecompressorStream.java
diff --git a/common/src/test/core/org/apache/hadoop/io/compress/TestCodec.java b/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodec.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/compress/TestCodec.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodec.java
diff --git a/common/src/test/core/org/apache/hadoop/io/compress/TestCodecFactory.java b/hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodecFactory.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/compress/TestCodecFactory.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/compress/TestCodecFactory.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/KVGenerator.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/KVGenerator.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/KVGenerator.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/KVGenerator.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/KeySampler.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/KeySampler.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/KeySampler.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/KeySampler.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/NanoTimer.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/NanoTimer.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/NanoTimer.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/NanoTimer.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/RandomDistribution.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/RandomDistribution.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/RandomDistribution.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/RandomDistribution.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFile.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFile.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFile.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileComparator2.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileComparator2.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileComparator2.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileComparator2.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileComparators.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileComparators.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileComparators.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileComparators.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileJClassComparatorByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileJClassComparatorByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileJClassComparatorByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileJClassComparatorByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsStreams.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsStreams.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsStreams.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileLzoCodecsStreams.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsJClassComparatorByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsJClassComparatorByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsJClassComparatorByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsJClassComparatorByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsStreams.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsStreams.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsStreams.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileNoneCodecsStreams.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSeek.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSeek.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSeek.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSeek.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSeqFileComparison.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSeqFileComparison.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSeqFileComparison.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSeqFileComparison.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSplit.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSplit.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileSplit.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileSplit.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileStreams.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileStreams.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileStreams.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileStreams.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileUnsortedByteArrays.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileUnsortedByteArrays.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestTFileUnsortedByteArrays.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestTFileUnsortedByteArrays.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/TestVLong.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestVLong.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/TestVLong.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/TestVLong.java
diff --git a/common/src/test/core/org/apache/hadoop/io/file/tfile/Timer.java b/hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/Timer.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/file/tfile/Timer.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/file/tfile/Timer.java
diff --git a/common/src/test/core/org/apache/hadoop/io/nativeio/TestNativeIO.java b/hadoop-common/src/test/java/org/apache/hadoop/io/nativeio/TestNativeIO.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/nativeio/TestNativeIO.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/nativeio/TestNativeIO.java
diff --git a/common/src/test/core/org/apache/hadoop/io/retry/TestFailoverProxy.java b/hadoop-common/src/test/java/org/apache/hadoop/io/retry/TestFailoverProxy.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/retry/TestFailoverProxy.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/retry/TestFailoverProxy.java
diff --git a/common/src/test/core/org/apache/hadoop/io/retry/TestRetryProxy.java b/hadoop-common/src/test/java/org/apache/hadoop/io/retry/TestRetryProxy.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/retry/TestRetryProxy.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/retry/TestRetryProxy.java
diff --git a/common/src/test/core/org/apache/hadoop/io/retry/UnreliableImplementation.java b/hadoop-common/src/test/java/org/apache/hadoop/io/retry/UnreliableImplementation.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/retry/UnreliableImplementation.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/retry/UnreliableImplementation.java
diff --git a/common/src/test/core/org/apache/hadoop/io/retry/UnreliableInterface.java b/hadoop-common/src/test/java/org/apache/hadoop/io/retry/UnreliableInterface.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/retry/UnreliableInterface.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/retry/UnreliableInterface.java
diff --git a/common/src/test/core/org/apache/hadoop/io/serializer/SerializationTestUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/SerializationTestUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/serializer/SerializationTestUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/serializer/SerializationTestUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/io/serializer/TestWritableSerialization.java b/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/TestWritableSerialization.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/serializer/TestWritableSerialization.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/serializer/TestWritableSerialization.java
diff --git a/common/src/test/core/org/apache/hadoop/io/serializer/avro/Record.java b/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/Record.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/serializer/avro/Record.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/Record.java
diff --git a/common/src/test/core/org/apache/hadoop/io/serializer/avro/TestAvroSerialization.java b/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/TestAvroSerialization.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/serializer/avro/TestAvroSerialization.java
rename to hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/TestAvroSerialization.java
diff --git a/common/src/test/core/org/apache/hadoop/io/serializer/avro/avroRecord.avsc b/hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/avroRecord.avsc
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/io/serializer/avro/avroRecord.avsc
rename to hadoop-common/src/test/java/org/apache/hadoop/io/serializer/avro/avroRecord.avsc
diff --git a/common/src/test/core/org/apache/hadoop/ipc/AvroSpecificTestProtocol.avpr b/hadoop-common/src/test/java/org/apache/hadoop/ipc/AvroSpecificTestProtocol.avpr
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/AvroSpecificTestProtocol.avpr
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/AvroSpecificTestProtocol.avpr
diff --git a/common/src/test/core/org/apache/hadoop/ipc/AvroTestProtocol.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/AvroTestProtocol.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/AvroTestProtocol.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/AvroTestProtocol.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/MiniRPCBenchmark.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/MiniRPCBenchmark.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/MiniRPCBenchmark.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/MiniRPCBenchmark.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestAvroRpc.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestAvroRpc.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestAvroRpc.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestAvroRpc.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestIPC.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestIPC.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestIPC.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestIPC.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestIPCServerResponder.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestIPCServerResponder.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestIPCServerResponder.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestIPCServerResponder.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestMiniRPCBenchmark.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestMiniRPCBenchmark.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestMiniRPCBenchmark.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestMiniRPCBenchmark.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestRPC.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestRPC.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPC.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestRPCCompatibility.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPCCompatibility.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestRPCCompatibility.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestRPCCompatibility.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestSaslRPC.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSaslRPC.java
diff --git a/common/src/test/core/org/apache/hadoop/ipc/TestSocketFactory.java b/hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSocketFactory.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/ipc/TestSocketFactory.java
rename to hadoop-common/src/test/java/org/apache/hadoop/ipc/TestSocketFactory.java
diff --git a/common/src/test/core/org/apache/hadoop/jmx/TestJMXJsonServlet.java b/hadoop-common/src/test/java/org/apache/hadoop/jmx/TestJMXJsonServlet.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/jmx/TestJMXJsonServlet.java
rename to hadoop-common/src/test/java/org/apache/hadoop/jmx/TestJMXJsonServlet.java
diff --git a/common/src/test/core/org/apache/hadoop/log/TestLogLevel.java b/hadoop-common/src/test/java/org/apache/hadoop/log/TestLogLevel.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/log/TestLogLevel.java
rename to hadoop-common/src/test/java/org/apache/hadoop/log/TestLogLevel.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics/TestMetricsServlet.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics/TestMetricsServlet.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics/TestMetricsServlet.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics/TestMetricsServlet.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics/ganglia/TestGangliaContext.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics/ganglia/TestGangliaContext.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics/ganglia/TestGangliaContext.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics/ganglia/TestGangliaContext.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics/spi/TestOutputRecord.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics/spi/TestOutputRecord.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics/spi/TestOutputRecord.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics/spi/TestOutputRecord.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/filter/TestPatternFilter.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/filter/TestPatternFilter.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/filter/TestPatternFilter.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/filter/TestPatternFilter.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/ConfigBuilder.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/ConfigBuilder.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/ConfigBuilder.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/ConfigBuilder.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/ConfigUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/ConfigUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/ConfigUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/ConfigUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/MetricsLists.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/MetricsLists.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/MetricsLists.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/MetricsLists.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestGangliaMetrics.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestGangliaMetrics.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestGangliaMetrics.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestGangliaMetrics.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsCollectorImpl.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsCollectorImpl.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsCollectorImpl.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsCollectorImpl.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java
similarity index 97%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java
index 5c3d7cac1f..3bdc8af1e6 100644
--- a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java
+++ b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsConfig.java
@@ -138,6 +138,7 @@ private void testInstances(MetricsConfig c) throws Exception {
* @return the filename
*/
public static String getTestFilename(String basename) {
- return "build/test/"+ basename +".properties";
+ return System.getProperty("test.build.classes", "target/test-classes") +
+ "/"+ basename +".properties";
}
}
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsSystemImpl.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsSystemImpl.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsSystemImpl.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsSystemImpl.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsVisitor.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsVisitor.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestMetricsVisitor.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestMetricsVisitor.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/impl/TestSinkQueue.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestSinkQueue.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/impl/TestSinkQueue.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/impl/TestSinkQueue.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/lib/TestInterns.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestInterns.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/lib/TestInterns.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestInterns.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/lib/TestMetricsAnnotations.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMetricsAnnotations.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/lib/TestMetricsAnnotations.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMetricsAnnotations.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/lib/TestMetricsRegistry.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMetricsRegistry.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/lib/TestMetricsRegistry.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMetricsRegistry.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/lib/TestMutableMetrics.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMutableMetrics.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/lib/TestMutableMetrics.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestMutableMetrics.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/lib/TestUniqNames.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestUniqNames.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/lib/TestUniqNames.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/lib/TestUniqNames.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricsTestHelper.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricsTestHelper.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricsTestHelper.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/sink/ganglia/GangliaMetricsTestHelper.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/source/TestJvmMetrics.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/source/TestJvmMetrics.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/source/TestJvmMetrics.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/source/TestJvmMetrics.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/util/TestMetricsCache.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/util/TestMetricsCache.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/util/TestMetricsCache.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/util/TestMetricsCache.java
diff --git a/common/src/test/core/org/apache/hadoop/metrics2/util/TestSampleStat.java b/hadoop-common/src/test/java/org/apache/hadoop/metrics2/util/TestSampleStat.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/metrics2/util/TestSampleStat.java
rename to hadoop-common/src/test/java/org/apache/hadoop/metrics2/util/TestSampleStat.java
diff --git a/common/src/test/core/org/apache/hadoop/net/StaticMapping.java b/hadoop-common/src/test/java/org/apache/hadoop/net/StaticMapping.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/net/StaticMapping.java
rename to hadoop-common/src/test/java/org/apache/hadoop/net/StaticMapping.java
diff --git a/common/src/test/core/org/apache/hadoop/net/TestDNS.java b/hadoop-common/src/test/java/org/apache/hadoop/net/TestDNS.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/net/TestDNS.java
rename to hadoop-common/src/test/java/org/apache/hadoop/net/TestDNS.java
diff --git a/common/src/test/core/org/apache/hadoop/net/TestNetUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/net/TestNetUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/net/TestNetUtils.java
diff --git a/common/src/test/core/org/apache/hadoop/net/TestScriptBasedMapping.java b/hadoop-common/src/test/java/org/apache/hadoop/net/TestScriptBasedMapping.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/net/TestScriptBasedMapping.java
rename to hadoop-common/src/test/java/org/apache/hadoop/net/TestScriptBasedMapping.java
diff --git a/common/src/test/core/org/apache/hadoop/net/TestSocketIOWithTimeout.java b/hadoop-common/src/test/java/org/apache/hadoop/net/TestSocketIOWithTimeout.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/net/TestSocketIOWithTimeout.java
rename to hadoop-common/src/test/java/org/apache/hadoop/net/TestSocketIOWithTimeout.java
diff --git a/common/src/test/core/org/apache/hadoop/record/FromCpp.java b/hadoop-common/src/test/java/org/apache/hadoop/record/FromCpp.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/FromCpp.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/FromCpp.java
diff --git a/common/src/test/core/org/apache/hadoop/record/RecordBench.java b/hadoop-common/src/test/java/org/apache/hadoop/record/RecordBench.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/RecordBench.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/RecordBench.java
diff --git a/common/src/test/core/org/apache/hadoop/record/TestBuffer.java b/hadoop-common/src/test/java/org/apache/hadoop/record/TestBuffer.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/TestBuffer.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/TestBuffer.java
diff --git a/common/src/test/core/org/apache/hadoop/record/TestRecordIO.java b/hadoop-common/src/test/java/org/apache/hadoop/record/TestRecordIO.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/TestRecordIO.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/TestRecordIO.java
diff --git a/common/src/test/core/org/apache/hadoop/record/TestRecordVersioning.java b/hadoop-common/src/test/java/org/apache/hadoop/record/TestRecordVersioning.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/TestRecordVersioning.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/TestRecordVersioning.java
diff --git a/common/src/test/core/org/apache/hadoop/record/ToCpp.java b/hadoop-common/src/test/java/org/apache/hadoop/record/ToCpp.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/record/ToCpp.java
rename to hadoop-common/src/test/java/org/apache/hadoop/record/ToCpp.java
diff --git a/common/src/test/core/org/apache/hadoop/security/ManualTestKeytabLogins.java b/hadoop-common/src/test/java/org/apache/hadoop/security/ManualTestKeytabLogins.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/ManualTestKeytabLogins.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/ManualTestKeytabLogins.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestCredentials.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestCredentials.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestCredentials.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestCredentials.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestDoAsEffectiveUser.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestDoAsEffectiveUser.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestDoAsEffectiveUser.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestDoAsEffectiveUser.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestJNIGroupsMapping.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestJNIGroupsMapping.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestJNIGroupsMapping.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestJNIGroupsMapping.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestKerberosName.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestKerberosName.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestKerberosName.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestKerberosName.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestSecurityUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestSecurityUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestSecurityUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/security/TestUserGroupInformation.java b/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/TestUserGroupInformation.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
diff --git a/common/src/test/core/org/apache/hadoop/security/authorize/TestAccessControlList.java b/hadoop-common/src/test/java/org/apache/hadoop/security/authorize/TestAccessControlList.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/authorize/TestAccessControlList.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/authorize/TestAccessControlList.java
diff --git a/common/src/test/core/org/apache/hadoop/security/authorize/TestProxyUsers.java b/hadoop-common/src/test/java/org/apache/hadoop/security/authorize/TestProxyUsers.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/authorize/TestProxyUsers.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/authorize/TestProxyUsers.java
diff --git a/common/src/test/core/org/apache/hadoop/security/token/TestToken.java b/hadoop-common/src/test/java/org/apache/hadoop/security/token/TestToken.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/token/TestToken.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/token/TestToken.java
diff --git a/common/src/test/core/org/apache/hadoop/security/token/delegation/TestDelegationToken.java b/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestDelegationToken.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/security/token/delegation/TestDelegationToken.java
rename to hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestDelegationToken.java
diff --git a/common/src/test/core/org/apache/hadoop/test/CoreTestDriver.java b/hadoop-common/src/test/java/org/apache/hadoop/test/CoreTestDriver.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/CoreTestDriver.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/CoreTestDriver.java
diff --git a/common/src/test/core/org/apache/hadoop/test/MetricsAsserts.java b/hadoop-common/src/test/java/org/apache/hadoop/test/MetricsAsserts.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/MetricsAsserts.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/MetricsAsserts.java
diff --git a/common/src/test/core/org/apache/hadoop/test/MockitoMaker.java b/hadoop-common/src/test/java/org/apache/hadoop/test/MockitoMaker.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/MockitoMaker.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/MockitoMaker.java
diff --git a/common/src/test/core/org/apache/hadoop/test/MoreAsserts.java b/hadoop-common/src/test/java/org/apache/hadoop/test/MoreAsserts.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/MoreAsserts.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/MoreAsserts.java
diff --git a/common/src/test/core/org/apache/hadoop/test/MultithreadedTestUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/test/MultithreadedTestUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/MultithreadedTestUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/MultithreadedTestUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/test/TestMultithreadedTestUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/test/TestMultithreadedTestUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/TestMultithreadedTestUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/TestMultithreadedTestUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/test/UnitTestcaseTimeLimit.java b/hadoop-common/src/test/java/org/apache/hadoop/test/UnitTestcaseTimeLimit.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/test/UnitTestcaseTimeLimit.java
rename to hadoop-common/src/test/java/org/apache/hadoop/test/UnitTestcaseTimeLimit.java
diff --git a/common/src/test/core/org/apache/hadoop/tools/GetGroupsTestBase.java b/hadoop-common/src/test/java/org/apache/hadoop/tools/GetGroupsTestBase.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/tools/GetGroupsTestBase.java
rename to hadoop-common/src/test/java/org/apache/hadoop/tools/GetGroupsTestBase.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestAsyncDiskService.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestAsyncDiskService.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestAsyncDiskService.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestAsyncDiskService.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestCyclicIteration.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestCyclicIteration.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestCyclicIteration.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestCyclicIteration.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestDataChecksum.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestDataChecksum.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestDataChecksum.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestDataChecksum.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestDiskChecker.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestDiskChecker.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestDiskChecker.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestGenericOptionsParser.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestGenericOptionsParser.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestGenericOptionsParser.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestGenericOptionsParser.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestGenericsUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestGenericsUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestGenericsUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestGenericsUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestHostsFileReader.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestHostsFileReader.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestHostsFileReader.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestHostsFileReader.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestIndexedSort.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestIndexedSort.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestIndexedSort.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestIndexedSort.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestOptions.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestOptions.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestOptions.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestOptions.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestProtoUtil.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestProtoUtil.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestProtoUtil.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestProtoUtil.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestPureJavaCrc32.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestPureJavaCrc32.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestPureJavaCrc32.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestPureJavaCrc32.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestReflectionUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestReflectionUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestReflectionUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestReflectionUtils.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestRunJar.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestRunJar.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestRunJar.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestRunJar.java
diff --git a/common/src/test/core/org/apache/hadoop/util/TestShell.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestShell.java
similarity index 99%
rename from common/src/test/core/org/apache/hadoop/util/TestShell.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestShell.java
index 07ca9179c2..96bfb2f731 100644
--- a/common/src/test/core/org/apache/hadoop/util/TestShell.java
+++ b/hadoop-common/src/test/java/org/apache/hadoop/util/TestShell.java
@@ -72,7 +72,7 @@ private void assertInString(String string, String search) {
public void testShellCommandExecutorToString() throws Throwable {
Shell.ShellCommandExecutor sce=new Shell.ShellCommandExecutor(
- new String[] { "ls","..","arg 2"});
+ new String[] { "ls", "..","arg 2"});
String command = sce.toString();
assertInString(command,"ls");
assertInString(command, " .. ");
diff --git a/common/src/test/core/org/apache/hadoop/util/TestStringUtils.java b/hadoop-common/src/test/java/org/apache/hadoop/util/TestStringUtils.java
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/util/TestStringUtils.java
rename to hadoop-common/src/test/java/org/apache/hadoop/util/TestStringUtils.java
diff --git a/common/src/test/core-site.xml b/hadoop-common/src/test/resources/core-site.xml
similarity index 100%
rename from common/src/test/core-site.xml
rename to hadoop-common/src/test/resources/core-site.xml
diff --git a/common/src/test/fi-site.xml b/hadoop-common/src/test/resources/fi-site.xml
similarity index 100%
rename from common/src/test/fi-site.xml
rename to hadoop-common/src/test/resources/fi-site.xml
diff --git a/common/src/test/hadoop-policy.xml b/hadoop-common/src/test/resources/hadoop-policy.xml
similarity index 100%
rename from common/src/test/hadoop-policy.xml
rename to hadoop-common/src/test/resources/hadoop-policy.xml
diff --git a/common/src/test/krb5.conf b/hadoop-common/src/test/resources/krb5.conf
similarity index 100%
rename from common/src/test/krb5.conf
rename to hadoop-common/src/test/resources/krb5.conf
diff --git a/common/src/test/log4j.properties b/hadoop-common/src/test/resources/log4j.properties
similarity index 100%
rename from common/src/test/log4j.properties
rename to hadoop-common/src/test/resources/log4j.properties
diff --git a/common/src/test/test-fake-default.xml b/hadoop-common/src/test/resources/test-fake-default.xml
similarity index 100%
rename from common/src/test/test-fake-default.xml
rename to hadoop-common/src/test/resources/test-fake-default.xml
diff --git a/common/src/test/test-patch.properties b/hadoop-common/src/test/resources/test-patch.properties
similarity index 100%
rename from common/src/test/test-patch.properties
rename to hadoop-common/src/test/resources/test-patch.properties
diff --git a/common/src/test/core/org/apache/hadoop/cli/testConf.xml b/hadoop-common/src/test/resources/testConf.xml
similarity index 100%
rename from common/src/test/core/org/apache/hadoop/cli/testConf.xml
rename to hadoop-common/src/test/resources/testConf.xml
diff --git a/common/src/test/test-webapps/static/test.css b/hadoop-common/src/test/resources/webapps/static/test.css
similarity index 100%
rename from common/src/test/test-webapps/static/test.css
rename to hadoop-common/src/test/resources/webapps/static/test.css
diff --git a/common/src/test/test-webapps/test/.gitignore b/hadoop-common/src/test/resources/webapps/test/.gitignore
similarity index 100%
rename from common/src/test/test-webapps/test/.gitignore
rename to hadoop-common/src/test/resources/webapps/test/.gitignore
diff --git a/common/src/test/test-webapps/test/testjsp.jsp b/hadoop-common/src/test/resources/webapps/test/testjsp.jsp
similarity index 100%
rename from common/src/test/test-webapps/test/testjsp.jsp
rename to hadoop-common/src/test/resources/webapps/test/testjsp.jsp
diff --git a/common/src/test/system/aop/org/apache/hadoop/test/system/DaemonProtocolAspect.aj b/hadoop-common/src/test/system/aop/org/apache/hadoop/test/system/DaemonProtocolAspect.aj
similarity index 100%
rename from common/src/test/system/aop/org/apache/hadoop/test/system/DaemonProtocolAspect.aj
rename to hadoop-common/src/test/system/aop/org/apache/hadoop/test/system/DaemonProtocolAspect.aj
diff --git a/common/src/test/system/c++/runAs/Makefile.in b/hadoop-common/src/test/system/c++/runAs/Makefile.in
similarity index 100%
rename from common/src/test/system/c++/runAs/Makefile.in
rename to hadoop-common/src/test/system/c++/runAs/Makefile.in
diff --git a/common/src/test/system/c++/runAs/configure b/hadoop-common/src/test/system/c++/runAs/configure
similarity index 100%
rename from common/src/test/system/c++/runAs/configure
rename to hadoop-common/src/test/system/c++/runAs/configure
diff --git a/common/src/test/system/c++/runAs/configure.ac b/hadoop-common/src/test/system/c++/runAs/configure.ac
similarity index 100%
rename from common/src/test/system/c++/runAs/configure.ac
rename to hadoop-common/src/test/system/c++/runAs/configure.ac
diff --git a/common/src/test/system/c++/runAs/main.c b/hadoop-common/src/test/system/c++/runAs/main.c
similarity index 100%
rename from common/src/test/system/c++/runAs/main.c
rename to hadoop-common/src/test/system/c++/runAs/main.c
diff --git a/common/src/test/system/c++/runAs/runAs.c b/hadoop-common/src/test/system/c++/runAs/runAs.c
similarity index 100%
rename from common/src/test/system/c++/runAs/runAs.c
rename to hadoop-common/src/test/system/c++/runAs/runAs.c
diff --git a/common/src/test/system/c++/runAs/runAs.h.in b/hadoop-common/src/test/system/c++/runAs/runAs.h.in
similarity index 100%
rename from common/src/test/system/c++/runAs/runAs.h.in
rename to hadoop-common/src/test/system/c++/runAs/runAs.h.in
diff --git a/common/src/test/system/conf/hadoop-policy-system-test.xml b/hadoop-common/src/test/system/conf/hadoop-policy-system-test.xml
similarity index 72%
rename from common/src/test/system/conf/hadoop-policy-system-test.xml
rename to hadoop-common/src/test/system/conf/hadoop-policy-system-test.xml
index 6e86a1b97b..b2c3735e28 100644
--- a/common/src/test/system/conf/hadoop-policy-system-test.xml
+++ b/hadoop-common/src/test/system/conf/hadoop-policy-system-test.xml
@@ -1,5 +1,21 @@
+
+
+ 4.0.0
+ org.apache.hadoop
+ hadoop-project
+ 0.23.0-SNAPSHOT
+ Apache Hadoop Project POM
+ Apache Hadoop Project POM
+ pom
+
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+
+ Apache Software Foundation
+ http://www.apache.org
+
+
+
+ false
+ true
+
+ _
+ _
+
+
+ UTF-8
+ UTF-8
+
+
+
+ ${project.version}
+ 1.0.9
+
+ ${project.version}
+
+
+
+
+
+ jdiff
+ jdiff
+ ${jdiff.version}
+
+
+ org.apache.hadoop
+ hadoop-assemblies
+ ${hadoop.assemblies.version}
+
+
+ org.apache.hadoop
+ hadoop-annotations
+ ${hadoop.annotations.version}
+
+
+ org.apache.hadoop
+ hadoop-common-docs
+ ${project.version}
+
+
+ org.apache.hadoop
+ hadoop-common
+ ${project.version}
+
+
+ org.apache.hadoop
+ hadoop-common
+ ${project.version}
+ test-jar
+
+
+
+ com.google.guava
+ guava
+ r09
+
+
+ commons-cli
+ commons-cli
+ 1.2
+
+
+ org.apache.commons
+ commons-math
+ 2.1
+
+
+ xmlenc
+ xmlenc
+ 0.52
+
+
+ commons-httpclient
+ commons-httpclient
+ 3.1
+
+
+ commons-codec
+ commons-codec
+ 1.4
+
+
+ commons-net
+ commons-net
+ 1.4.1
+
+
+ javax.servlet
+ servlet-api
+ 2.5
+
+
+ org.mortbay.jetty
+ jetty
+ 6.1.26
+
+
+ org.mortbay.jetty
+ servlet-api
+
+
+
+
+ org.mortbay.jetty
+ jetty-util
+ 6.1.26
+
+
+ tomcat
+ jasper-compiler
+ 5.5.23
+
+
+ javax.servlet
+ jsp-api
+
+
+ ant
+ ant
+
+
+
+
+ tomcat
+ jasper-runtime
+ 5.5.23
+
+
+ javax.servlet.jsp
+ jsp-api
+ 2.1
+
+
+ commons-el
+ commons-el
+ 1.0
+
+
+ commons-logging
+ commons-logging
+ 1.0.4
+
+
+ avalon-framework
+ avalon-framework
+
+
+ logkit
+ logkit
+
+
+ javax.servlet
+ servlet-api
+
+
+
+
+ commons-logging
+ commons-logging-api
+ 1.0.4
+
+
+ log4j
+ log4j
+ 1.2.15
+
+
+ com.sun.jdmk
+ jmxtools
+
+
+ com.sun.jmx
+ jmxri
+
+
+ javax.mail
+ mail
+
+
+ javax.jms
+ jmx
+
+
+ javax.jms
+ jms
+
+
+
+
+ net.java.dev.jets3t
+ jets3t
+ 0.6.1
+
+
+ org.apache.mina
+ mina-core
+ 2.0.0-M5
+
+
+ org.apache.ftpserver
+ ftplet-api
+ 1.0.0
+
+
+ org.apache.ftpserver
+ ftpserver-core
+ 1.0.0
+
+
+ org.apache.ftpserver
+ ftpserver-deprecated
+ 1.0.0-M2
+
+
+ junit
+ junit
+ 4.8.1
+
+
+ commons-lang
+ commons-lang
+ 2.5
+
+
+ commons-collections
+ commons-collections
+ 3.2.1
+
+
+ commons-configuration
+ commons-configuration
+ 1.6
+
+
+ hsqldb
+ hsqldb
+ 1.8.0.7
+
+
+ org.slf4j
+ slf4j-api
+ 1.5.8
+
+
+ org.slf4j
+ slf4j-log4j12
+ 1.5.8
+
+
+ org.eclipse.jdt
+ core
+ 3.1.1
+
+
+ oro
+ oro
+ 2.0.8
+
+
+ org.codehaus.jackson
+ jackson-mapper-asl
+ 1.5.2
+
+
+ org.aspectj
+ aspectjrt
+ 1.6.5
+
+
+ org.mockito
+ mockito-all
+ 1.8.5
+
+
+ org.apache.hadoop
+ avro
+ 1.3.2
+
+
+ org.apache.ant
+ ant
+
+
+
+
+ net.sf.kosmosfs
+ kfs
+ 0.3
+
+
+ org.apache.ant
+ ant
+ 1.8.1
+
+
+ com.google.protobuf
+ protobuf-java
+ 2.4.0a
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 2.3.2
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+ 2.1
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ 1.5
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 2.6
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 2.3.1
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.2-beta-3
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.7
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+ 1.6
+
+
+ org.apache.maven.plugins
+ maven-war-plugin
+ 2.1
+
+
+ org.codehaus.mojo
+ findbugs-maven-plugin
+ 2.3.2
+
+
+ com.atlassian.maven.plugins
+ maven-clover2-plugin
+ 3.0.5
+
+
+ org.apache.maven.plugins
+ maven-checkstyle-plugin
+ 2.6
+
+
+ org.apache.rat
+ apache-rat-plugin
+ 0.7
+
+
+ org.codehaus.mojo
+ native-maven-plugin
+ 1.0-alpha-7
+
+
+ org.codehaus.mojo
+ make-maven-plugin
+ 1.0-beta-1
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+ 2.1.2
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ false
+
+
+
+ [3.0.0,)
+
+
+ 1.6
+
+
+ unix
+
+
+
+
+
+ clean
+
+ enforce
+
+ pre-clean
+
+
+ default
+
+ enforce
+
+ validate
+
+
+ site
+
+ enforce
+
+ pre-site
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+ 1.6
+
+
+
+
+
+
+
+ os.linux
+
+
+ Linux
+
+
+
+ ${os.name}-${os.arch}-${sun.arch.data.model}
+
+
+
+ jdk.tools
+ jdk.tools
+ 1.6
+ system
+ ${env.JAVA_HOME}/lib/tools.jar
+
+
+
+
+ os.mac
+
+
+ Mac
+
+
+
+ Mac_OS_X-${sun.arch.data.model}
+
+
+
+
+ clover
+
+ false
+
+ clover
+
+
+
+ ${user.home}/.clover.license
+ ${project.build.directory}/clover/hadoop-coverage.db
+
+
+
+
+ com.atlassian.maven.plugins
+ maven-clover2-plugin
+
+ true
+ ${cloverLicenseLocation}
+ ${cloverDatabase}
+ 50%
+ ${project.build.directory}/clover
+ true
+ true
+
+
+
+ setup
+ generate-sources
+
+ setup
+
+
+
+ clover
+ test
+
+ clover
+
+
+
+
+
+
+
+
+ test-patch
+
+ false
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+ true
+
+ 1.6
+
+
+ 9999
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000000..ba41a928c3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,119 @@
+
+
+
+ 4.0.0
+ org.apache.hadoop
+ hadoop-main
+ 0.23.0-SNAPSHOT
+ Apache Hadoop Main
+ Apache Hadoop Main
+ pom
+
+
+
+ The Apache Software License, Version 2.0
+ http://www.apache.org/licenses/LICENSE-2.0.txt
+
+
+
+
+ Apache Software Foundation
+ http://www.apache.org
+
+
+
+ hadoop-project
+ hadoop-assemblies
+ hadoop-annotations
+ hadoop-common
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ 1.0
+
+
+ org.apache.maven.plugins
+ maven-assembly-plugin
+ 2.2-beta-3
+
+
+ org.apache.rat
+ apache-rat-plugin
+ 0.7
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ false
+
+
+
+ [3.0.0,)
+
+
+ 1.6
+
+
+ unix
+
+
+
+
+
+ clean
+
+ enforce
+
+ pre-clean
+
+
+ default
+
+ enforce
+
+ validate
+
+
+ site
+
+ enforce
+
+ pre-site
+
+
+
+
+ org.apache.rat
+ apache-rat-plugin
+
+
+ dev-support/*
+ pom.xml
+
+
+
+
+
+
+