From c2bf334b831392db6e4a229c3f6a4b9a30775a3d Mon Sep 17 00:00:00 2001 From: Marcel May Date: Mon, 24 May 2021 19:41:53 +0200 Subject: [PATCH] Minor fixes (spelling, http->https, links etc) --- README.md | 6 +++--- .../de/m3y/hadoop/hdfs/hfsa/generator/FsImageGenerator.java | 2 +- lib/README.md | 2 +- pom.xml | 6 +++--- tool/README.md | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 943ecce..d2f265d 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,11 @@ by providing [HDFS fsimage](https://hadoop.apache.org/docs/stable/hadoop-project * [tooling](tool) support for summary overview of the HDFS data files and directories of users and groups (answering 'who has how many/big/small files...') * a [library](lib) for fast and partly multithreaded fsimage processing API file-, directory- and symlink aware visitor, - derived from [Apache HDFS FSImageLoder](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) ) + derived from [Apache HDFS FSImageLoader](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) ## Example usage for library -See [FSImageLoaderTest.java](lib/src/test/java/de/m3y/hadoop/hdfs/hfsa/core/FSImageLoaderTest.java) for example usage. +See [FSImageLoaderTest.java](lib/src/test/java/de/m3y/hadoop/hdfs/hfsa/core/FsImageLoaderTest.java) for example usage. The following lines visit all directory-, file- and symlink inodes: ```java @@ -86,7 +86,7 @@ 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 + https://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, diff --git a/fsimage-generator/src/main/java/de/m3y/hadoop/hdfs/hfsa/generator/FsImageGenerator.java b/fsimage-generator/src/main/java/de/m3y/hadoop/hdfs/hfsa/generator/FsImageGenerator.java index 1810d32..8ccd02c 100644 --- a/fsimage-generator/src/main/java/de/m3y/hadoop/hdfs/hfsa/generator/FsImageGenerator.java +++ b/fsimage-generator/src/main/java/de/m3y/hadoop/hdfs/hfsa/generator/FsImageGenerator.java @@ -40,7 +40,7 @@ public static void main(String[] args) throws IOException { final int maxDirWidth = Math.min(2, ABC.length()); /* "a...z".length * factor = number of files per directory generated */ final int filesPerDirectoryFactor = 10; - final boolean enableDefaultCompression = Boolean.valueOf(System.getProperty( + final boolean enableDefaultCompression = Boolean.parseBoolean(System.getProperty( DFSConfigKeys.DFS_IMAGE_COMPRESS_KEY, Boolean.toString(DFSConfigKeys.DFS_IMAGE_COMPRESS_DEFAULT))); /* diff --git a/lib/README.md b/lib/README.md index 969ab97..a98f6ed 100644 --- a/lib/README.md +++ b/lib/README.md @@ -1,7 +1,7 @@ # Hadoop FSImage Analyzer (HFSA) The HFSA lib supports fast and partly multithreaded fsimage processing API file-, directory- and symlink aware visitor, - derived from [Apache HDFS FSImageLoder](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) ) + derived from [Apache HDFS FSImageLoader](https://github.com/apache/hadoop/blob/master/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java) ### Example Usage Use `parallel()` for multi-threaded execution when loading or visiting INode hierarchy: diff --git a/pom.xml b/pom.xml index 082ca3f..06bc3a0 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ Apache 2.0 - http://www.apache.org/licenses/LICENSE-2.0 + https://www.apache.org/licenses/LICENSE-2.0 @@ -243,8 +243,8 @@ https://docs.oracle.com/javase/8/docs/api/ - http://hadoop.apache.org/docs/r3.2.1/api/ - https://google.github.io/guava/releases/28.1-jre/api/docs/ + https://hadoop.apache.org/docs/r3.3.0/api/ + https://google.github.io/guava/releases/30.1.1-jre/api/docs/ diff --git a/tool/README.md b/tool/README.md index 7558b0f..1bb4ec7 100644 --- a/tool/README.md +++ b/tool/README.md @@ -126,7 +126,7 @@ mm | 3 | / ``` #### Show INode details -Show details of selected INode, eg by directory path or file path or inode ID: +Show details of selected INode, e.g. by directory path or file path or inode ID: ``` > hfsa-tool src/test/resources/fsi_small.img inode "/test3" "/test3/test_160MiB.img" type: DIRECTORY