Comments (8)
It's difficult to test, as I do not have access to aarch64 environment.
But I modified the build so that you can choose a different base image.
Here's an example using an aarm64v8 openjdk base image:
mvn clean install -DskipITs
-Ddocker.base.image=arm64v8/openjdk:11-jre-slim-buster
-Dimage.name=marcelmay/hadoop-hdfs-fsimage-exporter-arm64v8
-Pdocker
from hadoop-hdfs-fsimage-exporter.
i conduct the command,but the error appear as blow:
... ...
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] 未与 -source 8 一起设置引导类路径
[WARNING] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[141,15] 找到原始类型: i o.prometheus.client.SimpleCollector
缺少泛型类io.prometheus.client.SimpleCollector的类型参数
[WARNING] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[145,15] 找到原始类型: i o.prometheus.client.SimpleCollector
缺少泛型类io.prometheus.client.SimpleCollector的类型参数
[WARNING] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[149,15] 找到原始类型: i o.prometheus.client.SimpleCollector
缺少泛型类io.prometheus.client.SimpleCollector的类型参数
[WARNING] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[158,15] 找到原始类型: i o.prometheus.client.SimpleCollector
缺少泛型类io.prometheus.client.SimpleCollector的类型参数
[INFO] 5 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[17,39] 程序包org.apache.h adoop.fs.permission不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[18,46] 程序包org.apache.h adoop.hdfs.server.namenode不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[491,53] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[499,58] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[504,56] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[302,57] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[327,62] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[349,60] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[303,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[304,17] 找不到符号
符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[304,49] 无法访问org.apach e.hadoop.hdfs.server.namenode.FsImageProto.INodeSection
找不到org.apache.hadoop.hdfs.server.namenode.FsImageProto$INodeSection的类文件
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[328,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[329,17] 找不到符号
符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[350,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[351,17] 找不到符号
符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[492,38] 程序包FsImageProt o.INodeSection不存在
[INFO] 16 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.165 s
[INFO] Finished at: 2020-11-23T13:37:36+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project fsimage-exporter: Compilat ion failure: Compilation failure:
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[17,39] 程序包org.apache.h adoop.fs.permission不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[18,46] 程序包org.apache.h adoop.hdfs.server.namenode不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[491,53] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[499,58] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[504,56] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[302,57] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[327,62] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[349,60] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[303,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[304,17] 找不到符号
[ERROR] 符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[304,49] 无法访问org.apach e.hadoop.hdfs.server.namenode.FsImageProto.INodeSection
[ERROR] 找不到org.apache.hadoop.hdfs.server.namenode.FsImageProto$INodeSection的类文件
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[328,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[329,17] 找不到符号
[ERROR] 符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[350,42] 程序包FsImageProt o.INodeSection不存在
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[351,17] 找不到符号
[ERROR] 符号: 类 PermissionStatus
[ERROR] /root/jinquan/hadoop-hdfs-fsimage-exporter/src/main/java/de/m3y/prometheus/exporter/fsimage/FsImageReporter.java:[492,38] 程序包FsImageProt o.INodeSection不存在
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
from hadoop-hdfs-fsimage-exporter.
That's strange. Can you provide the output of mvn -v
?
from hadoop-hdfs-fsimage-exporter.
mvn -v
as blow:
root@uos-test-1:~/jinquan/hadoop-hdfs-fsimage-exporter# mvn -v
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/apache-maven-3.6.3
Java version: 11.0.4, vendor: Debian, runtime: /usr/lib/jvm/java-11-openjdk-arm64
Default locale: zh_CN, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-arm64-server", arch: "aarch64", family: "unix"
from hadoop-hdfs-fsimage-exporter.
The versions seem ok - the JVM 11 is not at latest patch level (eg 11.0.9+) but should work.
The compiler complains it can not find the Hadoop classes. It should have complained that it can not download these, but not during compilation.
Can you check the JARs, eg if INodeSection
exists:
jar vft ~/.m2/repository/org/apache/hadoop/hadoop-hdfs/3.3.0/hadoop-hdfs-3.3.0.jar|grep INodeSection.class
That should print something like
17813 Mon Jul 06 18:50:24 CEST 2020 org/apache/hadoop/hdfs/server/namenode/FsImageProto$INodeSection.class
I managed to run the (experimental) docker image marcelmay/hadoop-hdfs-fsimage-exporter-arm64v8 locally via docker and qemu arm64 emulator, the exporter using the arm64 openjdk image seems to work:
docker run --rm -t -p 9709:9709 -v $PWD/src/test/resources:/fsimage-location \
-e "JAVA_OPTS=-server -XX:+UseG1GC -Xmx1024m" \
marcelmay/hadoop-hdfs-fsimage-exporter-arm64v8
from hadoop-hdfs-fsimage-exporter.
i run the command as you said,but its result is an error as blow. can u build one image that tag is 1.2 for my emergency. thanks a lot
root@uos-test-1:~# jar vft ~/.m2/repository/org/apache/hadoop/hadoop-hdfs/3.3.0/hadoop-hdfs-3.3.0.jar|grep INodeSection.class
java.nio.file.NoSuchFileException: /root/.m2/repository/org/apache/hadoop/hadoop-hdfs/3.3.0/hadoop-hdfs-3.3.0.jar
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:145)
at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1225)
at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:727)
at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844)
at java.base/java.util.zip.ZipFile.(ZipFile.java:247)
at java.base/java.util.zip.ZipFile.(ZipFile.java:177)
at java.base/java.util.zip.ZipFile.(ZipFile.java:148)
at jdk.jartool/sun.tools.jar.Main.list(Main.java:1500)
at jdk.jartool/sun.tools.jar.Main.run(Main.java:380)
at jdk.jartool/sun.tools.jar.Main.main(Main.java:1681)
from hadoop-hdfs-fsimage-exporter.
Somehow there are no dependencies, there should have been more warnings when Maven tries to download these.
Can you try the docker image marcelmay/hadoop-hdfs-fsimage-exporter-arm64v8 of current latest head, or do require exactly 1.2 version (latest is 1.4)?
docker pull marcelmay/hadoop-hdfs-fsimage-exporter-arm64v8:1.5-SNAPSHOT
from hadoop-hdfs-fsimage-exporter.
Available on https://hub.docker.com/r/marcelmay/hadoop-hdfs-fsimage-exporter/tags
from hadoop-hdfs-fsimage-exporter.
Related Issues (20)
- Switch container OpenJDK base image to azul/zulu-openjdk-alpine:17.0.3-jre-headless
- Export all default exporter JVM metrics
- Migrate to reload4j
- Update HFSA to 1.3.5
- Update Prometheus simpleclient to 0.16.0
- Docker configuration folder changed HOT 1
- config.yml paths How do I support cross-directory re syntax HOT 3
- Extend path regexp matching
- Update hfsa lib to 1.3.7
- Update docker base image to JDK 17.0.4
- Whitelisting or blacklisting metrics HOT 4
- Update snakeyaml to 1.31
- Update snakeyaml to 1.33
- Update HFSA lib to 1.3.8
- Update docker base image to OpenJDK 17.0.5
- Update JMH to 1.36 (test scope only)
- How to config the fsImagePath in the example.yml file when deploy hadoop-hdfs-fsimage-exporter not in namenode node HOT 2
- Fsimage metrics are not getting exported HOT 3
- Update container base image to latest JVM 17.0.6
- Update container base image to latest JVM 17.0.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hadoop-hdfs-fsimage-exporter.