Skip to content

Commit 6e49e30

Browse files
authored
HDDS-12278. Fix license headers and imports for ozone-filesystem (#7907)
1 parent 770d3e6 commit 6e49e30

File tree

8 files changed

+62
-84
lines changed

8 files changed

+62
-84
lines changed

hadoop-ozone/ozonefs/pom.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@
107107
</execution>
108108
</executions>
109109
</plugin>
110-
<plugin>
111-
<groupId>org.apache.maven.plugins</groupId>
112-
<artifactId>maven-checkstyle-plugin</artifactId>
113-
<configuration>
114-
<suppressionsLocation>${basedir}/../../hadoop-hdds/dev-support/checkstyle/suppressions-skip-imports.xml</suppressionsLocation>
115-
</configuration>
116-
</plugin>
117110
</plugins>
118111
</build>
119112
</project>

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/OzFs.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
/**
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,7 +20,6 @@
2120
import java.io.IOException;
2221
import java.net.URI;
2322
import java.net.URISyntaxException;
24-
2523
import org.apache.hadoop.conf.Configuration;
2624
import org.apache.hadoop.fs.DelegateToFileSystem;
2725
import org.apache.hadoop.hdds.annotation.InterfaceAudience;

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/OzoneFileSystem.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,12 +17,13 @@
1817

1918
package org.apache.hadoop.fs.ozone;
2019

20+
import static org.apache.hadoop.ozone.OzoneConsts.FORCE_LEASE_RECOVERY_ENV;
21+
22+
import com.google.common.base.Strings;
2123
import java.io.IOException;
2224
import java.io.InputStream;
2325
import java.net.URI;
2426
import java.util.List;
25-
26-
import com.google.common.base.Strings;
2727
import org.apache.hadoop.crypto.key.KeyProvider;
2828
import org.apache.hadoop.crypto.key.KeyProviderTokenIssuer;
2929
import org.apache.hadoop.fs.FileSystem;
@@ -41,8 +41,6 @@
4141
import org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo;
4242
import org.apache.hadoop.security.token.DelegationTokenIssuer;
4343

44-
import static org.apache.hadoop.ozone.OzoneConsts.FORCE_LEASE_RECOVERY_ENV;
45-
4644
/**
4745
* The Ozone Filesystem implementation.
4846
* <p>

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/PosixOzoneFileSystem.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,11 +17,11 @@
1817

1918
package org.apache.hadoop.fs.ozone;
2019

20+
import java.io.IOException;
2121
import org.apache.hadoop.fs.FSDataOutputStream;
2222
import org.apache.hadoop.fs.Path;
2323
import org.apache.hadoop.fs.permission.FsPermission;
2424
import org.apache.hadoop.util.Progressable;
25-
import java.io.IOException;
2625

2726
/**
2827
* The PosixOzoneFileSystem implementation.
@@ -32,7 +31,6 @@
3231
* closes it and again calls the create function
3332
* of super class.
3433
*/
35-
3634
public class PosixOzoneFileSystem extends OzoneFileSystem {
3735
@Override
3836
public FSDataOutputStream create(Path f, FsPermission permission,

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/PosixRootedOzoneFileSystem.java

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,13 +17,12 @@
1817

1918
package org.apache.hadoop.fs.ozone;
2019

20+
import java.io.IOException;
2121
import org.apache.hadoop.fs.FSDataOutputStream;
2222
import org.apache.hadoop.fs.Path;
2323
import org.apache.hadoop.fs.permission.FsPermission;
2424
import org.apache.hadoop.util.Progressable;
2525

26-
import java.io.IOException;
27-
2826
/**
2927
* The PosixRootedOzoneFileSystem implementation.
3028
* The create function in this class overrides
@@ -33,7 +31,6 @@
3331
* closes it and again calls the create function
3432
* of super class.
3533
*/
36-
3734
public class PosixRootedOzoneFileSystem extends RootedOzoneFileSystem {
3835

3936
@Override

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/RootedOzFs.java

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
/**
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -21,7 +20,6 @@
2120
import java.io.IOException;
2221
import java.net.URI;
2322
import java.net.URISyntaxException;
24-
2523
import org.apache.hadoop.conf.Configuration;
2624
import org.apache.hadoop.fs.DelegateToFileSystem;
2725
import org.apache.hadoop.hdds.annotation.InterfaceAudience;

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/RootedOzoneFileSystem.java

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,8 +17,14 @@
1817

1918
package org.apache.hadoop.fs.ozone;
2019

20+
import static org.apache.hadoop.ozone.OzoneConsts.FORCE_LEASE_RECOVERY_ENV;
21+
2122
import com.google.common.base.Strings;
2223
import io.opentracing.util.GlobalTracer;
24+
import java.io.IOException;
25+
import java.io.InputStream;
26+
import java.net.URI;
27+
import java.util.List;
2328
import org.apache.hadoop.crypto.key.KeyProvider;
2429
import org.apache.hadoop.crypto.key.KeyProviderTokenIssuer;
2530
import org.apache.hadoop.fs.FileSystem;
@@ -38,13 +43,6 @@
3843
import org.apache.hadoop.ozone.om.helpers.OmKeyLocationInfo;
3944
import org.apache.hadoop.security.token.DelegationTokenIssuer;
4045

41-
import java.io.IOException;
42-
import java.io.InputStream;
43-
import java.net.URI;
44-
import java.util.List;
45-
46-
import static org.apache.hadoop.ozone.OzoneConsts.FORCE_LEASE_RECOVERY_ENV;
47-
4846
/**
4947
* The Rooted Ozone Filesystem (OFS) implementation.
5048
* <p>

hadoop-ozone/ozonefs/src/main/java/org/apache/hadoop/fs/ozone/package-info.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
/*
2-
* Licensed to the Apache Software Foundation (ASF) under one
3-
* or more contributor license agreements. See the NOTICE file
4-
* distributed with this work for additional information
5-
* regarding copyright ownership. The ASF licenses this file
6-
* to you under the Apache License, Version 2.0 (the
7-
* "License"); you may not use this file except in compliance
8-
* with the License. You may obtain a copy of the License at
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
98
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
9+
* http://www.apache.org/licenses/LICENSE-2.0
1110
*
1211
* Unless required by applicable law or agreed to in writing, software
1312
* distributed under the License is distributed on an "AS IS" BASIS,
1413
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1514
* See the License for the specific language governing permissions and
1615
* limitations under the License.
17-
*
1816
*/
1917

2018
/**

0 commit comments

Comments
 (0)