Skip to content

Commit b0236e1

Browse files
authored
HDDS-5829 [HTTPFSGW] Move to org.apache.ozone package from org.apache.hadoop. (#2743)
1 parent 5d671e7 commit b0236e1

72 files changed

Lines changed: 193 additions & 192 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

hadoop-ozone/dist/src/shell/ozone/ozone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function ozonecmd_case
190190
httpfs)
191191
OZONE_SUBCMD_SUPPORTDAEMONIZATION="true"
192192
OZONE_OPTS="${OZONE_OPTS} -Dhttpfs.home.dir=${OZONE_HOME} -Dhttpfs.config.dir=${OZONE_CONF_DIR} -Dhttpfs.log.dir=${OZONE_HOME}/log -Dhttpfs.temp.dir=${OZONE_HOME}/temp"
193-
OZONE_CLASSNAME='org.apache.hadoop.fs.http.server.HttpFSServerWebServer'
193+
OZONE_CLASSNAME='org.apache.ozone.fs.http.server.HttpFSServerWebServer'
194194
OZONE_RUN_ARTIFACT_NAME="ozone-httpfsgateway"
195195
;;
196196
csi)

hadoop-ozone/httpfsgateway/dev-support/findbugsExcludeFile.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@
1616
-->
1717
<FindBugsFilter>
1818
<Match>
19-
<Class name="org.apache.hadoop.lib.service.instrumentation.InstrumentationService" />
19+
<Class name="org.apache.ozone.lib.service.instrumentation.InstrumentationService" />
2020
<Method name="getToAdd" />
2121
<Bug pattern="UL_UNRELEASED_LOCK" />
2222
</Match>
2323
<Match>
24-
<Class name="org.apache.hadoop.fs.http.server.HttpFSServerWebApp" />
24+
<Class name="org.apache.ozone.fs.http.server.HttpFSServerWebApp" />
2525
<Method name="destroy" />
2626
<Bug pattern="ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD" />
2727
</Match>
2828
<Match>
29-
<Class name="org.apache.hadoop.lib.servlet.ServerWebApp" />
29+
<Class name="org.apache.ozone.lib.servlet.ServerWebApp" />
3030
<Field name="authority" />
3131
<Bug pattern="IS2_INCONSISTENT_SYNC" />
3232
</Match>
3333
<Match>
34-
<Class name="org.apache.hadoop.lib.service.hadoop.FileSystemAccessService" />
34+
<Class name="org.apache.ozone.lib.service.hadoop.FileSystemAccessService" />
3535
<Method name="closeFileSystem" />
3636
<Bug pattern="NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" />
3737
</Match>

hadoop-ozone/httpfsgateway/src/main/conf/httpfs-log4j.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ log4j.appender.httpfsaudit.layout.ConversionPattern=%d{ISO8601} %5p [%X{hostname
3131

3232
log4j.logger.httpfsaudit=INFO, httpfsaudit
3333

34-
log4j.logger.org.apache.hadoop.fs.http.server=INFO, httpfs
35-
log4j.logger.org.apache.hadoop.lib=INFO, httpfs
34+
log4j.logger.org.apache.ozone.fs.http.server=INFO, httpfs
35+
log4j.logger.org.apache.ozone.lib=INFO, httpfs

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/client/HttpFSFileSystem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.apache.hadoop.fs.http.client;
18+
package org.apache.ozone.fs.http.client;
1919

2020
import java.util.ArrayList;
2121
import java.util.Arrays;
@@ -54,7 +54,7 @@
5454
import org.apache.hadoop.hdfs.protocol.SnapshotDiffReport;
5555
import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus;
5656
import org.apache.hadoop.hdfs.web.JsonUtilClient;
57-
import org.apache.hadoop.lib.wsrs.EnumSetParam;
57+
import org.apache.ozone.lib.wsrs.EnumSetParam;
5858
import org.apache.hadoop.security.UserGroupInformation;
5959
import org.apache.hadoop.security.token.Token;
6060
import org.apache.hadoop.security.token.TokenIdentifier;

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/client/HttpFSUtils.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/client/HttpFSUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.apache.hadoop.fs.http.client;
18+
package org.apache.ozone.fs.http.client;
1919

2020
import org.apache.hadoop.classification.InterfaceAudience;
2121
import org.apache.hadoop.fs.Path;

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/client/HttpsFSFileSystem.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/client/HttpsFSFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.apache.hadoop.fs.http.client;
18+
package org.apache.ozone.fs.http.client;
1919

2020
/**
2121
* <p>HttpFSServer implementation of the FileSystemAccess FileSystem for SSL.

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/client/package-info.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/client/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
/**
1919
* HttpFS filesystem implementations.
2020
*/
21-
package org.apache.hadoop.fs.http.client;
21+
package org.apache.ozone.fs.http.client;

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/CheckUploadContentTypeFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
* limitations under the License.
1717
*/
1818

19-
package org.apache.hadoop.fs.http.server;
19+
package org.apache.ozone.fs.http.server;
2020

2121

2222
import org.apache.hadoop.classification.InterfaceAudience;
23-
import org.apache.hadoop.fs.http.client.HttpFSFileSystem;
23+
import org.apache.ozone.fs.http.client.HttpFSFileSystem;
2424
import org.apache.hadoop.util.StringUtils;
2525

2626
import javax.servlet.Filter;

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/FSOperations.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.apache.hadoop.fs.http.server;
18+
package org.apache.ozone.fs.http.server;
1919

2020
import org.apache.hadoop.classification.InterfaceAudience;
2121
import org.apache.hadoop.conf.Configuration;
@@ -33,8 +33,8 @@
3333
import org.apache.hadoop.fs.StorageType;
3434
import org.apache.hadoop.fs.XAttrCodec;
3535
import org.apache.hadoop.fs.XAttrSetFlag;
36-
import org.apache.hadoop.fs.http.client.HttpFSFileSystem;
37-
import org.apache.hadoop.fs.http.client.HttpFSFileSystem.FILETYPE;
36+
import org.apache.ozone.fs.http.client.HttpFSFileSystem;
37+
import org.apache.ozone.fs.http.client.HttpFSFileSystem.FILETYPE;
3838
import org.apache.hadoop.fs.permission.AclEntry;
3939
import org.apache.hadoop.fs.permission.AclStatus;
4040
import org.apache.hadoop.fs.permission.FsAction;
@@ -46,7 +46,7 @@
4646
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
4747
import org.apache.hadoop.hdfs.protocol.SnapshotDiffReport;
4848
import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus;
49-
import org.apache.hadoop.lib.service.FileSystemAccess;
49+
import org.apache.ozone.lib.service.FileSystemAccess;
5050
import org.apache.hadoop.util.StringUtils;
5151
import org.json.simple.JSONArray;
5252
import org.json.simple.JSONObject;

hadoop-ozone/httpfsgateway/src/main/java/org/apache/hadoop/fs/http/server/HttpFSAuthenticationFilter.java renamed to hadoop-ozone/httpfsgateway/src/main/java/org/apache/ozone/fs/http/server/HttpFSAuthenticationFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
* See the License for the specific language governing permissions and
1616
* limitations under the License.
1717
*/
18-
package org.apache.hadoop.fs.http.server;
18+
package org.apache.ozone.fs.http.server;
1919

2020
import org.apache.hadoop.classification.InterfaceAudience;
2121
import org.apache.hadoop.conf.Configuration;
22-
import org.apache.hadoop.hdfs.web.WebHdfsConstants;
22+
import org.apache.ozone.hdfs.web.WebHdfsConstants;
2323
import org.apache.hadoop.security.authentication.server.AuthenticationFilter;
2424
import org.apache.hadoop.security.authentication.util.RandomSignerSecretProvider;
2525
import org.apache.hadoop.security.authentication.util.SignerSecretProvider;

0 commit comments

Comments
 (0)