Skip to content

Commit 6bdf031

Browse files
authored
[filesystems/hdfs] Fix class not found issue in hdfs plugin (#1755)
1 parent 7ab3ca5 commit 6bdf031

File tree

5 files changed

+50
-113
lines changed

5 files changed

+50
-113
lines changed

fluss-filesystems/fluss-fs-hdfs/pom.xml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@
6262
</exclusions>
6363
</dependency>
6464

65+
<!-- We must include protobuf-java, otherwise, will meet
66+
Caused by: java.lang.ClassNotFoundException: com.google.protobuf.ServiceException
67+
-->
68+
<dependency>
69+
<groupId>com.google.protobuf</groupId>
70+
<artifactId>protobuf-java</artifactId>
71+
<version>2.5.0</version>
72+
</dependency>
73+
6574
<dependency>
6675
<groupId>org.apache.hadoop</groupId>
6776
<artifactId>hadoop-hdfs</artifactId>
@@ -95,21 +104,23 @@
95104
</exclusion>
96105
</exclusions>
97106
</dependency>
98-
<dependency>
99-
<groupId>org.apache.fluss</groupId>
100-
<artifactId>fluss-test-utils</artifactId>
101-
</dependency>
107+
108+
<!-- for the behavior test suite -->
102109
<dependency>
103110
<groupId>org.apache.fluss</groupId>
104111
<artifactId>fluss-common</artifactId>
105112
<version>${project.version}</version>
106113
<scope>test</scope>
107114
<type>test-jar</type>
108115
</dependency>
116+
<dependency>
117+
<groupId>org.apache.fluss</groupId>
118+
<artifactId>fluss-test-utils</artifactId>
119+
</dependency>
109120
<dependency>
110121
<groupId>org.apache.hadoop</groupId>
111122
<artifactId>hadoop-hdfs</artifactId>
112-
<version>${fluss.hadoop.version}</version>
123+
<version>${fs.hadoopshaded.version}</version>
113124
<scope>test</scope>
114125
<type>test-jar</type>
115126
<exclusions>

fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/NOTICE

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -9,70 +9,13 @@ This project bundles the following dependencies under the Apache Software Licens
99
- com.fasterxml.jackson.core:jackson-annotations:2.15.3
1010
- com.fasterxml.jackson.core:jackson-core:2.15.3
1111
- com.fasterxml.jackson.core:jackson-databind:2.15.3
12-
- com.fasterxml.woodstox:woodstox-core:5.3.0
13-
- com.github.stephenc.jcip:jcip-annotations:1.0-1
14-
- com.google.guava:guava:11.0.2
15-
- com.jamesmurty.utils:java-xmlbuilder:0.4
16-
- com.nimbusds:nimbus-jose-jwt:9.8.1
1712
- com.squareup.okhttp3:okhttp:4.9.3
1813
- com.squareup.okio:okio:2.8.0
19-
- commons-beanutils:commons-beanutils:1.9.4
20-
- commons-codec:commons-codec:1.15
21-
- commons-collections:commons-collections:3.2.2
22-
- commons-configuration:commons-configuration:1.6
23-
- commons-digester:commons-digester:1.8
24-
- commons-io:commons-io:2.8.0
25-
- commons-lang:commons-lang:2.6
26-
- commons-logging:commons-logging:1.1.3
27-
- io.netty:netty-buffer:4.1.77.Final
28-
- io.netty:netty-common:4.1.77.Final
29-
- io.netty:netty-handler:4.1.77.Final
30-
- io.netty:netty-transport-native-epoll:4.1.42.Final
31-
- io.netty:netty-transport-native-unix-common:4.1.77.Final
32-
- io.netty:netty-transport:4.1.77.Final
33-
- net.java.dev.jets3t:jets3t:0.9.0
34-
- net.minidev:accessors-smart:2.4.7
35-
- net.minidev:json-smart:2.4.7
36-
- org.apache.commons:commons-compress:1.21
37-
- org.apache.commons:commons-lang3:3.18.0
38-
- org.apache.curator:curator-client:4.2.0
39-
- org.apache.curator:curator-framework:4.2.0
40-
- org.apache.hadoop.thirdparty:hadoop-shaded-guava:1.1.1
41-
- org.apache.hadoop:hadoop-annotations:3.3.4
42-
- org.apache.hadoop:hadoop-auth:3.3.4
43-
- org.apache.hadoop:hadoop-common:2.10.2
4414
- org.apache.hadoop:hadoop-hdfs-client:3.3.4
45-
- org.apache.htrace:htrace-core4:4.1.0-incubating
46-
- org.apache.httpcomponents:httpclient:4.5.13
47-
- org.apache.httpcomponents:httpcore:4.4.13
48-
- org.apache.kerby:kerb-admin:1.0.1
49-
- org.apache.kerby:kerb-client:1.0.1
50-
- org.apache.kerby:kerb-common:1.0.1
51-
- org.apache.kerby:kerb-core:1.0.1
52-
- org.apache.kerby:kerb-crypto:1.0.1
53-
- org.apache.kerby:kerb-identity:1.0.1
54-
- org.apache.kerby:kerb-server:1.0.1
55-
- org.apache.kerby:kerb-simplekdc:1.0.1
56-
- org.apache.kerby:kerb-util:1.0.1
57-
- org.apache.kerby:kerby-asn1:1.0.1
58-
- org.apache.kerby:kerby-config:1.0.1
59-
- org.apache.kerby:kerby-pkix:1.0.1
60-
- org.apache.kerby:kerby-util:1.0.1
61-
- org.apache.kerby:kerby-xdr:1.0.1
62-
- org.apache.kerby:token-provider:1.0.1
63-
- org.apache.yetus:audience-annotations:0.5.0
64-
- org.apache.zookeeper:zookeeper-jute:3.5.6
65-
- org.apache.zookeeper:zookeeper:3.5.6
66-
- org.codehaus.jackson:jackson-core-asl:1.9.13
67-
- org.codehaus.jackson:jackson-mapper-asl:1.9.13
6815
- org.jetbrains.kotlin:kotlin-stdlib-common:1.4.10
6916
- org.jetbrains.kotlin:kotlin-stdlib:1.4.10
70-
- org.mortbay.jetty:jetty-sslengine:6.1.26
71-
- org.mortbay.jetty:jetty-util:6.1.26
72-
- org.mortbay.jetty:jetty:6.1.26
7317

74-
This project bundles the following dependencies under BSD License (https://opensource.org/licenses/bsd-license.php).
18+
This project bundles the following dependencies under BSD-3 License (https://opensource.org/licenses/BSD-3-Clause).
7519
See bundled license files for details.
7620

77-
- org.ow2.asm:asm:9.1
78-
- org.codehaus.woodstox:stax2-api:4.2.1 (https://github.com/FasterXML/stax2-api/tree/stax2-api-4.2.1)
21+
- com.google.protobuf:protobuf-java:2.5.0

fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/licenses/LICENSE.asm

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Copyright 2008 Google Inc. All rights reserved.
2+
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are
5+
met:
6+
7+
* Redistributions of source code must retain the above copyright
8+
notice, this list of conditions and the following disclaimer.
9+
* Redistributions in binary form must reproduce the above
10+
copyright notice, this list of conditions and the following disclaimer
11+
in the documentation and/or other materials provided with the
12+
distribution.
13+
* Neither the name of Google Inc. nor the names of its
14+
contributors may be used to endorse or promote products derived from
15+
this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
29+
Code generated by the Protocol Buffer compiler is owned by the owner
30+
of the input file used when generating it. This code is not
31+
standalone and requires a support library to be linked with it. This
32+
support library is itself covered by the above license.

fluss-filesystems/fluss-fs-hdfs/src/main/resources/META-INF/licenses/LICENSE.stax2api

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)